mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
32 lines
605 B
C
32 lines
605 B
C
{
|
|
volScalarField& hea = thermo.he();
|
|
|
|
fvScalarMatrix EaEqn
|
|
(
|
|
betav*fvm::ddt(rho, hea) + mvConvection->fvmDiv(phi, hea)
|
|
+ betav*fvc::ddt(rho, K) + fvc::div(phi, K)
|
|
+ (
|
|
hea.name() == "ea"
|
|
? fvc::div
|
|
(
|
|
phi/fvc::interpolate(rho),
|
|
p,
|
|
"div(phiv,p)"
|
|
)
|
|
: -betav*dpdt
|
|
)
|
|
- fvm::laplacian(Db, hea)
|
|
+ betav*fvOptions(rho, hea)
|
|
);
|
|
|
|
EaEqn.relax();
|
|
|
|
fvOptions.constrain(EaEqn);
|
|
|
|
EaEqn.solve();
|
|
|
|
fvOptions.correct(hea);
|
|
|
|
thermo.correct();
|
|
}
|