2 #include "continuityErrs.H"
6 p_rgh.boundaryField().size(),
7 zeroGradientFvPatchScalarField::typeName
10 forAll (p_rgh.boundaryField(), i)
12 if (p_rgh.boundaryField()[i].fixesValue())
14 pcorrTypes[i] = fixedValueFvPatchScalarField::typeName;
29 dimensionedScalar("pcorr", p_rgh.dimensions(), 0.0),
33 dimensionedScalar rAUf("(1|A(U))", dimTime/rho.dimensions(), 1.0);
35 adjustPhi(phi, U, pcorr);
37 fvc::makeAbsolute(phi, U);
39 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
41 fvScalarMatrix pcorrEqn
43 fvm::laplacian(rAUf, pcorr) == fvc::div(phi)
46 pcorrEqn.setReference(pRefCell, pRefValue);
49 if (nonOrth == pimple.nNonOrthCorr())
51 phi -= pcorrEqn.flux();
53 fvc::makeRelative(phi, U);
57 #include "continuityErrs.H"