wallFunctions: Handle moving meshes

This commit is contained in:
Henry
2014-05-18 21:19:58 +01:00
committed by Andrew Heather
parent e4cecfcdb5
commit fb00cd2bc9
6 changed files with 30 additions and 30 deletions

View File

@ -96,11 +96,6 @@ void epsilonWallFunctionFvPatchScalarField::setMaster()
void epsilonWallFunctionFvPatchScalarField::createAveragingWeights() void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
{ {
if (initialised_)
{
return;
}
const volScalarField& epsilon = const volScalarField& epsilon =
static_cast<const volScalarField&>(this->dimensionedInternalField()); static_cast<const volScalarField&>(this->dimensionedInternalField());
@ -108,6 +103,11 @@ void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
const fvMesh& mesh = epsilon.mesh(); const fvMesh& mesh = epsilon.mesh();
if (initialised_ && !mesh.changing())
{
return;
}
volScalarField weights volScalarField weights
( (
IOobject IOobject

View File

@ -98,11 +98,6 @@ void omegaWallFunctionFvPatchScalarField::setMaster()
void omegaWallFunctionFvPatchScalarField::createAveragingWeights() void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
{ {
if (initialised_)
{
return;
}
const volScalarField& omega = const volScalarField& omega =
static_cast<const volScalarField&>(this->dimensionedInternalField()); static_cast<const volScalarField&>(this->dimensionedInternalField());
@ -110,6 +105,11 @@ void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
const fvMesh& mesh = omega.mesh(); const fvMesh& mesh = omega.mesh();
if (initialised_ && !mesh.changing())
{
return;
}
volScalarField weights volScalarField weights
( (
IOobject IOobject

View File

@ -98,11 +98,6 @@ void epsilonWallFunctionFvPatchScalarField::setMaster()
void epsilonWallFunctionFvPatchScalarField::createAveragingWeights() void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
{ {
if (initialised_)
{
return;
}
const volScalarField& epsilon = const volScalarField& epsilon =
static_cast<const volScalarField&>(this->dimensionedInternalField()); static_cast<const volScalarField&>(this->dimensionedInternalField());
@ -110,6 +105,11 @@ void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
const fvMesh& mesh = epsilon.mesh(); const fvMesh& mesh = epsilon.mesh();
if (initialised_ && !mesh.changing())
{
return;
}
volScalarField weights volScalarField weights
( (
IOobject IOobject

View File

@ -100,11 +100,6 @@ void omegaWallFunctionFvPatchScalarField::setMaster()
void omegaWallFunctionFvPatchScalarField::createAveragingWeights() void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
{ {
if (initialised_)
{
return;
}
const volScalarField& omega = const volScalarField& omega =
static_cast<const volScalarField&>(this->dimensionedInternalField()); static_cast<const volScalarField&>(this->dimensionedInternalField());
@ -112,6 +107,11 @@ void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
const fvMesh& mesh = omega.mesh(); const fvMesh& mesh = omega.mesh();
if (initialised_ && !mesh.changing())
{
return;
}
volScalarField weights volScalarField weights
( (
IOobject IOobject

View File

@ -98,11 +98,6 @@ void epsilonWallFunctionFvPatchScalarField::setMaster()
void epsilonWallFunctionFvPatchScalarField::createAveragingWeights() void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
{ {
if (initialised_)
{
return;
}
const volScalarField& epsilon = const volScalarField& epsilon =
static_cast<const volScalarField&>(this->dimensionedInternalField()); static_cast<const volScalarField&>(this->dimensionedInternalField());
@ -110,6 +105,11 @@ void epsilonWallFunctionFvPatchScalarField::createAveragingWeights()
const fvMesh& mesh = epsilon.mesh(); const fvMesh& mesh = epsilon.mesh();
if (initialised_ && !mesh.changing())
{
return;
}
volScalarField weights volScalarField weights
( (
IOobject IOobject

View File

@ -100,11 +100,6 @@ void omegaWallFunctionFvPatchScalarField::setMaster()
void omegaWallFunctionFvPatchScalarField::createAveragingWeights() void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
{ {
if (initialised_)
{
return;
}
const volScalarField& omega = const volScalarField& omega =
static_cast<const volScalarField&>(this->dimensionedInternalField()); static_cast<const volScalarField&>(this->dimensionedInternalField());
@ -112,6 +107,11 @@ void omegaWallFunctionFvPatchScalarField::createAveragingWeights()
const fvMesh& mesh = omega.mesh(); const fvMesh& mesh = omega.mesh();
if (initialised_ && !mesh.changing())
{
return;
}
volScalarField weights volScalarField weights
( (
IOobject IOobject