Force construction of mesh.deltaCoeffs() which may be needed for the wall-function BCs.

This commit is contained in:
henry
2009-07-30 12:58:03 +01:00
parent 2d58cdf8ca
commit 4e6dbf5730
6 changed files with 22 additions and 4 deletions

View File

@ -84,6 +84,10 @@ LESModel::LESModel
delta_(LESdelta::New("delta", U.mesh(), *this))
{
readIfPresent("k0", k0_);
// Force the construction of the mesh deltaCoeffs which may be needed
// for the construction of the derived models and BCs
mesh_.deltaCoeffs();
}

View File

@ -88,7 +88,11 @@ RASModel::RASModel
omegaSmall_("omegaSmall", omega0_.dimensions(), SMALL),
y_(mesh_)
{}
{
// Force the construction of the mesh deltaCoeffs which may be needed
// for the construction of the derived models and BCs
mesh_.deltaCoeffs();
}
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //

View File

@ -82,6 +82,10 @@ LESModel::LESModel
delta_(LESdelta::New("delta", U.mesh(), *this))
{
readIfPresent("k0", k0_);
// Force the construction of the mesh deltaCoeffs which may be needed
// for the construction of the derived models and BCs
mesh_.deltaCoeffs();
}

View File

@ -133,8 +133,8 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate
const scalarField& nuw =
patch().lookupPatchField<volScalarField, scalar>(nuName_);
scalarField& nuSgsw = *this;
scalarField& nuSgsw = *this;
scalarField magFaceGradU = mag(U.snGrad());
@ -178,6 +178,8 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate
nuSgsw[facei] = 0;
}
}
fixedValueFvPatchScalarField::evaluate();
}

View File

@ -87,7 +87,11 @@ RASModel::RASModel
omegaSmall_("omegaSmall", omega0_.dimensions(), SMALL),
y_(mesh_)
{}
{
// Force the construction of the mesh deltaCoeffs which may be needed
// for the construction of the derived models and BCs
mesh_.deltaCoeffs();
}
// * * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/