multiphaseEuler::MovingPhaseModel: Read alphaRhoPhi if present and auto write

Needed by the phaseScalarTransport functionObject and other phase
post-processing tools.
This commit is contained in:
Henry Weller
2023-05-12 11:05:14 +01:00
parent 0d2fd78864
commit 7d2208b735

View File

@ -141,7 +141,9 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
(
IOobject::groupName("alphaPhi", this->name()),
fluid.mesh().time().name(),
fluid.mesh()
fluid.mesh(),
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
fluid.mesh(),
dimensionedScalar(dimensionSet(0, 3, -1, 0, 0), 0)
@ -152,7 +154,9 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
(
IOobject::groupName("alphaRhoPhi", this->name()),
fluid.mesh().time().name(),
fluid.mesh()
fluid.mesh(),
IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE
),
fluid.mesh(),
dimensionedScalar(dimensionSet(1, 0, -1, 0, 0), 0)