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