solveFluid.H
Go to the documentation of this file.
1 Info<< "\nSolving for fluid region " << fluidRegions[i].name() << endl;
2 
3 if (finalIter)
4 {
5  mesh.data().setFinalIteration(true);
6 }
7 
8 if (frozenFlow)
9 {
10  #include "EEqn.H"
11 }
12 else
13 {
14  if (oCorr == 0)
15  {
16  #include "rhoEqn.H"
17  }
18 
19  #include "UEqn.H"
20  #include "YEqn.H"
21  #include "EEqn.H"
22 
23  if (!coupled)
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().setFinalIteration(false);
40 }
bool frozenFlow
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:518
psiReactionThermo & thermo
Definition: createFields.H:28
dynamicFvMesh & mesh
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))
Definition: createFields.H:94
messageStream Info
Information stream (stdout output on master, null elsewhere)
PtrList< fvMesh > fluidRegions(fluidNames.size())
bool coupled