mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
interFoam/alphaEqn: Updated phiCN
This commit is contained in:
@ -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)
|
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
|
fvScalarMatrix alpha1Eqn
|
||||||
(
|
(
|
||||||
#ifdef LTSSOLVE
|
#ifdef LTSSOLVE
|
||||||
|
|||||||
Reference in New Issue
Block a user