23 lines
359 B
C
23 lines
359 B
C
{
|
|
fvScalarMatrix hEqn
|
|
(
|
|
fvm::ddt(rho, h)
|
|
+ fvm::div(phi, h)
|
|
- fvm::laplacian(turbulence->alphaEff(), h)
|
|
==
|
|
DpDt
|
|
);
|
|
|
|
if (oCorr == nOuterCorr-1)
|
|
{
|
|
hEqn.relax();
|
|
hEqn.solve(mesh.solver("hFinal"));
|
|
}
|
|
else
|
|
{
|
|
hEqn.relax();
|
|
hEqn.solve();
|
|
}
|
|
|
|
thermo.correct();
|
|
}
|