|
|
|
UEqn.HGo to the documentation of this file.00001 surfaceScalarField muEff 00002 ( 00003 "muEff", 00004 twoPhaseProperties.muf() 00005 + fvc::interpolate(rho*turbulence->nut()) 00006 ); 00007 00008 fvVectorMatrix UEqn 00009 ( 00010 fvm::ddt(rho, U) 00011 + fvm::div(rhoPhi, U) 00012 - fvm::laplacian(muEff, U) 00013 - (fvc::grad(U) & fvc::grad(muEff)) 00014 //- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U))) & mesh.Sf())) 00015 ); 00016 00017 if (oCorr == nOuterCorr-1) 00018 { 00019 UEqn.relax(1); 00020 } 00021 else 00022 { 00023 UEqn.relax(); 00024 } 00025 00026 if (momentumPredictor) 00027 { 00028 solve 00029 ( 00030 UEqn 00031 == 00032 fvc::reconstruct 00033 ( 00034 fvc::interpolate(rho)*(g & mesh.Sf()) 00035 - mesh.magSf()*fvc::snGrad(p) 00036 ), 00037 mesh.solver(oCorr == nOuterCorr-1 ? "UFinal" : "U") 00038 ); 00039 } |