so that the specification of the name and dimensions are optional in property dictionaries. Update tutorials so that the name of the dimensionedScalar property is no longer duplicated but optional dimensions are still provided and are checked on read.
56 lines
1.5 KiB
C++
56 lines
1.5 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 volScalarField;
|
|
location "0";
|
|
object k;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [0 2 -2 0 0 0 0];
|
|
|
|
internalField uniform 0.375;
|
|
|
|
boundaryField
|
|
{
|
|
inlet
|
|
{
|
|
type fixedValue;
|
|
value uniform 0.375;
|
|
}
|
|
outlet
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
innerWall
|
|
{
|
|
type kqRWallFunction;
|
|
value uniform 0.375;
|
|
}
|
|
outerWall
|
|
{
|
|
type kqRWallFunction;
|
|
value uniform 0.375;
|
|
}
|
|
cyclic_half0
|
|
{
|
|
type cyclic;
|
|
value uniform 0.375;
|
|
}
|
|
cyclic_half1
|
|
{
|
|
type cyclic;
|
|
value uniform 0.375;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|