Dear all,
I have problems when run the pincell example.
The version of my openmc is 0.14.1-dev.
the related code is:
box = openmc.rectangular_prism(width=1.5, height=20,boundary_type=‘reflective’)
type(box)
Error reported as follows:
“Traceback (most recent call last): File “pincell.py”, line 43, in box = openmc.rectangular_prism(width=1.5, height=20,boundary_type=‘reflective’)
AttributeError: module ‘openmc’ has no attribute ‘rectangular_prism’”
In the latest release 0.14.0 of OpenMC, rectangular_prism has been replaced by RectangularPrism attribute:
class openmc.model.RectangularPrism(width: float, height: float, axis: str = ‘z’, origin: Sequence[float] = (0.0, 0.0), boundary_type: str = ‘transmission’, albedo: float = 1.0, corner_radius: float = 0.0)