Loading...
Searching...
No Matches
UEqn.H
1// Solve the Momentum equation
2
3MRF.correctBoundaryVelocity(U);
4
5tmp<fvVectorMatrix> tUEqn
6(
7 fvm::ddt(rho, U) + fvm::div(phi, U)
8 + MRF.DDt(rho, U)
9 + turbulence->divDevRhoReff(U)
10 ==
11 fvOptions(rho, U)
12);
13fvVectorMatrix& UEqn = tUEqn.ref();
14
15UEqn.relax();
16
17fvOptions.constrain(UEqn);
18
19if (pimple.momentumPredictor())
20{
21 solve(UEqn == -fvc::grad(p));
22 fvOptions.correct(U);
23 K = 0.5 * magSqr(U);
24}