40 int main(
int argc,
char *argv[])
47 #include "createControl.H" 48 #include "createFields.H" 52 Info<<
"\nStarting time loop\n" <<
endl;
54 while (runTime.loop())
56 Info<<
"\n Time = " << runTime.timeName() <<
nl <<
endl;
58 #include "CourantNo.H" 73 if (
pimple.momentumPredictor())
85 if (
mesh.nGeometricD() == 3)
87 hU -= (gHat & hU)*gHat;
88 hU.correctBoundaryConditions();
118 while (
pimple.correctNonOrthogonal())
127 hEqn.solve(
mesh.solver(
h.select(
pimple.finalInnerIter())));
129 if (
pimple.finalNonOrthogonalIter())
138 if (
mesh.nGeometricD() == 3)
140 hU -= (gHat & hU)*gHat;
143 hU.correctBoundaryConditions();
152 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s" 153 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
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)
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
const dictionary & pimple
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< surfaceScalarField > interpolate(const RhoType &rho)
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)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionedScalar h
Planck constant.
const dimensionedScalar F
Faraday constant: default SI units: [C/mol].
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.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
volScalarField rAU(1.0/UEqn.A())