Newer
Older
if (U.boundaryField()[patchi].fixesValue())
U.boundaryField()[patchi].initEvaluate();
forAll(U.boundaryField(), patchi)
{
if (U.boundaryField()[patchi].fixesValue())
phi.boundaryField()[patchi] =
U.boundaryField()[patchi] & mesh.Sf().boundaryField()[patchi];
}
}
volScalarField pcorr
(
IOobject
(
"pcorr",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionedScalar rAUf("rAUf", dimTime/rho.dimensions(), 1.0);
while (pimple.correctNonOrthogonal())
fvm::laplacian(rAUf, pcorr) == fvc::div(phi) - divU
if (pimple.finalNonOrthogonalIter())
{
phi -= pcorrEqn.flux();
}
}