Improve code reuse Add multiphaseInterDyMFoam Retire MRFinterFoam -> now handled by interFoam with fvOptions Update tutorials
27 lines
557 B
C
27 lines
557 B
C
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(rho, U)
|
|
+ fvm::div(rhoPhi, U)
|
|
- fvm::Sp(fvc::ddt(rho) + fvc::div(rhoPhi), U)
|
|
+ turbulence->divDevRhoReff(rho, U)
|
|
);
|
|
|
|
UEqn.relax();
|
|
|
|
if (pimple.momentumPredictor())
|
|
{
|
|
solve
|
|
(
|
|
UEqn
|
|
==
|
|
fvc::reconstruct
|
|
(
|
|
(
|
|
interface.surfaceTensionForce()
|
|
- ghf*fvc::snGrad(rho)
|
|
- fvc::snGrad(p_rgh)
|
|
) * mesh.magSf()
|
|
)
|
|
);
|
|
}
|