diff --git a/src/turbulenceModels/compressible/LES/LESModel/LESModel.C b/src/turbulenceModels/compressible/LES/LESModel/LESModel.C index 5602e44d7f..dd166f2693 100644 --- a/src/turbulenceModels/compressible/LES/LESModel/LESModel.C +++ b/src/turbulenceModels/compressible/LES/LESModel/LESModel.C @@ -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(); } diff --git a/src/turbulenceModels/compressible/RAS/RASModel/RASModel.C b/src/turbulenceModels/compressible/RAS/RASModel/RASModel.C index 8d18cec8c5..b390bca5e5 100644 --- a/src/turbulenceModels/compressible/RAS/RASModel/RASModel.C +++ b/src/turbulenceModels/compressible/RAS/RASModel/RASModel.C @@ -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 * * * * * * * * * * * * * * * * // diff --git a/src/turbulenceModels/incompressible/LES/LESModel/LESModel.C b/src/turbulenceModels/incompressible/LES/LESModel/LESModel.C index 3e3c952ffc..3458e03c6b 100644 --- a/src/turbulenceModels/incompressible/LES/LESModel/LESModel.C +++ b/src/turbulenceModels/incompressible/LES/LESModel/LESModel.C @@ -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(); } diff --git a/src/turbulenceModels/incompressible/LES/derivedFvPatchFields/wallFunctions/nuSgsWallFunctions/nuSgsWallFunction/nuSgsWallFunctionFvPatchScalarField.C b/src/turbulenceModels/incompressible/LES/derivedFvPatchFields/wallFunctions/nuSgsWallFunctions/nuSgsWallFunction/nuSgsWallFunctionFvPatchScalarField.C index 5555fd3086..1d66afbc65 100644 --- a/src/turbulenceModels/incompressible/LES/derivedFvPatchFields/wallFunctions/nuSgsWallFunctions/nuSgsWallFunction/nuSgsWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/LES/derivedFvPatchFields/wallFunctions/nuSgsWallFunctions/nuSgsWallFunction/nuSgsWallFunctionFvPatchScalarField.C @@ -133,8 +133,8 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate const scalarField& nuw = patch().lookupPatchField(nuName_); - scalarField& nuSgsw = *this; + scalarField& nuSgsw = *this; scalarField magFaceGradU = mag(U.snGrad()); @@ -178,6 +178,8 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate nuSgsw[facei] = 0; } } + + fixedValueFvPatchScalarField::evaluate(); } diff --git a/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C b/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C index 6b300390c9..d3366d8206 100644 --- a/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C +++ b/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C @@ -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 * * * * * * * * * * * * * * * // diff --git a/tutorials/incompressible/pisoFoam/les/pitzDaily/constant/polyMesh/boundary b/tutorials/incompressible/pisoFoam/les/pitzDaily/constant/polyMesh/boundary index eb4a4e461d..313dcceba1 100644 --- a/tutorials/incompressible/pisoFoam/les/pitzDaily/constant/polyMesh/boundary +++ b/tutorials/incompressible/pisoFoam/les/pitzDaily/constant/polyMesh/boundary @@ -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 | | \*---------------------------------------------------------------------------*/