Hello eneryone;
I’m a beginner to use the code and have trouble using the function of the hexagonal prism due to the new update and i need some help to complete my project and that what i get like an error
1 Like
I can’t say for sure because I can’t see all of your code, but I’m guessing it’s something like
outer_surface = openmc.model.HexagonalPrism( ... )
Just drop the -
in front of outer_surface
. You don’t use +
and -
with it (which the code is telling you with TypeError: unsupported operand type(s) for &: 'HexagonalPrism' and 'Halfspace'
. I believe the default is inside. You could use ~
with it to mean the outside, if I understand correctly this error message
Though it looks like as of v0.14.0, you need to use it the way that you originally defined. You could also solve your problem by updating to the most recent version.