Go to the documentation of this file.
41 int main(
int argc,
char *argv[])
47 pisoControl piso(
mesh);
49 #include "createFields.H"
50 #include "initContinuityErrs.H"
54 Info<<
"\nStarting time loop\n" <<
endl;
56 while (runTime.loop())
58 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
60 #include "CourantNo.H"
74 if (piso.momentumPredictor())
80 while (piso.correct())
96 while (piso.correctNonOrthogonal())
107 pEqn.solve(
mesh.solver(
p.select(piso.finalInnerIter())));
109 if (piso.finalNonOrthogonalIter())
115 #include "continuityErrs.H"
118 U.correctBoundaryConditions();
123 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
124 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
bool adjustPhi(surfaceScalarField &phi, const volVectorField &U, volScalarField &p)
Adjust the balance of fluxes to obey continuity.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< surfaceScalarField > interpolate(const RhoType &rho)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
fvMatrix< vector > fvVectorMatrix
fvMatrix< scalar > fvScalarMatrix
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
tmp< fvVectorMatrix > UEqn(fvm::div(phi, U)+MRF.DDt(U)+turbulence->divDevReff(U)==fvOptions(U))
int main(int argc, char *argv[])
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< vector, fvPatchField, volMesh > volVectorField
volScalarField rAU("rAU", 1.0/UEqn().A())
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)