Hi, when I run the attached code I get the following error:
ERROR: Number of entries on <lower_left> must be the same as the number of
entries on .
Traceback (most recent call last):
File “/home/mpuig/openmc/spherical_case/simulation.py”, line 129, in
openmc.run()
File “/home/mpuig/miniconda3/envs/openmc-env/lib/python3.11/site-packages/openmc/executor.py”, line 314, in run
_run(args, output, cwd)
File “/home/mpuig/miniconda3/envs/openmc-env/lib/python3.11/site-packages/openmc/executor.py”, line 125, in _run
raise RuntimeError(error_msg)
RuntimeError: Number of entries on <lower_left> must be the same as the number of entries on .
I’ve tried adding a dimension parameter to openmc.stats.Box() but it’s not a valid parameter. If someone could help me figure out where the issue is happening that would be great, thanks! simulation.py (4.8 KB)
It looks like the problem is that RegularMesh.from_domain(...) is returning a mesh that is infinite in extent. You’ll need to manually create a RegularMesh and specify the bounds (lower_left and upper_right yourself).
Hi, thank you both @Shimwell@paulromano . Unfortunately I’ve tried this and it doesn’t seem to make a difference. I’ve removed the whole mesh-related part of the code and I still get the same error (RuntimeError: Number of entries on <lower_left> must be the same as the number of entries on .). I suspect it may be related to the source term as it’s the only other parameter in the problem that has a lower_left and an upper_right. Any ideas?