00001 { 00002 kappat = turbulence->nut()/Prt; 00003 kappat.correctBoundaryConditions(); 00004 00005 volScalarField kappaEff("kappaEff", turbulence->nu()/Pr + kappat); 00006 00007 fvScalarMatrix TEqn 00008 ( 00009 fvm::div(phi, T) 00010 - fvm::Sp(fvc::div(phi), T) 00011 - fvm::laplacian(kappaEff, T) 00012 ); 00013 00014 TEqn.relax(); 00015 00016 eqnResidual = TEqn.solve().initialResidual(); 00017 maxResidual = max(eqnResidual, maxResidual); 00018 00019 rhok = 1.0 - beta*(T - TRef); 00020 }