00001 { 00002 fvScalarMatrix hEqn 00003 ( 00004 fvm::div(phi, h) 00005 - fvm::Sp(fvc::div(phi), h) 00006 - fvm::laplacian(turb.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 00019 Info<< "Min/max T:" << min(thermo.T()).value() << ' ' 00020 << max(thermo.T()).value() << endl; 00021 }