Go to the documentation of this file.
71 int main(
int argc,
char *argv[])
75 "Transient solver for incompressible, laminar flow"
76 " of Newtonian fluids."
88 #include "createFields.H"
89 #include "initContinuityErrs.H"
93 Info<<
"\nStarting time loop\n" <<
endl;
99 #include "CourantNo.H"
110 if (
piso.momentumPredictor())
116 while (
piso.correct())
133 while (
piso.correctNonOrthogonal())
144 pEqn.solve(
mesh.solver(
p.select(
piso.finalInnerIter())));
146 if (
piso.finalNonOrthogonalIter())
152 #include "continuityErrs.H"
155 U.correctBoundaryConditions();
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
bool adjustPhi(surfaceScalarField &phi, const volVectorField &U, volScalarField &p)
tmp< volScalarField > rAU
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Ostream & endl(Ostream &os)
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
fvMatrix< vector > fvVectorMatrix
fvMatrix< scalar > fvScalarMatrix
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Execute application functionObjects to post-process existing results.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
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)
tmp< surfaceScalarField > flux(const volVectorField &vvf)
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)