ENH: Updated wall function update when applying external weights (e.g. ACMI)
This commit is contained in:
parent
2411c340b0
commit
c29b9fc023
@ -464,6 +464,8 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs
|
|||||||
|
|
||||||
FieldType& epsilon = const_cast<FieldType&>(dimensionedInternalField());
|
FieldType& epsilon = const_cast<FieldType&>(dimensionedInternalField());
|
||||||
|
|
||||||
|
scalarField& epsilonf = *this;
|
||||||
|
|
||||||
// only set the values if the weights are < 1 - tolerance
|
// only set the values if the weights are < 1 - tolerance
|
||||||
forAll(weights, faceI)
|
forAll(weights, faceI)
|
||||||
{
|
{
|
||||||
@ -475,6 +477,7 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs
|
|||||||
|
|
||||||
G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI];
|
G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI];
|
||||||
epsilon[cellI] = w*epsilon[cellI] + (1.0 - w)*epsilon0[cellI];
|
epsilon[cellI] = w*epsilon[cellI] + (1.0 - w)*epsilon0[cellI];
|
||||||
|
epsilonf[faceI] = epsilon[cellI];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -481,6 +481,8 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs
|
|||||||
|
|
||||||
FieldType& omega = const_cast<FieldType&>(dimensionedInternalField());
|
FieldType& omega = const_cast<FieldType&>(dimensionedInternalField());
|
||||||
|
|
||||||
|
scalarField& omegaf = *this;
|
||||||
|
|
||||||
// only set the values if the weights are < 1 - tolerance
|
// only set the values if the weights are < 1 - tolerance
|
||||||
forAll(weights, faceI)
|
forAll(weights, faceI)
|
||||||
{
|
{
|
||||||
@ -492,6 +494,7 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs
|
|||||||
|
|
||||||
G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI];
|
G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI];
|
||||||
omega[cellI] = w*omega[cellI] + (1.0 - w)*omega0[cellI];
|
omega[cellI] = w*omega[cellI] + (1.0 - w)*omega0[cellI];
|
||||||
|
omegaf[faceI] = omega[cellI];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -464,6 +464,8 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs
|
|||||||
|
|
||||||
FieldType& epsilon = const_cast<FieldType&>(dimensionedInternalField());
|
FieldType& epsilon = const_cast<FieldType&>(dimensionedInternalField());
|
||||||
|
|
||||||
|
scalarField& epsilonf = *this;
|
||||||
|
|
||||||
// only set the values if the weights are < 1 - tolerance
|
// only set the values if the weights are < 1 - tolerance
|
||||||
forAll(weights, faceI)
|
forAll(weights, faceI)
|
||||||
{
|
{
|
||||||
@ -475,6 +477,7 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs
|
|||||||
|
|
||||||
G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI];
|
G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI];
|
||||||
epsilon[cellI] = w*epsilon[cellI] + (1.0 - w)*epsilon0[cellI];
|
epsilon[cellI] = w*epsilon[cellI] + (1.0 - w)*epsilon0[cellI];
|
||||||
|
epsilonf[faceI] = epsilon[cellI];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -479,6 +479,8 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs
|
|||||||
|
|
||||||
FieldType& omega = const_cast<FieldType&>(dimensionedInternalField());
|
FieldType& omega = const_cast<FieldType&>(dimensionedInternalField());
|
||||||
|
|
||||||
|
scalarField& omegaf = *this;
|
||||||
|
|
||||||
// only set the values if the weights are < 1 - tolerance
|
// only set the values if the weights are < 1 - tolerance
|
||||||
forAll(weights, faceI)
|
forAll(weights, faceI)
|
||||||
{
|
{
|
||||||
@ -490,6 +492,7 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs
|
|||||||
|
|
||||||
G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI];
|
G[cellI] = w*G[cellI] + (1.0 - w)*G0[cellI];
|
||||||
omega[cellI] = w*omega[cellI] + (1.0 - w)*omega0[cellI];
|
omega[cellI] = w*omega[cellI] + (1.0 - w)*omega0[cellI];
|
||||||
|
omegaf[faceI] = omega[cellI];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user