UEqn.H
Go to the documentation of this file.
1 // Solve the Momentum equation
2
3 MRF.correctBoundaryVelocity(U);
4
5 fvVectorMatrix UEqn
6 (
7 fvm::ddt(rho, U) + fvm::div(rhoPhi, U)
8 + MRF.DDt(rho, U)
9 + fvc::div(UdmModel.tauDm())
10 + turbulence->divDevRhoReff(U)
11 ==
13 );
14
15 UEqn.relax();
16
17 fvOptions.constrain(UEqn);
18
19 if (pimple.momentumPredictor())
20 {
21 solve
22 (
23 UEqn
24 ==
25 fvc::reconstruct
26 (
27 (
28 - ghf*fvc::snGrad(rho)
29 - fvc::snGrad(p_rgh)
30 )*mesh.magSf()
31 )
32 );
33
34 fvOptions.correct(U);
35 }
rhoPhi
Definition: rhoEqn.H:10
volScalarField & p_rgh
fv::options & fvOptions
const surfaceScalarField & ghf
IOMRFZoneList & MRF
pimpleControl & pimple
U
Definition: pEqn.H:72
fvVectorMatrix & UEqn
Definition: UEqn.H:13
dynamicFvMesh & mesh
compressible::turbulenceModel & turbulence
CEqn solve()