52 int main(
int argc,
char *argv[])
60 #include "initContinuityErrs.H" 61 #include "createFields.H" 62 #include "createFieldRefs.H" 69 #include "compressibleCourantNo.H" 70 #include "setInitialDeltaT.H" 75 Info<<
"\nStarting time loop\n" <<
endl;
77 while (
pimple.run(runTime))
84 autoPtr<volScalarField> divrhoU;
96 #include "setRDeltaT.H" 100 #include "compressibleCourantNo.H" 101 #include "setDeltaT.H" 107 autoPtr<volVectorField> rhoU;
118 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
130 if (
pimple.thermophysics())
151 #include "correctPhi.H" 173 if (
pimple.thermophysics())
196 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s" 197 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
fluidReactionThermo & thermo
pimpleNoLoopControl & pimple
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
virtual void correct()
Correct the fvModels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void preUpdateMesh()
Prepare for mesh update.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Creates and initialises the velocity field rhoUf if required.
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
const surfaceScalarField & ghf
fluidReactionThermophysicalTransportModel & thermophysicalTransport
Foam::fvModels & fvModels
Calculates and outputs the mean and maximum Courant Numbers.
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
const volScalarField & gh
const dimensionedVector & g
Execute application functionObjects to post-process existing results.
autoPtr< surfaceVectorField > rhoUf
Provides functions smooth spread and sweep which use the FvFaceCellWave algorithm to smooth and redis...