EEqnRhoSimple.H
Go to the documentation of this file.
1 {
2 
4 
5  volScalarField& he = thermo.he();
6 
7  fvScalarMatrix EEqn(
8  fvm::div(phi, he)
9  + (he.name() == "e"
10  ? fvc::div(phi, volScalarField("Ekp", 0.5 * magSqr(U) + p / rho))
11  : fvc::div(phi, volScalarField("K", 0.5 * magSqr(U))))
12  - fvm::laplacian(turbulencePtr_->alphaEff(), he)
14  - fvOptions(rho, he));
15 
16  EEqn.relax();
17 
18  fvOptions.constrain(EEqn);
19 
20  // get the solver performance info such as initial
21  // and final residuals
22  SolverPerformance<scalar> solverE = EEqn.solve();
23 
24  this->primalResidualControl<scalar>(solverE, printToScreen, printInterval, "he");
25 
26  // bound he
27  DAUtility::boundVar(allOptions, he, printToScreen);
28 
29  thermo.correct();
30 }
solverE
SolverPerformance< scalar > solverE
Definition: EEqnRhoSimple.H:22
allOptions
const dictionary & allOptions
Definition: createRefsRhoSimpleC.H:15
U
U
Definition: pEqnPimpleDyM.H:60
primalResidualControl< scalar >
this primalResidualControl< scalar >(solverE, printToScreen, printInterval, "he")
EEqn
fvScalarMatrix EEqn(fvm::div(phi, he)+(he.name()=="e" ? fvc::div(phi, volScalarField("Ekp", 0.5 *magSqr(U)+p/rho)) :fvc::div(phi, volScalarField("K", 0.5 *magSqr(U)))) - fvm::laplacian(turbulencePtr_->alphaEff(), he) - fvSourceEnergy - fvOptions(rho, he))
fvSource
volScalarField & fvSource
Definition: createRefsHeatTransfer.H:7
p
volScalarField & p
Definition: createRefsPimple.H:6
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
thermo
fluidThermo & thermo
Definition: createRefsRhoSimpleC.H:6
he
volScalarField & he
Definition: EEqnRhoSimple.H:5
fvSourceEnergy
volScalarField & fvSourceEnergy
Definition: createRefsRhoSimple.H:17
rho
volScalarField & rho
Definition: createRefsRhoSimpleC.H:8