mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
reactingMultiphaseEulerFoam: Limited phase-fractions
for consistency with reactingTwoPhaseEulerFoam and to ensure correct operation of models requiring formal boundedness of phase-fractions. Resolves bug-report https://bugs.openfoam.org/view.php?id=2589
This commit is contained in:
committed by
Andrew Heather
parent
7b2d419157
commit
cc9ffdffbb
@ -699,6 +699,9 @@ void Foam::multiphaseSystem::solve()
|
||||
{
|
||||
phaseModel& phase = phases()[phasei];
|
||||
phase.alphaRhoPhi() = fvc::interpolate(phase.rho())*phase.alphaPhi();
|
||||
|
||||
// Ensure the phase-fractions are bounded
|
||||
phase.maxMin(0, 1);
|
||||
}
|
||||
|
||||
calcAlphas();
|
||||
|
||||
@ -403,8 +403,7 @@ void Foam::twoPhaseSystem::solve()
|
||||
<< endl;
|
||||
|
||||
// Ensure the phase-fractions are bounded
|
||||
alpha1.max(0);
|
||||
alpha1.min(1);
|
||||
alpha1.maxMin(0, 1);
|
||||
|
||||
// Update the phase-fraction of the other phase
|
||||
alpha2 = scalar(1) - alpha1;
|
||||
|
||||
Reference in New Issue
Block a user