ITHACA-FV
2023.1
Loading...
Searching...
No Matches
src
ITHACA_FOMPROBLEMS
CompressibleSteadyNS
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
}
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(turbulence->alphaEff(), he)==fvOptions(rho, he))
eresidual
eresidual
Definition
EEqn.H:21
fvOptions
fv::options & fvOptions
Definition
NLsolve.H:25
phi
surfaceScalarField & phi
Definition
createFields.H:68
U
volVectorField & U
Definition
createFields.H:42
p
volScalarField & p
Definition
createFields.H:42
rho
volScalarField & rho
Definition
createFields.H:67
thermo
fluidThermo & thermo
Definition
createFields.H:33
turbulence
turbulence
Definition
createFields.H:88
Generated by
1.13.2