Go to the documentation of this file.
68 int main(
int argc,
char *argv[])
74 pisoControl piso(
mesh);
76 #include "createFields.H"
77 #include "initContinuityErrs.H"
81 Info<<
"\nStarting time loop\n" <<
endl;
83 while (runTime.loop())
85 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
87 #include "CourantNo.H"
98 if (piso.momentumPredictor())
104 while (piso.correct())
120 while (piso.correctNonOrthogonal())
131 pEqn.solve(
mesh.solver(
p.select(piso.finalInnerIter())));
133 if (piso.finalNonOrthogonalIter())
139 #include "continuityErrs.H"
142 U.correctBoundaryConditions();
147 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
148 <<
" 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)