27volScalarField rAU(1.0 / UEqn.A());
28volVectorField HbyA(constrainHbyA(rAU* UEqn.H(), U, p));
29surfaceScalarField phiHbyA
33 + fvc::interpolate(rAU) * fvc::ddtCorr(U, phi)
36MRF.makeRelative(phiHbyA);
38adjustPhi(phiHbyA, U, p);
40tmp<volScalarField> rAtU(rAU);
42if (pimple.consistent())
44 rAtU = 1.0 /
max(1.0 / rAU - UEqn.H1(), 0.1 / rAU);
46 fvc::interpolate(rAtU() - rAU) * fvc::snGrad(p) * mesh.magSf();
47 HbyA -= (rAU - rAtU()) * fvc::grad(p);
50if (pimple.nCorrPISO() <= 1)
56constrainPressure(p, U, phiHbyA, rAtU(), MRF);
59while (pimple.correctNonOrthogonal())
64 fvm::laplacian(rAtU(), p) == fvc::div(phiHbyA)
66 pEqn.setReference(pRefCell, pRefValue);
67 pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
69 if (pimple.finalNonOrthogonalIter())
71 phi = phiHbyA - pEqn.flux();
75#include "continuityErrs.H"
80U = HbyA - rAtU() * fvc::grad(p);
81U.correctBoundaryConditions();
T max(Eigen::SparseMatrix< T > &mat, label &ind_row, label &ind_col)
Find the maximum of a sparse Matrix (Useful for DEIM).