openmc.stats.spherical_uniform¶
- openmc.stats.spherical_uniform(r_outer: float, r_inner: float = 0.0, thetas: Sequence[float] = (0.0, 3.141592653589793), phis: Sequence[float] = (0.0, 6.283185307179586), origin: Sequence[float] = (0.0, 0.0, 0.0))[source]¶
Return a uniform spatial distribution over a spherical shell.
This function provides a uniform spatial distribution over a spherical shell between r_inner and r_outer. Optionally, the range of angles can be restricted by the thetas and phis arguments.
New in version 0.13.1.
- Parameters
r_outer (float) – Outer radius of the spherical shell in [cm]
r_inner (float) – Inner radius of the spherical shell in [cm]
thetas (iterable of float) – Starting and ending theta coordinates (angle relative to the z-axis) in radius in a reference frame centered at origin
phis (iterable of float) – Starting and ending phi coordinates (azimuthal angle) in radians in a reference frame centered at origin
origin (iterable of float) – Coordinates (x0, y0, z0) of the center of the spherical reference frame for the distribution.
- Returns
Uniform distribution over the spherical shell
- Return type