You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to build a cylinder sector with an aperture angle higher than 180°. This seems to not be possible using the current implementation of the openmc.model.CylinderSector class.
Here are the result when using the default CylinderSector constructor with $\theta_1 = 0$ and $\theta_2 \in [10, 350]$:
And here are the results when using the CylinderSector.from_theta_alpha constructor with $\alpha = 45°$ and $\theta \in [10, 350]$:
It's seems that once the place defined by $\theta_2$ crosses the other plane, the boolean operations used to get the sector change and the current implementation fails.
Here's what I mean:
Bug Description
Hi,
I am trying to build a cylinder sector with an aperture angle higher than 180°. This seems to not be possible using the current implementation of the
openmc.model.CylinderSector
class.Here are the result when using the default$\theta_1 = 0$ and $\theta_2 \in [10, 350]$ :
CylinderSector
constructor withAnd here are the results when using the$\alpha = 45°$ and $\theta \in [10, 350]$ :
CylinderSector.from_theta_alpha
constructor withIt's seems that once the place defined by$\theta_2$ crosses the other plane, the boolean operations used to get the sector change and the current implementation fails.
Here's what I mean:
Steps to Reproduce
Here's the script I use to generate the gif:
Environment
I use the develop branch on Ubuntu 20.04
I have a new implementation ready but i'd love some feedback on this issue before making a PR.
Cheers
The text was updated successfully, but these errors were encountered: