21 lines
413 B
C
21 lines
413 B
C
{
|
|
fvScalarMatrix EEqn
|
|
(
|
|
fvm::ddt(rho, e) + fvm::div(phi, e)
|
|
+ fvc::ddt(rho, K) + fvc::div(phi, K)
|
|
+ fvc::div(fvc::absolute(phi/fvc::interpolate(rho), U), p, "div(phiv,p)")
|
|
- fvm::laplacian(turbulence->alphaEff(), e)
|
|
==
|
|
fvOptions(rho, e)
|
|
);
|
|
|
|
EEqn.relax();
|
|
|
|
fvOptions.constrain(EEqn);
|
|
|
|
EEqn.solve();
|
|
|
|
fvOptions.correct(e);
|
|
|
|
thermo.correct();
|
|
}
|