Loading...
Searching...
No Matches
EEqn.H
Go to the documentation of this file.
1{
2 volScalarField& he = thermo.he();
3
4 fvScalarMatrix EEqn
5 (
6 fvm::div(phi, he)
7 + (
8 he.name() == "e"
9 ? fvc::div(phi, volScalarField("Ekp", 0.5 * magSqr(U) + p / rho))
10 : fvc::div(phi, volScalarField("K", 0.5 * magSqr(U)))
11 )
12 - fvm::laplacian(turbulence->alphaEff(), he)
13 ==
14 fvOptions(rho, he)
15 );
16
17 EEqn.relax();
18
19 fvOptions.constrain(EEqn);
20
21 eresidual = EEqn.solve().initialResidual();
22
23 fvOptions.correct(he);
24
25 thermo.correct(); // Here are calculated both temperature and density based on P,U and he.
26}
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(turbulence->alphaEff(), he)==fvOptions(rho, he))
eresidual
Definition EEqn.H:21
fv::options & fvOptions
Definition NLsolve.H:25
surfaceScalarField & phi
volVectorField & U
volScalarField & p
volScalarField & rho
fluidThermo & thermo
turbulence