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()
|
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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user