Merge branch 'master' of develop.openfoam.com:Development/OpenFOAM-plus

This commit is contained in:
Andrew Heather
2016-04-21 13:03:10 +01:00
7 changed files with 63 additions and 13 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);