From 98ac90396941a99069e62c98dc429748294cb07a Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Fri, 16 Jun 2023 16:22:15 +0100 Subject: [PATCH] multiphaseEuler: Make energy predictor compatible with stationary phases --- .../multiphaseEuler/multiphaseEuler/thermophysicalPredictor.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/modules/multiphaseEuler/multiphaseEuler/thermophysicalPredictor.C b/applications/modules/multiphaseEuler/multiphaseEuler/thermophysicalPredictor.C index 0403e693d5..3436d613bc 100644 --- a/applications/modules/multiphaseEuler/multiphaseEuler/thermophysicalPredictor.C +++ b/applications/modules/multiphaseEuler/multiphaseEuler/thermophysicalPredictor.C @@ -85,7 +85,8 @@ void Foam::solvers::multiphaseEuler::energyPredictor() const volScalarField& alpha = phase; const volScalarField& rho = phase.rho(); - const volVectorField& U = phase.URef(); + const tmp tU(phase.U()); + const volVectorField& U(tU()); fvScalarMatrix EEqn (