OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

hEqn.H

Go to the documentation of this file.
00001 {
00002     fvScalarMatrix hEqn
00003     (
00004         fvm::div(phi, h)
00005       - fvm::Sp(fvc::div(phi), h)
00006       - fvm::laplacian(turbulence->alphaEff(), h)
00007      ==
00008         fvc::div(phi/fvc::interpolate(rho)*fvc::interpolate(p))
00009       - p*fvc::div(phi/fvc::interpolate(rho))
00010       + radiation->Sh(thermo)
00011     );
00012 
00013     hEqn.relax();
00014 
00015     eqnResidual = hEqn.solve().initialResidual();
00016     maxResidual = max(eqnResidual, maxResidual);
00017 
00018     thermo.correct();
00019 
00020     radiation->correct();
00021 }
Copyright © 2000-2009 OpenCFD Ltd