Go to the documentation of this file.
43 int main(
int argc,
char *argv[])
51 #include "readGravitationalAcceleration.H"
52 #include "createFields.H"
56 Info<<
"\nStarting time loop\n" <<
endl;
58 while (runTime.loop())
60 Info<<
"\n Time = " << runTime.timeName() <<
nl <<
endl;
62 #include "CourantNo.H"
77 if (
pimple.momentumPredictor())
89 if (
mesh.nGeometricD() == 3)
91 hU -= (gHat & hU)*gHat;
92 hU.correctBoundaryConditions();
122 while (
pimple.correctNonOrthogonal())
131 hEqn.solve(
mesh.solver(
h.select(
pimple.finalInnerIter())));
133 if (
pimple.finalNonOrthogonalIter())
142 if (
mesh.nGeometricD() == 3)
144 hU -= (gHat & hU)*gHat;
147 hU.correctBoundaryConditions();
156 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
157 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
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.
const dimensionedScalar F
Faraday constant: default SI units: [C/mol].
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
fvMatrix< vector > fvVectorMatrix
fvMatrix< scalar > fvScalarMatrix
const dimensionedScalar h
Planck constant.
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
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
const dictionary & pimple
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)