Is there a way to create an independent disc source facing x-dir? I have created a rectangular one and a cylindrical one facing z-dir, but I cannot get it to face x-dir. I have tried, but the rotation does not seem to work:
spatial_dist = stats.CylindricalIndependent(
r=stats.Uniform(0.0, 15.0),
phi=stats.Uniform(0.0, 2 * np.pi),
z=stats.Discrete([0.0], [1.0]),
origin=(0.0, 0.0, 0.0)
)
spatial_dist.rotation = (0, 90, 0)
Hi! I’ve faced a similar issue with not having the option of x-axis oriented cylindrical sources. Instead of rotating the source I got around it by just creating a point cloud source (openmc.stats.PointCloud — OpenMC Documentation) with appropriate radial and axial distributions. Not elegant, but it works.