mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
28 lines
591 B
C
28 lines
591 B
C
{
|
|
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
|
{
|
|
fvScalarMatrix hEqn
|
|
(
|
|
(
|
|
thermo.isotropic()
|
|
? -fvm::laplacian(betav*thermo.alpha(), h, "laplacian(alpha,h)")
|
|
: -fvm::laplacian(betav*taniAlpha(), h, "laplacian(alpha,h)")
|
|
)
|
|
==
|
|
fvOptions(rho, h)
|
|
);
|
|
|
|
hEqn.relax();
|
|
|
|
fvOptions.constrain(hEqn);
|
|
|
|
hEqn.solve();
|
|
|
|
fvOptions.correct(h);
|
|
}
|
|
}
|
|
|
|
thermo.correct();
|
|
|
|
Info<< "Min/max T:" << min(thermo.T()) << ' ' << max(thermo.T()) << endl;
|