46 int main(
int argc,
char *argv[])
53 #include "initContinuityErrs.H" 54 #include "createControl.H" 57 #include "createFields.H" 67 IOobject::READ_IF_PRESENT,
74 #include "correctPhi.H" 76 #include "CourantNo.H" 77 #include "setInitialDeltaT.H" 85 Info<<
"\nStarting time loop\n" <<
endl;
89 #include "readControls.H" 90 #include "CourantNo.H" 91 #include "alphaCourantNo.H" 93 #include "setDeltaT.H" 97 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
104 scalar timeBeforeMeshUpdate = runTime.elapsedCpuTime();
110 Info<<
"Execution time for mesh.update() = " 111 << runTime.elapsedCpuTime() - timeBeforeMeshUpdate
123 #include "correctPhi.H" 156 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s" 157 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
const dictionary & pimple
Ostream & endl(Ostream &os)
Add newline and flush stream.
const surfaceScalarField & ghf
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Creates and initialises the velocity velocity field Uf.
const dimensionedVector & g
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("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Creating phaseChangeTwoPhaseMixture\"<< endl;autoPtr< phaseChangeTwoPhaseMixture > mixture
Calculates and outputs the mean and maximum Courant Numbers.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const volScalarField & gh
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Execute application functionObjects to post-process existing results.
void makeRelative(surfaceScalarField &phi, const volVectorField &U)
Make the given flux relative.
Read the control parameters used by setDeltaT.
volScalarField rAU(1.0/UEqn.A())