// Construct the Momentum equation MRF.correctBoundaryVelocity(U); tmp tUEqn ( fvm::div(phi, U) + MRF.DDt(rho, U) + turbulence->divDevRhoReff(U) == fvOptions(rho, U) ); fvVectorMatrix& UEqn = tUEqn.ref(); UEqn.relax(); // Include the porous media resistance and solve the momentum equation // either implicit in the tensorial resistance or transport using by // including the spherical part of the resistance in the momentum diagonal tmp trAU; tmp trTU; if (pressureImplicitPorosity) { tmp tTU = tensor(I)*UEqn.A(); pZones.addResistance(UEqn, tTU.ref()); trTU = inv(tTU()); trTU.ref().rename("rAU"); fvOptions.constrain(UEqn); volVectorField gradp(fvc::grad(p)); for (int UCorr=0; UCorr