42 lines
829 B
C
42 lines
829 B
C
IOobject alphaPhi10Header
|
|
(
|
|
IOobject::groupName("alphaPhi0", alpha1.group()),
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::READ_IF_PRESENT,
|
|
IOobject::AUTO_WRITE
|
|
);
|
|
|
|
const bool alphaRestart =
|
|
alphaPhi10Header.typeHeaderOk<surfaceScalarField>(true);
|
|
|
|
if (alphaRestart)
|
|
{
|
|
Info << "Restarting alpha" << endl;
|
|
}
|
|
|
|
// MULES flux from previous time-step
|
|
surfaceScalarField alphaPhi10
|
|
(
|
|
alphaPhi10Header,
|
|
phi*fvc::interpolate(alpha1)
|
|
);
|
|
|
|
// MULES Correction
|
|
tmp<surfaceScalarField> talphaPhi1Corr0;
|
|
|
|
// MULES compressed flux is registered in case scalarTransport FO needs it.
|
|
surfaceScalarField alphaPhiUn
|
|
(
|
|
IOobject
|
|
(
|
|
"alphaPhiUn",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::NO_READ,
|
|
IOobject::NO_WRITE
|
|
),
|
|
mesh,
|
|
dimensionedScalar(phi.dimensions(), Zero)
|
|
);
|