db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
35 lines
628 B
C
35 lines
628 B
C
label nGammaCorr
|
|
(
|
|
readLabel(piso.lookup("nGammaCorr"))
|
|
);
|
|
|
|
label nGammaSubCycles
|
|
(
|
|
readLabel(piso.lookup("nGammaSubCycles"))
|
|
);
|
|
|
|
if (nGammaSubCycles > 1)
|
|
{
|
|
dimensionedScalar totalDeltaT = runTime.deltaT();
|
|
surfaceScalarField rhoPhiSum = 0.0*rhoPhi;
|
|
|
|
for
|
|
(
|
|
subCycle<volScalarField> gammaSubCycle(gamma, nGammaSubCycles);
|
|
!(++gammaSubCycle).end();
|
|
)
|
|
{
|
|
# include "gammaEqn.H"
|
|
rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
|
|
}
|
|
|
|
rhoPhi = rhoPhiSum;
|
|
}
|
|
else
|
|
{
|
|
# include "gammaEqn.H"
|
|
}
|
|
|
|
interface.correct();
|
|
|
|
rho == gamma*rho1 + (scalar(1) - gamma)*rho2;
|