mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
more appropriate naming: RO (reduced order) referred to the RO model of red blood cells, but the key difference in this solver is the momentum forcing term in the UEqn
20 lines
369 B
C
20 lines
369 B
C
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(voidfractionNext,U) + MRF.DDt(U)
|
|
+ fvm::div(phi, U)
|
|
+ turbulence->divDevReff(U)
|
|
==
|
|
fvOptions(U)
|
|
+ (lambda*(1-voidfractionNext)/U.mesh().time().deltaT())*(fvc::Sp(1,Us)-fvm::Sp(1,U))
|
|
);
|
|
|
|
UEqn.relax();
|
|
|
|
fvOptions.constrain(UEqn);
|
|
|
|
if (piso.momentumPredictor())
|
|
{
|
|
solve(UEqn == -fvc::grad(p));
|
|
fvOptions.correct(U);
|
|
}
|