OpenFOAM-4.x-lab/tutorials/incompressible/shallowWaterFoam/squareBump/system/setFieldsDict
Henry e20e69992d shallowWaterFoam: Read hU rather than U to support complex e.g. time-varying BCs
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
2015-03-13 22:14:08 +00:00

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)
);
}
);
// ************************************************************************* //