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

TEqn.H

Go to the documentation of this file.
00001 {
00002     volScalarField kappaEff
00003     (
00004         "kappaEff",
00005         turbulence->nu()/Pr + turbulence->nut()/Prt
00006     );
00007 
00008     fvScalarMatrix TEqn
00009     (
00010         fvm::div(phi, T)
00011       - fvm::Sp(fvc::div(phi), T)
00012       - fvm::laplacian(kappaEff, T)
00013     );
00014 
00015     TEqn.relax();
00016 
00017     eqnResidual = TEqn.solve().initialResidual();
00018     maxResidual = max(eqnResidual, maxResidual);
00019 
00020     rhok = 1.0 - beta*(T - TRef);
00021 }
Copyright © 2000-2009 OpenCFD Ltd