24 lines
360 B
C
24 lines
360 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();
|
||
|
}
|