Loading...
Searching...
No Matches
UEqn.H
1// Solve the Momentum equation
2
3MRF.correctBoundaryVelocity(U);
4
5tmp<fvVectorMatrix> tUEqn
6(
7 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 (simple.momentumPredictor())
20{
21 uresidual_v = solve(UEqn == -fvc::grad(p)).initialResidual();
22 fvOptions.correct(U);
23}