From ff8978dba5d34498b58a80e87c3d461cdd1ccefc Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 22 Feb 2015 10:25:30 +0000 Subject: [PATCH] interFoam/alphaEqn: Updated phiCN --- .../solvers/multiphase/interFoam/alphaEqn.H | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/applications/solvers/multiphase/interFoam/alphaEqn.H b/applications/solvers/multiphase/interFoam/alphaEqn.H index 4f44b732b..1f07a7b4b 100644 --- a/applications/solvers/multiphase/interFoam/alphaEqn.H +++ b/applications/solvers/multiphase/interFoam/alphaEqn.H @@ -65,16 +65,16 @@ } } + tmp phiCN(phi); + + // Calculate the Crank-Nicolson off-centred volumetric flux + if (ocCoeff > 0) + { + phiCN = (1.0 - cnCoeff)*phi + cnCoeff*phi.oldTime(); + } + if (MULESCorr) { - tmp phiCN(phi); - - // Calculate the Crank-Nicolson off-centred volumetric flux - if (ocCoeff > 0) - { - phiCN = (1.0 - cnCoeff)*phi + cnCoeff*phi.oldTime(); - } - fvScalarMatrix alpha1Eqn ( #ifdef LTSSOLVE