solveFluid.H
Go to the documentation of this file.
1 if (!pimple.flow())
2 {
3  if (pimple.models())
4  {
6  }
7 
8  if (pimple.thermophysics())
9  {
10  #include "YEqn.H"
11  #include "EEqn.H"
12  }
13 }
14 else
15 {
16  if (!mesh.steady() && pimples.firstPimpleIter())
17  {
18  #include "rhoEqn.H"
19  }
20 
21  if (pimple.models())
22  {
23  fvModels.correct();
24  }
25 
26  #include "UEqn.H"
27 
28  if (pimple.thermophysics())
29  {
30  #include "YEqn.H"
31  #include "EEqn.H"
32  }
33 
34  // --- PISO loop
35  while (pimple.correct())
36  {
37  #include "../../buoyantPimpleFoam/pEqn.H"
38  }
39 
40  if (pimples.pimpleTurbCorr(i))
41  {
42  turbulence.correct();
43  thermophysicalTransport.correct();
44  }
45 
46  if (!mesh.steady() && pimples.finalPimpleIter())
47  {
48  rho = thermo.rho();
49  }
50 }
fluidReactionThermo & thermo
Definition: createFields.H:28
pimpleNoLoopControl & pimple
virtual void correct()
Correct the fvModels.
Definition: fvModels.C:316
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(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
fluidReactionThermophysicalTransportModel & thermophysicalTransport
Foam::fvModels & fvModels