58 int main(
int argc,
char *argv[])
62 "Solver for two compressible, non-isothermal immiscible fluids" 63 " using VOF phase-fraction based interface capturing.\n" 64 "With optional mesh motion and mesh topology changes including" 65 " adaptive re-meshing." 73 #include "initContinuityErrs.H" 75 #include "createFields.H" 77 #include "CourantNo.H" 78 #include "setInitialDeltaT.H" 86 Info<<
"\nStarting time loop\n" <<
endl;
100 #include "setRDeltaT.H" 104 #include "CourantNo.H" 105 #include "alphaCourantNo.H" 106 #include "setDeltaT.H" 118 scalar timeBeforeMeshUpdate =
runTime.elapsedCpuTime();
126 Info<<
"Execution time for mesh.update() = " 127 <<
runTime.elapsedCpuTime() - timeBeforeMeshUpdate
139 #include "correctPhi.H" 153 #include "alphaControls.H" 154 #include "compressibleAlphaEqnSubCycle.H" 177 p_rgh.correctBoundaryConditions();
constexpr char nl
The newline '\n' character (0x0a)
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
Ostream & endl(Ostream &os)
Add newline and flush stream.
const volScalarField & alpha2
const surfaceScalarField & ghf
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const volScalarField & psi2
Creates and initialises the velocity velocity field Uf.
autoPtr< surfaceVectorField > Uf
const uniformDimensionedVectorField & 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))
const volScalarField & psi1
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
messageStream Info
Information stream (stdout output on master, null elsewhere)
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.
const volScalarField & alpha1