wallFunctions: Handle moving meshes
This commit is contained in:
parent
86498d3dbe
commit
30947d1571
6 changed files with 30 additions and 30 deletions
|
|
@ -96,11 +96,6 @@ void epsilonWallFunctionFvPatchScalarField::setMaster()
|
|||
|
||||
void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
|
||||
{
|
||||
if (initialised_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const volScalarField& epsilon =
|
||||
static_cast<const volScalarField&>(this->dimensionedInternalField());
|
||||
|
||||
|
|
@ -108,6 +103,11 @@ void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
|
|||
|
||||
const fvMesh& mesh = epsilon.mesh();
|
||||
|
||||
if (initialised_ && !mesh.changing())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
volScalarField weights
|
||||
(
|
||||
IOobject
|
||||
|
|
|
|||
|
|
@ -98,11 +98,6 @@ void omegaWallFunctionFvPatchScalarField::setMaster()
|
|||
|
||||
void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
|
||||
{
|
||||
if (initialised_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const volScalarField& omega =
|
||||
static_cast<const volScalarField&>(this->dimensionedInternalField());
|
||||
|
||||
|
|
@ -110,6 +105,11 @@ void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
|
|||
|
||||
const fvMesh& mesh = omega.mesh();
|
||||
|
||||
if (initialised_ && !mesh.changing())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
volScalarField weights
|
||||
(
|
||||
IOobject
|
||||
|
|
|
|||
|
|
@ -98,11 +98,6 @@ void epsilonWallFunctionFvPatchScalarField::setMaster()
|
|||
|
||||
void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
|
||||
{
|
||||
if (initialised_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const volScalarField& epsilon =
|
||||
static_cast<const volScalarField&>(this->dimensionedInternalField());
|
||||
|
||||
|
|
@ -110,6 +105,11 @@ void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
|
|||
|
||||
const fvMesh& mesh = epsilon.mesh();
|
||||
|
||||
if (initialised_ && !mesh.changing())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
volScalarField weights
|
||||
(
|
||||
IOobject
|
||||
|
|
|
|||
|
|
@ -100,11 +100,6 @@ void omegaWallFunctionFvPatchScalarField::setMaster()
|
|||
|
||||
void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
|
||||
{
|
||||
if (initialised_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const volScalarField& omega =
|
||||
static_cast<const volScalarField&>(this->dimensionedInternalField());
|
||||
|
||||
|
|
@ -112,6 +107,11 @@ void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
|
|||
|
||||
const fvMesh& mesh = omega.mesh();
|
||||
|
||||
if (initialised_ && !mesh.changing())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
volScalarField weights
|
||||
(
|
||||
IOobject
|
||||
|
|
|
|||
|
|
@ -98,11 +98,6 @@ void epsilonWallFunctionFvPatchScalarField::setMaster()
|
|||
|
||||
void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
|
||||
{
|
||||
if (initialised_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const volScalarField& epsilon =
|
||||
static_cast<const volScalarField&>(this->dimensionedInternalField());
|
||||
|
||||
|
|
@ -110,6 +105,11 @@ void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
|
|||
|
||||
const fvMesh& mesh = epsilon.mesh();
|
||||
|
||||
if (initialised_ && !mesh.changing())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
volScalarField weights
|
||||
(
|
||||
IOobject
|
||||
|
|
|
|||
|
|
@ -100,11 +100,6 @@ void omegaWallFunctionFvPatchScalarField::setMaster()
|
|||
|
||||
void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
|
||||
{
|
||||
if (initialised_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const volScalarField& omega =
|
||||
static_cast<const volScalarField&>(this->dimensionedInternalField());
|
||||
|
||||
|
|
@ -112,6 +107,11 @@ void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
|
|||
|
||||
const fvMesh& mesh = omega.mesh();
|
||||
|
||||
if (initialised_ && !mesh.changing())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
volScalarField weights
|
||||
(
|
||||
IOobject
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue