multiphaseEuler::phaseInterface: Added stationary phase handling to magUr

This allows moving particle drag models to be used for stationary beds of particles.
This commit is contained in:
Henry Weller
2023-09-14 16:32:42 +01:00
parent 3e7ebe0491
commit 7b052fb6a1

View File

@ -508,7 +508,18 @@ Foam::tmp<Foam::volScalarField> Foam::phaseInterface::rho() const
Foam::tmp<Foam::volScalarField> Foam::phaseInterface::magUr() const
{
return mag(phase1().U() - phase2().U());
if (phase1().stationary())
{
return mag(phase2().U());
}
else if (phase2().stationary())
{
return mag(phase1().U());
}
else
{
return mag(phase1().U() - phase2().U());
}
}