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 for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
39 fvScalarMatrix pcorrEqn
41 fvm::laplacian(rAUf, pcorr) == fvc::div(phi)
44 pcorrEqn.setReference(pRefCell, pRefValue);
47 if (nonOrth == pimple.nNonOrthCorr())
49 phi -= pcorrEqn.flux();
53 #include "continuityErrs.H"