40 int main(
int argc,
char *argv[])
47 #include "createControl.H" 48 #include "createFields.H" 52 Info<<
"\nStarting time loop\n" <<
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
pimpleNoLoopControl & pimple
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)
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< volScalarField > rAU
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
volVectorField F(fluid.F())
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
volScalarField & h
Planck constant.
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)