From ec2c06e9e543fd3b53e012604b82050c98131c9f Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 24 May 2023 15:40:50 +0100 Subject: [PATCH] twoPhaseSolver::alphaPredictor: Corrected handling for CrankNicolson ddt with dilatation --- applications/solvers/modules/twoPhaseSolver/alphaPredictor.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/solvers/modules/twoPhaseSolver/alphaPredictor.C b/applications/solvers/modules/twoPhaseSolver/alphaPredictor.C index 95d23bb61f..874c111364 100644 --- a/applications/solvers/modules/twoPhaseSolver/alphaPredictor.C +++ b/applications/solvers/modules/twoPhaseSolver/alphaPredictor.C @@ -163,8 +163,8 @@ void Foam::solvers::twoPhaseSolver::alphaSolve divU = ( mesh.moving() - ? fvc::div(phiCN + mesh.phi()) - : fvc::div(phiCN) + ? fvc::div(phiCN() + mesh.phi()) + : fvc::div(phiCN()) ); }