fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / tutorials / compressible / rhoPorousSimpleFoam / porousPlug / 0 / U
blob674c293b5103e9a30627abf334f8ab46f7359743
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========                 |                                                 |
3 | \\      /  F ield         | OpenFOAM Extend Project: Open Source CFD        |
4 |  \\    /   O peration     | Version:  1.6-ext                               |
5 |   \\  /    A nd           | Web:      www.extend-project.de                 |
6 |    \\/     M anipulation  |                                                 |
7 \*---------------------------------------------------------------------------*/
8 FoamFile
10     version     2.0;
11     format      ascii;
12     class       volVectorField;
13     object      U;
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 dimensions      [0 1 -1 0 0 0 0];
19 // Re = 1 = rho=(rho U H)/mu; rho=1.144, mu=1.861e-5; H=0.01
20 internalField   uniform (1.62589e-4 0 0);
22 boundaryField
24     inlet
25     {
26         // type            groovyBC;
27         type fixedValue;
28         variables "UTarget=1.62589e-4;yMax=max(pts().y);";
29         valueExpression "vector(1,0,0)*6*UTarget*pos().y/yMax*(1-pos().y/yMax)";
30         value           $internalField;
31     }
32     outlet
33     {
34         type            zeroGradient;
35     }
36     upperWall
37     {
38         type            fixedValue;
39         value           uniform (0 0 0);
40     }
41     lowerWall
42     {
43         type            fixedValue;
44         value           uniform (0 0 0);
45     }
48 // ************************************************************************* //