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), p, "div(U,p)")
00009       - p*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 }
Copyright © 2000-2009 OpenCFD Ltd