Hi, dear users and experts, i am facing an error while trying to create a rectengular prism geometry for research reactor. Please, help me to find the misake. Below i provide my code and error. Thank you!
As a rectangular_prism is a macrobody made up of multiple planes, the complement operator ~ should be used. It is not suitable for use of + or -, as it can be seen as a sortof cell. Use ~ for outside and nothing for inside. Your code will then become:
Just to add on to Daan’s response (which is correct) — in the latest version of OpenMC (0.14.0), there is now a RectangularPrism class that acts like a normal surface (you can use the - and + operators on it) but is otherwise equivalent to the rectangular_prism function. This is noted in the release notes for 0.14.0.