2 if (
pimple.nCorrPIMPLE() == 1)
20 fvc::makeRelative(
phi,
U);
28 while (
pimple.correctNonOrthogonal())
33 +
psi*correction(fvm::ddt(
p))
39 pEqn.solve(
mesh.solver(
p.select(
pimple.finalInnerIter())));
41 if (
pimple.finalNonOrthogonalIter())
47 Info<<
"Predicted p max-min : " <<
max(
p).value()
58 - ((alphav*psiv +
alphal*psil) -
psi)*pSat
61 p.correctBoundaryConditions();
63 Info<<
"Phase-change corrected p max-min : " <<
max(
p).value()
71 if (
pimple.dict().found(
"removeSwirl"))
73 label swirlCmpt(
pimple.dict().get<label>(
"removeSwirl"));
75 Info<<
"Removing swirl component-" << swirlCmpt <<
" of U" <<
endl;
76 U.field().replace(swirlCmpt, Zero);
79 U.correctBoundaryConditions();
84 Uf = fvc::interpolate(
U);
const volScalarField & psi
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho *rAU))
autoPtr< surfaceVectorField > Uf
const dimensionedScalar rhoMin
tmp< volScalarField > rAU
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"))
surfaceScalarField phiGradp(rhorAUf *mesh.magSf() *fvc::snGrad(p))
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
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.