mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
32 lines
609 B
C
32 lines
609 B
C
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(rho, U)
|
|
+ fvm::div(mixture.rhoPhi(), U)
|
|
+ turbulence->divDevRhoReff(rho, U)
|
|
==
|
|
fvOptions(rho, U)
|
|
);
|
|
|
|
UEqn.relax();
|
|
|
|
fvOptions.constrain(UEqn);
|
|
|
|
if (pimple.momentumPredictor())
|
|
{
|
|
solve
|
|
(
|
|
UEqn
|
|
==
|
|
fvc::reconstruct
|
|
(
|
|
(
|
|
mixture.surfaceTensionForce()
|
|
- ghf*fvc::snGrad(rho)
|
|
- fvc::snGrad(p_rgh)
|
|
) * mesh.magSf()
|
|
)
|
|
);
|
|
|
|
fvOptions.correct(U);
|
|
}
|