Files
OpenFOAM-12/applications/solvers/combustion/PDRFoam/EaEqn.H
2014-12-10 22:40:10 +00:00

23 lines
454 B
C

{
volScalarField& hea = thermo.he();
solve
(
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)
);
thermo.correct();
}