When using the Monte Carlo multiband (non-grey) radiation model, setting the bands using a dictionary results in the bands being set in Fluent in random order. If the bands happen to not be in order of increasing wavelength, attempting a solve results in Fluent stalling with the following error:
Error at Node 0: Spectral bands do not fill the spectrum.
Void/overlap found in spectral bands.
Error: error: wta[1](string)
Error Object: ()
Setting the bands one at a time in order is a workaround.
Check the radiation model dialog box in the GUI*. If the bands are not in order of increasing wavelength (solar first, then thermal-ir), the next step will not be successful.
Attempt a solve.
To avoid this bug, the workaround is to change Step 4:
* Note: This must be checked in the GUI. Calling solver.setup.models.radiation.multiband.get_state() returns a dictionary with the bands in a random order that does not correspond to the order of the bands in Fluent's datamodel.
🔍 Before submitting the issue
🐞 Description of the bug
When using the Monte Carlo multiband (non-grey) radiation model, setting the bands using a dictionary results in the bands being set in Fluent in random order. If the bands happen to not be in order of increasing wavelength, attempting a solve results in Fluent stalling with the following error:
Setting the bands one at a time in order is a workaround.
📝 Steps to reproduce
See attached the following files to reproduce this bug: multiband_bug_test_files.zip
Description of contents:
lander_mesh.msh
: Sample mesh file for testing.multiband_dict.ipynb
: To reproduce this bug. Setting bands this way results in random failures of the solver.multiband_individual.ipynb
: Workaround for this bug. This solves reliably.Steps to reproduce:
show_gui=True
.solar
first, thenthermal-ir
), the next step will not be successful.To avoid this bug, the workaround is to change Step 4:
* Note: This must be checked in the GUI. Calling
solver.setup.models.radiation.multiband.get_state()
returns a dictionary with the bands in a random order that does not correspond to the order of the bands in Fluent's datamodel.💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
24R1, build ID: 168
🐍 Which Python version are you using?
3.11
📦 Installed packages