2 # include "continuityErrs.H"
6 pd.boundaryField().size(),
7 zeroGradientFvPatchScalarField::typeName
10 for (label i=0; i<pd.boundaryField().size(); i++)
12 if (pd.boundaryField()[i].fixesValue())
14 pcorrTypes[i] = fixedValueFvPatchScalarField::typeName;
29 dimensionedScalar("pcorr", pd.dimensions(), 0.0),
33 dimensionedScalar rUAf("(1|A(U))", dimTime/rho.dimensions(), 1.0);
35 adjustPhi(phi, U, pcorr);
37 for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
39 fvScalarMatrix pcorrEqn
41 fvm::laplacian(rUAf, pcorr) == fvc::div(phi)
44 pcorrEqn.setReference(pdRefCell, pdRefValue);
47 if (nonOrth == nNonOrthCorr)
49 phi -= pcorrEqn.flux();
53 # include "continuityErrs.H"