57 int main(
int argc,
char *argv[])
64 #include "createControl.H" 65 #include "createFields.H" 66 #include "initContinuityErrs.H" 72 while (runTime.loop())
74 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
76 #include "CourantNo.H" 88 if (
piso.momentumPredictor())
95 while (
piso.correct())
110 while (
piso.correctNonOrthogonal())
125 if (
piso.finalNonOrthogonalIter())
131 #include "continuityErrs.H" 134 U.correctBoundaryConditions();
139 while (
bpiso.correct())
156 while (
bpiso.correctNonOrthogonal())
165 if (
bpiso.finalNonOrthogonalIter())
167 phiB -= pBEqn.flux();
pressureReference & pressureReference
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.
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
dimensionedScalar rAUf("rAUf", dimTime, 1.0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
pisoControl bpiso(mesh, "BPISO")
dimensioned< scalar > magSqr(const dimensioned< Type > &)
surfaceScalarField & phiB
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< volScalarField > 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.