1 // Construct the Momentum equation
3 tmp<fvVectorMatrix> UEqn
6 + turbulence->divDevRhoReff(U)
11 mrfZones.addCoriolis(rho, UEqn());
13 // Include the porous media resistance and solve the momentum equation
14 // either implicit in the tensorial resistance or transport using by
15 // including the spherical part of the resistance in the momentum diagonal
17 tmp<volScalarField> trAU;
18 tmp<volTensorField> trTU;
20 if (pressureImplicitPorosity)
22 tmp<volTensorField> tTU = tensor(I)*UEqn().A();
23 pZones.addResistance(UEqn(), tTU());
27 volVectorField gradp(fvc::grad(p));
29 for (int UCorr=0; UCorr<nUCorr; UCorr++)
31 U = trTU() & (UEqn().H() - gradp);
33 U.correctBoundaryConditions();
37 pZones.addResistance(UEqn());
39 solve(UEqn() == -fvc::grad(p));
41 trAU = 1.0/UEqn().A();