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  DAUtility::primalResidualControl(solverE, printToScreen_, "he", daGlobalVarPtr_->primalMaxRes);
25 
26  // bound he
27  DAUtility::boundVar(allOptions, he, printToScreen_);
28 
29  thermo.correct();
30 }
solverE
SolverPerformance< scalar > solverE
Definition: EEqnRhoSimple.H:22
U
volVectorField & U
Definition: createRefsPimpleDyM.H:7
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))
fvSourceEnergy
volScalarField & fvSourceEnergy
Definition: createRefsRhoPimple.H:17
fvSource
volScalarField & fvSource
Definition: createRefsHeatTransfer.H:7
thermo
fluidThermo & thermo
Definition: createRefsRhoPimple.H:6
p
volScalarField & p
Definition: createRefsPimpleDyM.H:6
phi
surfaceScalarField & phi
Definition: createRefsPimpleDyM.H:8
rho
volScalarField & rho
Definition: createRefsRhoPimple.H:8
allOptions
const dictionary & allOptions
Definition: createRefsPimpleDyM.H:14
he
volScalarField & he
Definition: EEqnRhoSimple.H:5