Skip to content
Snippets Groups Projects
UEqn.H 409 B
Newer Older
Henry's avatar
Henry committed
    MRF.correctBoundaryVelocity(U);

Henry's avatar
Henry committed
    fvVectorMatrix UEqn
    (
Henry's avatar
Henry committed
        fvm::ddt(rho, U) + fvm::div(phi, U)
      + MRF.DDt(rho, U)
Henry's avatar
Henry committed
      + turbulence->divDevRhoReff(U)
     ==
        fvOptions(rho, U)
Henry's avatar
Henry committed
    );

    UEqn.relax();

    fvOptions.constrain(UEqn);

    if (pimple.momentumPredictor())
    {
        solve(UEqn == -fvc::grad(p));

        fvOptions.correct(U);
        K = 0.5*magSqr(U);
    }