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