Bugfix: single precision compilation fix
[foam-extend-3.2.git] / tutorials / compressible / rhoPorousSimpleFoam / porousPlug / 0 / U
blobdf82aea7258dc576c3d4b865efa55b4e8b9bfebb
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========                 |                                                 |
3 | \\      /  F ield         | foam-extend: Open Source CFD                    |
4 |  \\    /   O peration     | Version:     3.2                                |
5 |   \\  /    A nd           | Web:         http://www.foam-extend.org         |
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 // ************************************************************************* //