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  if (!coupled)
22  {
23  Info<< "\nSolving for fluid region " << fluidRegions[i].name() << endl;
24 
25  // --- PISO loop
26  for (int corr=0; corr<nCorr; corr++)
27  {
28  #include "pEqn.H"
29  }
30 
31  turbulence.correct();
32 
33  rho = thermo.rho();
34  }
35 }
36 
37 if (finalIter)
38 {
39  mesh.data::remove("finalIteration");
40 }
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...
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
UEqn.H
rho
rho
Definition: readInitialConditions.H:88
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
pEqn.H
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
EEqn.H
fluidRegions
PtrList< fvMesh > fluidRegions(fluidNames.size())
coupled
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
frozenFlow
bool frozenFlow
Definition: setRegionFluidFields.H:34