|
|
|
pEqn.HGo to the documentation of this file.00001 volScalarField rUA = 1.0/UEqn.A(); 00002 00003 surfaceScalarField rUAf 00004 ( 00005 "(rho*(1|A(U)))", 00006 fvc::interpolate(rho)*fvc::interpolate(rUA) 00007 ); 00008 00009 U = rUA*UEqn.H(); 00010 phi = 00011 fvc::interpolate(rho) 00012 *( 00013 (fvc::interpolate(U) & mesh.Sf()) 00014 + fvc::ddtPhiCorr(rUA, rho, U, phi) 00015 ); 00016 00017 surfaceScalarField phiU("phiU", phi); 00018 phi += fvc::interpolate(rho)*(g & mesh.Sf())*rUAf; 00019 00020 for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++) 00021 { 00022 fvScalarMatrix pEqn 00023 ( 00024 fvm::laplacian(rUAf, p) == fvc::ddt(rho) + fvc::div(phi) 00025 ); 00026 00027 pEqn.setReference(pRefCell, pRefValue); 00028 pEqn.solve(); 00029 00030 if (nonOrth == nNonOrthCorr) 00031 { 00032 phi -= pEqn.flux(); 00033 } 00034 } 00035 00036 #include "rhoEqn.H" 00037 #include "compressibleContinuityErrs.H" 00038 00039 U += rUA*fvc::reconstruct((phi - phiU)/rUAf); 00040 U.correctBoundaryConditions(); |