2 # include "continuityErrs.H"
4 wordList pcorrTypes(pd.boundaryField().types());
6 for (label i=0; i < pd.boundaryField().size(); i++)
8 if (pd.boundaryField()[i].fixesValue())
10 pcorrTypes[i] = fixedValueFvPatchScalarField::typeName;
25 dimensionedScalar("pcorr", pd.dimensions(), 0.0),
29 for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
31 fvScalarMatrix pcorrEqn
33 fvm::laplacian(rAU, pcorr) == fvc::div(phi)
36 pcorrEqn.setReference(pRefCell, pRefValue);
37 pcorrEqn.solve(mesh.solver(pd.name()));
39 if (nonOrth == nNonOrthCorr)
41 phi -= pcorrEqn.flux();
44 // Fluxes are corrected to absolute velocity and further corrected
45 // later. HJ, 6/Feb/2009
48 # include "continuityErrs.H"