solveFluid.H
Go to the documentation of this file.
1 if (finalIter)
2 {
3  mesh.data::add("finalIteration", true);
4 }
5 
7 {
8  #include "EEqn.H"
9 }
10 else
11 {
12  if (oCorr == 0)
13  {
14  #include "rhoEqn.H"
15  }
16 
17  #include "UEqn.H"
18  #include "YEqn.H"
19  #include "EEqn.H"
20 
21  // --- PISO loop
22  for (int corr=0; corr<nCorr; corr++)
23  {
24  #include "pEqn.H"
25  }
26 
27  turbulence.correct();
28 
29  rho = thermo.rho();
30 }
31 
32 if (finalIter)
33 {
34  mesh.data::remove("finalIteration");
35 }
nCorr
const int nCorr
Definition: readFluidMultiRegionPIMPLEControls.H:3
turbulence
Info<< "Reading field U\n"<< 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\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
YEqn.H
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
UEqn.H
pEqn.H
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
EEqn.H
rho
rho
Definition: solveFluid.H:29
frozenFlow
bool frozenFlow
Definition: setRegionFluidFields.H:32