1 // Construct the Momentum equation
3 tmp<fvVectorMatrix> UEqn
6 - fvm::Sp(fvc::div(phi), U)
7 + turbulence->divDevRhoReff(U)
12 // Include the porous media resistance and solve the momentum equation
13 // either implicit in the tensorial resistance or transport using by
14 // including the spherical part of the resistance in the momentum diagonal
16 tmp<volScalarField> trAU;
17 tmp<volTensorField> trTU;
19 if (pressureImplicitPorosity)
21 tmp<volTensorField> tTU = tensor(I)*UEqn().A();
22 pZones.addResistance(UEqn(), tTU());
26 volVectorField gradp = fvc::grad(p);
28 for (int UCorr=0; UCorr<nUCorr; UCorr++)
30 U = trTU() & (UEqn().H() - gradp);
32 U.correctBoundaryConditions();
36 pZones.addResistance(UEqn());
40 UEqn() == -fvc::grad(p)
43 maxResidual = max(eqnResidual, maxResidual);
45 trAU = 1.0/UEqn().A();