Loading...
Searching...
No Matches
UEqn.H
Go to the documentation of this file.
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 ==
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}
fv::options & fvOptions
Definition NLsolve.H:25
Vector< double > uresidual_v(0, 0, 0)
TEqn solve()
simpleControl simple(mesh)
surfaceScalarField & phi
volVectorField & U
tmp< fvVectorMatrix > tUEqn(fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
fvVectorMatrix & UEqn
Definition UEqn.H:13
volScalarField & p
volScalarField & rho
turbulence