Dear All,
I’m modeling a hexagonal fuel assembly with rounded corners taking advantage of the openmc.model.hexagonal_prism
function.
When running the notebook cell containing that function, I get the following warning:
/home/valerio/.local/lib/python3.8/site-packages/openmc/surface.py:1510: FutureWarning: "ZCylinder(…) accepts an argument named ‘r’, not ‘R’. Future versions of OpenMC will not accept the capitalized version.
warn(_WARNING_UPPER.format(type(self).name, ‘r’, ‘R’),
Being a warning, the simulation works perfectly.
Nevertheless, I was wondering what could cause that warning message. looking here and there, I found that in the file funcs.py
the line 189 reads as:
args = {'R': corner_radius, 'boundary_type': boundary_type}
After changing the line as follows
args = {'r': corner_radius, 'boundary_type': boundary_type}
the warning is now gone.
Since I’m not an expert, I’m wondering if what I have done is proper.
BTW, I’m using OpenMC version 0.12.2.