ENH: Adding zeroGradient BC's for k and epsilon in the DES/LES framework.

This commit is contained in:
sergio
2016-04-12 15:02:31 -07:00
parent 16868a2b7b
commit e0e7c58b49
4 changed files with 58 additions and 8 deletions

View File

@ -38,7 +38,23 @@ volVectorField U
);
Info<< "Calculating wall distance field" << endl;
const volScalarField& y(wallDist::New(mesh).y());
volScalarField y
(
IOobject
(
"y",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionedScalar("zero", dimLength, 0.0),
zeroGradientFvPatchScalarField::typeName
);
y.internalField() = wallDist::New(mesh).y().internalField();
y.correctBoundaryConditions();
// Set the mean boundary-layer thickness
dimensionedScalar ybl("ybl", dimLength, 0);