FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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 }
00022 
00023 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines