openmc.stats.cylindrical_uniform
- openmc.stats.cylindrical_uniform(r_outer: float, height: float, r_inner: float = 0.0, phis: Sequence[float] = (0.0, 6.283185307179586), **kwargs)[source]
Return a uniform spatial distribution over a cylindrical shell.
This function provides a uniform spatial distribution over a cylindrical shell between r_inner and r_outer. When height is zero, a delta function is used for the z-distribution, giving a uniform distribution over a flat ring (annulus) at z=0 in the local coordinate frame. Optionally, the range of angles can be restricted by the phis argument.
Added in version 0.15.4.
- Parameters:
r_outer (float) – Outer radius of the cylindrical shell in [cm]
height (float) – Height of the cylindrical shell in [cm]. When 0, the distribution is a flat ring at z=0 in the local frame.
r_inner (float) – Inner radius of the cylindrical shell in [cm]
phis (iterable of float) – Starting and ending phi coordinates (azimuthal angle) in radians in a reference frame centered at origin.
**kwargs – Keyword arguments passed directly to
CylindricalIndependent(e.g.,origin,r_dir,z_dir).
- Returns:
Uniform distribution over the cylindrical shell
- Return type: