3dynamicFvMesh& mesh = problem->meshPtr();
4dimensionedScalar& initialMass = problem->_initialMass();
5surfaceScalarField& phi = problem->_phi();
6volScalarField& rho = problem->_rho();
7fluidThermo& thermo = problem->pThermo();
8pressureControl& pressureControl = problem->_pressureControl();
9volScalarField& psi = problem->_psi();
10bool closedVolume =
false;
11IOMRFZoneList& MRF = problem->_MRF();
12fv::options& fvOptions = problem->_fvOptions();
13const dimensionedScalar rhoMax(
"rhoMax", dimDensity, GREAT, pimple.dict());
14const dimensionedScalar rhoMin(
"rhoMin", dimDensity, Zero, pimple.dict());
18Info <<
"\nStarting time loop\n" << endl;
19#include "createRhoUfIfPresent.H"
20#include "createDpdt.H"
29 autoPtr<volScalarField> divrhoU;
38 fvc::div(fvc::absolute(phi, rho, U))
43#include "compressibleCourantNo.H"
45 runTime.setEndTime(finalTime);
47 Info <<
"Time = " << runTime.timeName() << nl << endl;
52 if (pimple.firstIter() || moveMeshOuterCorrectors)
55 autoPtr<volVectorField> rhoU;
59 rhoU.reset(
new volVectorField(
"rhoU", rho * U));
63 mesh.controlledUpdate();
73 phi = mesh.Sf() & rhoUf();
76 fvc::makeRelative(phi, rho, U);
79 if (checkMeshCourantNo)
81#include "meshCourantNo.H"
86 if (pimple.firstIter() && !pimple.SIMPLErho())
91#include "ReducedUEqn.H"
92#include "ReducedEEqn.H"
95 while (pimple.correct())
97#include "ReducedpEqn.H"
100 if (pimple.turbCorr())
102 problem->turbulence->correct();
108 if (checkWrite(runTime))
115 std::ofstream of(folder + name(counter) +
"/" + runTime.timeName());
116 Ufield.append(U.clone());
117 Pfield.append(p.clone());
118 Efield.append(E.clone());
119 nextWrite += writeEvery;
void writePoints(pointField points, fileName folder, fileName subfolder)
Write points of a mesh to a file.
void exportSolution(GeometricField< Type, PatchField, GeoMesh > &s, fileName subfolder, fileName folder, word fieldName)
Export a field to file in a certain folder and subfolder.