interFoam/alphaEqn: Updated phiCN

This commit is contained in:
Henry
2015-02-22 10:25:30 +00:00
parent 9b7079ff8f
commit ff8978dba5

View File

@ -65,16 +65,16 @@
}
}
tmp<surfaceScalarField> phiCN(phi);
// Calculate the Crank-Nicolson off-centred volumetric flux
if (ocCoeff > 0)
{
phiCN = (1.0 - cnCoeff)*phi + cnCoeff*phi.oldTime();
}
if (MULESCorr)
{
tmp<surfaceScalarField> 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