mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Force construction of mesh.deltaCoeffs() which may be needed for the wall-function BCs.
This commit is contained in:
@ -84,6 +84,10 @@ LESModel::LESModel
|
|||||||
delta_(LESdelta::New("delta", U.mesh(), *this))
|
delta_(LESdelta::New("delta", U.mesh(), *this))
|
||||||
{
|
{
|
||||||
readIfPresent("k0", k0_);
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,11 @@ RASModel::RASModel
|
|||||||
omegaSmall_("omegaSmall", omega0_.dimensions(), SMALL),
|
omegaSmall_("omegaSmall", omega0_.dimensions(), SMALL),
|
||||||
|
|
||||||
y_(mesh_)
|
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 * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -82,6 +82,10 @@ LESModel::LESModel
|
|||||||
delta_(LESdelta::New("delta", U.mesh(), *this))
|
delta_(LESdelta::New("delta", U.mesh(), *this))
|
||||||
{
|
{
|
||||||
readIfPresent("k0", k0_);
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -133,8 +133,8 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate
|
|||||||
|
|
||||||
const scalarField& nuw =
|
const scalarField& nuw =
|
||||||
patch().lookupPatchField<volScalarField, scalar>(nuName_);
|
patch().lookupPatchField<volScalarField, scalar>(nuName_);
|
||||||
scalarField& nuSgsw = *this;
|
|
||||||
|
|
||||||
|
scalarField& nuSgsw = *this;
|
||||||
|
|
||||||
scalarField magFaceGradU = mag(U.snGrad());
|
scalarField magFaceGradU = mag(U.snGrad());
|
||||||
|
|
||||||
@ -178,6 +178,8 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate
|
|||||||
nuSgsw[facei] = 0;
|
nuSgsw[facei] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fixedValueFvPatchScalarField::evaluate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,11 @@ RASModel::RASModel
|
|||||||
omegaSmall_("omegaSmall", omega0_.dimensions(), SMALL),
|
omegaSmall_("omegaSmall", omega0_.dimensions(), SMALL),
|
||||||
|
|
||||||
y_(mesh_)
|
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 * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: 1.6 |
|
| \\ / O peration | Version: dev |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user