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), rho/psi, "div(U,p)")
00009       - (rho/psi)*fvc::div(phi/fvc::interpolate(rho))
00010     );
00011 
00012     hEqn.relax();
00013 
00014     eqnResidual = hEqn.solve().initialResidual();
00015     maxResidual = max(eqnResidual, maxResidual);
00016 
00017     thermo.correct();
00018 }
00019 
00020 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines