db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
21 lines
470 B
C
21 lines
470 B
C
{
|
|
fvScalarMatrix hEqn
|
|
(
|
|
fvm::div(phi, h)
|
|
- fvm::Sp(fvc::div(phi), h)
|
|
- fvm::laplacian(turbulence->alphaEff(), h)
|
|
==
|
|
fvc::div(phi/fvc::interpolate(rho)*fvc::interpolate(p))
|
|
- p*fvc::div(phi/fvc::interpolate(rho))
|
|
+ radiation->Sh(thermo())
|
|
);
|
|
|
|
hEqn.relax();
|
|
|
|
eqnResidual = hEqn.solve().initialResidual();
|
|
maxResidual = max(eqnResidual, maxResidual);
|
|
|
|
thermo->correct();
|
|
|
|
radiation->correct();
|
|
}
|