18 lines
365 B
C
18 lines
365 B
C
{
|
|
fvScalarMatrix hEqn
|
|
(
|
|
fvm::ddt(rho, h)
|
|
+ fvm::div(phi, h)
|
|
- fvm::laplacian(turbulence->alphaEff(), h)
|
|
==
|
|
DpDt
|
|
);
|
|
|
|
hEqn.relax
|
|
(
|
|
mesh.solutionDict().relaxationFactor(h.select(pimple.finalIter()))
|
|
);
|
|
hEqn.solve(mesh.solutionDict().solver((h.select(pimple.finalIter()))));
|
|
|
|
thermo.correct();
|
|
}
|