56 int main(
int argc,
char *argv[])
63 #include "createControl.H" 64 #include "createFields.H" 65 #include "initContinuityErrs.H" 71 while (runTime.loop())
73 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
75 #include "CourantNo.H" 87 if (
piso.momentumPredictor())
94 while (
piso.correct())
109 while (
piso.correctNonOrthogonal())
117 pEqn.solve(
mesh.solver(
p.select(
piso.finalInnerIter())));
119 if (
piso.finalNonOrthogonalIter())
125 #include "continuityErrs.H" 128 U.correctBoundaryConditions();
133 while (
bpiso.correct())
150 while (
bpiso.correctNonOrthogonal())
157 pBEqn.solve(
mesh.solver(pB.select(
bpiso.finalInnerIter())));
159 if (
bpiso.finalNonOrthogonalIter())
161 phiB -= pBEqn.flux();
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
fvMatrix< scalar > fvScalarMatrix
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< surfaceScalarField > interpolate(const RhoType &rho)
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
pisoControl bpiso(mesh,"BPISO")
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
surfaceScalarField & phiB
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
fvMatrix< vector > fvVectorMatrix
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Execute application functionObjects to post-process existing results.
volScalarField rAU(1.0/UEqn.A())