Disadvantage is that the BC values have to be specified in terms of hU rather than U. The alternative would be to add complex code to map h and U BCs into the equivalent for hU. Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1566
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object setFieldsDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
defaultFieldValues
|
|
(
|
|
volScalarFieldValue h0 0
|
|
volScalarFieldValue h 0.01
|
|
volVectorFieldValue hU (0.001 0 0)
|
|
);
|
|
|
|
regions
|
|
(
|
|
boxToCell
|
|
{
|
|
box (0.45 0.45 0) (0.55 0.55 0.1);
|
|
|
|
fieldValues
|
|
(
|
|
volScalarFieldValue h0 0.001
|
|
volScalarFieldValue h 0.009
|
|
volVectorFieldValue hU (0.0009 0 0)
|
|
);
|
|
}
|
|
);
|
|
|
|
// ************************************************************************* //
|