57 int main(
int argc,
char *argv[])
64 #include "initContinuityErrs.H" 65 #include "createControl.H" 66 #include "createFields.H" 70 #include "createControls.H" 71 #include "CourantNo.H" 72 #include "setInitialDeltaT.H" 82 Info<<
"\nStarting time loop\n" <<
endl;
86 #include "readControls.H" 95 #include "setRDeltaT.H" 99 #include "CourantNo.H" 100 #include "alphaCourantNo.H" 101 #include "setDeltaT.H" 106 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
113 scalar timeBeforeMeshUpdate = runTime.elapsedCpuTime();
119 Info<<
"Execution time for mesh.update() = " 120 << runTime.elapsedCpuTime() - timeBeforeMeshUpdate
132 #include "correctPhi.H" 146 #include "alphaControls.H" 166 Info<<
"ExecutionTime = " 167 << runTime.elapsedCpuTime()
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
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.
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
const volScalarField & gh
Execute application functionObjects to post-process existing results.
void makeRelative(surfaceScalarField &phi, const volVectorField &U)
Make the given flux relative.
Provides functions smooth spread and sweep which use the FaceCellWave algorithm to smooth and redistr...
CMULES: Multidimensional universal limiter for explicit corrected implicit solution.