2 wordList pcorrTypes(p.boundaryField().types());
4 for (label i=0; i<p.boundaryField().size(); i++)
6 if (p.boundaryField()[i].fixesValue())
8 pcorrTypes[i] = fixedValueFvPatchScalarField::typeName;
23 dimensionedScalar("pcorr", p.dimensions(), 0.0),
27 phi = (fvc::interpolate(U) & mesh.Sf());
29 for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
31 fvScalarMatrix pcorrEqn
33 fvm::laplacian(rUA, pcorr) == fvc::div(phi)
36 pcorrEqn.setReference(pRefCell, pRefValue);
39 if (nonOrth == nNonOrthCorr)
41 phi -= pcorrEqn.flux();
46 #include "continuityErrs.H"