Go to the documentation of this file.
2 if (
pimple.nCorrPIMPLE() == 1)
28 while (
pimple.correctNonOrthogonal())
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();
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
static constexpr const zero Zero
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Ostream & endl(Ostream &os)
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
volScalarField rho0(rho - psi *p)
surfaceScalarField phiGradp(rhorAUf *mesh.magSf() *fvc::snGrad(p))
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
label min(const labelHashSet &set, label minValue=labelMax)
fvMatrix< scalar > fvScalarMatrix
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho *rAU))
const dimensionedScalar rhoMin
GeometricField< scalar, fvPatchField, volMesh > volScalarField
MRF makeRelative(fvc::interpolate(rho), phiHbyA)
label max(const labelHashSet &set, label maxValue=labelMin)
volScalarField rAU(1.0/UEqn.A())
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
tmp< surfaceScalarField > flux(const volVectorField &vvf)
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"))
const volScalarField & psi
surfaceVectorField n(mesh.Sf()/mesh.magSf())