3dynamicFvMesh& mesh = meshPtr();
4dimensionedScalar& initialMass = _initialMass();
5surfaceScalarField& phi = _phi();
6volScalarField& rho = _rho();
7fluidThermo& thermo = pThermo();
8pressureControl& pressureControl = _pressureControl();
9volScalarField& psi = _psi();
10bool closedVolume =
false;
11IOMRFZoneList& MRF = _MRF();
12fv::options& fvOptions = _fvOptions();
13const dimensionedScalar rhoMax(
"rhoMax", dimDensity, GREAT, pimple.dict());
14const dimensionedScalar rhoMin(
"rhoMin", dimDensity, Zero, pimple.dict());
17Info <<
"\nStarting time loop\n" << endl;
18#include "createRhoUfIfPresent.H"
19#include "createDpdt.H"
28 autoPtr<volScalarField> divrhoU;
37 fvc::div(fvc::absolute(phi, rho, U))
42#include "compressibleCourantNo.H"
44 runTime.setEndTime(finalTime);
46 Info <<
"Time = " << runTime.timeName() << nl << endl;
51 if (pimple.firstIter() || moveMeshOuterCorrectors)
54 autoPtr<volVectorField> rhoU;
58 rhoU.reset(
new volVectorField(
"rhoU", rho * U));
62 mesh.controlledUpdate();
72 phi = mesh.Sf() & rhoUf();
73#include "correctPhi.H"
75 fvc::makeRelative(phi, rho, U);
78 if (checkMeshCourantNo)
80#include "meshCourantNo.H"
85 if (pimple.firstIter() && !pimple.SIMPLErho())
94 while (pimple.correct())
99 if (pimple.turbCorr())
101 turbulence->correct();
107 if (checkWrite(runTime))
113 name(counter) +
"/polyMesh/");
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.