mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
wallFunctions: Handle moving meshes
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user