47 int main(
int argc,
char *argv[])
55 #include "createFields.H" 56 #include "createFieldRefs.H" 60 #include "CourantNo.H" 61 #include "setInitialDeltaT.H" 66 pimple.dict().lookupOrDefault<Switch>(
"faceMomentum",
false)
68 Switch partialElimination
70 pimple.dict().lookupOrDefault<Switch>(
"partialElimination",
false)
77 Info<<
"\nStarting time loop\n" <<
endl;
85 pimple.dict().lookupOrDefault<
int>(
"nEnergyCorrectors", 1)
90 #include "setRDeltaT.H" 98 #include "CourantNo.H" 99 #include "setDeltaT.H" 115 if (
pimple.thermophysics())
119 fluid.correctContinuityError();
138 tmp<volScalarField>
divU;
192 fluid.correctContinuityError();
194 if (
pimple.thermophysics())
203 if (
pimple.thermophysics())
214 if (
pimple.thermophysics())
222 fluid.correctKinematics();
226 fluid.correctTurbulence();
233 Info<<
"ExecutionTime = "
pressureReference & pressureReference
#define forAll(list, i)
Loop across all elements in list.
pimpleNoLoopControl & pimple
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);if(fluid.found("pMin")){ IOWarningInFunction(fluid)<< "Pressure limits, pMin and pMax, are now read from "<< pimple.dict().name()<< endl;}pressureReference pressureReference(p, p_rgh, pimple.dict(), fluid.incompressible());if(fluid.incompressible()){ p=p_rgh+fluid.rho() *gh;}if(p_rgh.needReference() &&fluid.incompressible()){ p+=dimensionedScalar("p", p.dimensions(), pressureReference.refValue() - getRefCellValue(p, pressureReference.refCell()));}p_rgh=p - fluid.rho() *gh;mesh.setFluxRequired(p_rgh.name());PtrList< volScalarField > rAUs
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.
PtrList< fvScalarMatrix > pEqnComps(phases.size())
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const surfaceScalarField & ghf
PtrList< surfaceScalarField > rAUfs
tmp< volScalarField > divU
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.
phaseSystem::phaseModelList & phases
const volScalarField & gh
const dimensionedVector & g
Execute application functionObjects to post-process existing results.
Provides functions smooth spread and sweep which use the FaceCellWave algorithm to smooth and redistr...