From 7d2208b735543ce4ae84923f1d9d2b42adcdf028 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 12 May 2023 11:05:14 +0100 Subject: [PATCH] multiphaseEuler::MovingPhaseModel: Read alphaRhoPhi if present and auto write Needed by the phaseScalarTransport functionObject and other phase post-processing tools. --- .../phaseModel/MovingPhaseModel/MovingPhaseModel.C | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/solvers/modules/multiphaseEuler/phaseSystems/phaseModel/MovingPhaseModel/MovingPhaseModel.C b/applications/solvers/modules/multiphaseEuler/phaseSystems/phaseModel/MovingPhaseModel/MovingPhaseModel.C index cea28d9919..361d0a94ce 100644 --- a/applications/solvers/modules/multiphaseEuler/phaseSystems/phaseModel/MovingPhaseModel/MovingPhaseModel.C +++ b/applications/solvers/modules/multiphaseEuler/phaseSystems/phaseModel/MovingPhaseModel/MovingPhaseModel.C @@ -141,7 +141,9 @@ Foam::MovingPhaseModel::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::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)