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),
28 pcorr.oldTime() == p.oldTime();
30 phi = fvc::interpolate(rho)
31 *((fvc::interpolate(U) & mesh.Sf()) - fvc::meshPhi(rho, U));
33 for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
35 fvScalarMatrix pcorrEqn
39 - fvm::laplacian(rho*rUA, pcorr)
44 if (nonOrth == nNonOrthCorr)
46 phi += pcorrEqn.flux();