IOdictionary RASProperties
(
IOobject
"RASProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
Switch turbulence
RASProperties.lookup("turbulence")
dictionary kEpsilonCoeffs
RASProperties.subDict("kEpsilonCoeffs")
scalar Cmu
readScalar(kEpsilonCoeffs.lookup("Cmu"))
scalar C1
readScalar(kEpsilonCoeffs.lookup("C1"))
scalar C2
readScalar(kEpsilonCoeffs.lookup("C2"))
scalar alphak
readScalar(kEpsilonCoeffs.lookup("alphak"))
scalar alphaEps
readScalar(kEpsilonCoeffs.lookup("alphaEps"))
dictionary wallFunctionCoeffs
RASProperties.subDict("wallFunctionCoeffs")
scalar kappa
readScalar(wallFunctionCoeffs.lookup("kappa"))
scalar E
readScalar(wallFunctionCoeffs.lookup("E"))
nearWallDist y(mesh);
Info<< "Reading field k\n" << endl;
volScalarField k
"k",
runTime.timeName(),
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
Info<< "Reading field epsilon\n" << endl;
volScalarField epsilon
"epsilon",
Info<< "Calculating field nutb\n" << endl;
volScalarField nutb
"nutb",
IOobject::NO_READ,
Cmu*sqr(k)/epsilon
Info<< "Calculating field nuEffa\n" << endl;
volScalarField nuEffa
"nuEffa",
sqr(Ct)*nutb + nua
Info<< "Calculating field nuEffb\n" << endl;
volScalarField nuEffb
"nuEffb",
nutb + nub