32 lines
671 B
C++
32 lines
671 B
C++
{
|
|
fvScalarMatrix eEqn
|
|
(
|
|
fvm::ddt(rho, e)
|
|
+ fvm::div(phi, e)
|
|
- fvm::laplacian(turbulence->alphaEff(), e)
|
|
==
|
|
- p*fvc::div(phi/fvc::interpolate(rho))
|
|
// - fvm::SuSp
|
|
// (
|
|
// p*fvc::div(phi/fvc::interpolate(rho))/e,
|
|
// e
|
|
// )
|
|
// viscous heating?
|
|
);
|
|
|
|
eEqn.relax
|
|
(
|
|
mesh.solutionDict().equationRelaxationFactor(e.select(pimple.finalIter()))
|
|
);
|
|
|
|
eEqn.solve();
|
|
|
|
thermo.correct();
|
|
|
|
// Recalculate compressibility
|
|
psis = thermo.psi()/thermo.Cp()*thermo.Cv();
|
|
|
|
// Recalculate density
|
|
rho = thermo.rho();
|
|
rho.correctBoundaryConditions();
|
|
}
|