reactingEulerFoam::MovingPhaseModel: Generalised support for derived fixedValue BCs using the assignable() member function

Resolves bug-report https://bugs.openfoam.org/view.php?id=3457
This commit is contained in:
Henry Weller
2020-02-23 22:17:54 +00:00
parent 5ce2130f1a
commit 5b4e84c97b

View File

@ -85,16 +85,11 @@ Foam::MovingPhaseModel<BasePhaseModel>::phi(const volVectorField& U) const
calculatedFvPatchScalarField::typeName
);
forAll(U.boundaryField(), i)
forAll(U.boundaryField(), patchi)
{
if
(
isA<fixedValueFvPatchVectorField>(U.boundaryField()[i])
|| isA<slipFvPatchVectorField>(U.boundaryField()[i])
|| isA<partialSlipFvPatchVectorField>(U.boundaryField()[i])
)
if (!U.boundaryField()[patchi].assignable())
{
phiTypes[i] = fixedValueFvPatchScalarField::typeName;
phiTypes[patchi] = fixedValueFvPatchScalarField::typeName;
}
}