{
if (mesh.changing())
forAll(U.boundaryField(), patchi)
if (U.boundaryField()[patchi].fixesValue())
U.boundaryField()[patchi].initEvaluate();
}
U.boundaryField()[patchi].evaluate();
phi.boundaryField()[patchi] =
U.boundaryField()[patchi] & mesh.Sf().boundaryField()[patchi];
#include "continuityErrs.H"
volScalarField pcorr
(
IOobject
"pcorr",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
dimensionedScalar("pcorr", p.dimensions(), 0.0),
pcorrTypes
);
dimensionedScalar rAUf("(1|A(U))", dimTime/rho.dimensions(), 1.0);
adjustPhi(phi, U, pcorr);
mesh.setFluxRequired(pcorr.name());
for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
fvScalarMatrix pcorrEqn
fvm::laplacian(rAUf, pcorr) == fvc::div(phi) - divU
pcorrEqn.solve();
if (nonOrth == nNonOrthCorr)
phi -= pcorrEqn.flux();
# include "continuityErrs.H"