Bug report: bc_hw_s argument mismatch in GUI still exists for mfix-26.1.1

Hi MFiX team,

In the release of MFiX 25.3 (MFiX 25.3 Release Announcement - NETL Multiphase Flow Science), it has said “Fixed keyword bc_hw_s argument mismatch in GUI.” However, I noticed that the bug is still seen in the latest mfix-26.1.1. As seen in the attached mfix file, once we change solids viscous stress model from akgebraic formulation to Lun et al, the mismatch error will be seen. Can it be fixed?

fluid_bed_tfm_3d2.mfx (13.6 KB)

Hi, and thanks for the report.

This error is mostly cosmetic but it can be fixed by editing the file bcs.py

File location: Linux:
$CONDA_PREFIX/lib/python3.13/site-packages/mfixgui/bcs.py
Windows:
%CONDA_PREFIX%\Lib\site-packages\mfixgui\bcs.py

and changing line 1488:

diff --git a/mfixgui/bcs.py b/mfixgui/bcs.py
index 611444fd8..577397550 100644
--- a/mfixgui/bcs.py
+++ b/mfixgui/bcs.py
@@ -1485,7 +1485,7 @@ class BCS:
         if bc_jj_ps:
             for p in range(1, 1+len(self.solids)):
                 self.retain_keyword('bc_hw_s', args=[BC,p])
-            self.unset_keyword('bc_hw_s', args=[BC])
+            self.unset_keyword('bc_hw_s', args=[BC,p])
 
         #Select type of Jackson and Johnson BC:
         # Disabled for DEM, CGP, SQP and PIC solids

This will be fixed in the next (unscheduled) release.

Thanks!

– Charles

Thanks for this. Looking forward to seeeing the next release soon.