Tutorial 3.5 gives error when changing wall boundary condition from TFM to DEM

When changing from TFM to DEM in the last paragraph of tutorial 3.5. Three-dimensional fluidized bed — MFiX 25.2 documentation, the user is required to delete the wall boundary condition and re-add it. Upon re-adding a couple of error messages show up:

Error: keyword bc_hw_s: argument mismatch, expected (‘bc’, ‘phase’), got
Error: keyword bc_uw_s: argument mismatch, expected (‘bc’, ‘phase’), got
Error: keyword bc_vw_s: argument mismatch, expected (‘bc’, ‘phase’), got
Error: keyword bc_ww_s: argument mismatch, expected (‘bc’, ‘phase’), got

I’m not sure what this means and how I should resolve this. I found that these arguments are set in the Jackson-Johnson partial slip boundary fields, but those fields are only accessible when Jackson-Johnson checkbox is checked. This option is greyed out when using no-slip walls and only available when using partial slip walls. Since we are using no-slip boundary conditions, the code shouldn’t expect any arguments.

Thanks for reporting this, we will fix this for the 25.3 release.

1 Like

Here’s a patch that fixes the problem:
patch.txt (528 Bytes)

You can apply this either by hand (edit the file bcs.py and remove the line starting with - and add the lines starting with + - do not include the + sign)
or (suggested) with the patch utility.

Go to the directory where bcs.py is located - on Linux this will be
$CONDA_PREFIX/lib/pythonX.Y/site-packages/mfixgui
and on Windows
%CONDA_PREFIX/lib/site-packages/mfixgui

then run

patch bcs.py /path/to/patch.txt

(wherever you saved the patch.txt file)

Please let us know if this works for you or if you have other issues.
Thanks for the bug report.

– Charles

1 Like

Thanks, Charles. I edited the bcs.py file by hand and it solved the issue. Perfect!

1 Like