1 // Construct the Momentum equation
3 tmp<fvVectorMatrix> UEqn
6 + turbulence->divDevReff(U)
11 // Include the porous media resistance and solve the momentum equation
12 // either implicit in the tensorial resistance or transport using by
13 // including the spherical part of the resistance in the momentum diagonal
15 tmp<volScalarField> trAU;
16 tmp<volTensorField> trTU;
18 if (pressureImplicitPorosity)
20 tmp<volTensorField> tTU = tensor(I)*UEqn().A();
21 pZones.addResistance(UEqn(), tTU());
25 volVectorField gradp = fvc::grad(p);
27 for (int UCorr=0; UCorr<nUCorr; UCorr++)
29 U = trTU() & (UEqn().H() - gradp);
31 U.correctBoundaryConditions();
35 pZones.addResistance(UEqn());
39 UEqn() == -fvc::grad(p)
42 maxResidual = max(eqnResidual, maxResidual);
44 trAU = 1.0/UEqn().A();