2 if (
pimple.nCorrPIMPLE() == 1)
25 while (
pimple.correctNonOrthogonal())
30 - (rhol0 + (psil - psiv)*pSat)*fvc::ddt(alphav) - pSat*fvc::ddt(
psi)
36 pEqn.solve(
mesh.solver(
p.select(
pimple.finalInnerIter())));
38 if (
pimple.finalNonOrthogonalIter())
44 Info<<
"Predicted p max-min : " <<
max(
p).value()
51 + ((alphav*psiv +
alphal*psil) -
psi)*pSat,
61 - ((alphav*psiv +
alphal*psil) -
psi)*pSat
64 p.correctBoundaryConditions();
66 Info<<
"Phase-change corrected p max-min : " <<
max(
p).value()
74 if (
pimple.dict().found(
"removeSwirl"))
76 label swirlCmpt(
pimple.dict().get<label>(
"removeSwirl"));
78 Info<<
"Removing swirl component-" << swirlCmpt <<
" of U" <<
endl;
79 U.field().replace(swirlCmpt, Zero);
82 U.correctBoundaryConditions();
const volScalarField & psi
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho *rAU))
const dimensionedScalar rhoMin
tmp< volScalarField > rAU
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"))
surfaceScalarField phiGradp(rhorAUf *mesh.magSf() *fvc::snGrad(p))
messageStream Info
Information stream (stdout output on master, null elsewhere)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.