Hi ereryone,
I’m newer to coding, I want to know how to set the direction of the base circle of the cylinder source?
The following is part of my code, I want to design a disc perpendicular to the y-axis as the source, but I don’t know how to set it.
source = openmc.IndependentSource()
r_dist = openmc.stats.Uniform(a=0, b=5)
phi_dist = openmc.stats.Uniform(a=0, b=2*math.pi)
z_dist = openmc.stats.Discrete([0], [1])
origin = (0.0, 15.0, 0.0)
direction_vector = (0.0, -1.0, 0.0)
cylindrical_dist = openmc.stats.CylindricalIndependent(r=r_dist, phi=phi_dist, z=z_dist, origin=origin)
...