-
Notifications
You must be signed in to change notification settings - Fork 8
/
EEqn.H
39 lines (32 loc) · 807 Bytes
/
EEqn.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
volScalarField& he = thermo.he();
fvScalarMatrix EEqn
(
fvm::ddt(rho, he) + mvConvection->fvmDiv(phi, he)
+ fvc::ddt(rho, K) + fvc::div(phi, K)
+ (
he.name() == "e"
? fvc::div
(
fvc::absolute(phi/fvc::interpolate(rho), U),
p,
"div(phiv,p)"
)
: -dpdt
)
- fvm::laplacian(turbulence->alphaEff(), he)
+ diffsh
==
reaction->Qdot()
+ fvc::div(vk)
+ fvOptions(rho, he)
);
EEqn.relax();
fvOptions.constrain(EEqn);
EEqn.solve();
fvOptions.correct(he);
//thermo.correct();
#include "thermoCorrectByCantera.H"
Info<< "min/max(T) = "
<< min(T).value() << ", " << max(T).value() << endl;
}