From 7bcad5e7b6948c841cb155190698a4449efff447 Mon Sep 17 00:00:00 2001 From: Christopher Fichtlscherer <29277544+cfichtlscherer@users.noreply.github.com> Date: Sat, 14 May 2022 09:09:21 +0200 Subject: [PATCH] Update openmc/stats/multivariate.py Co-authored-by: Paul Romano --- openmc/stats/multivariate.py | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/openmc/stats/multivariate.py b/openmc/stats/multivariate.py index 1649d45a1..bbd11a15e 100644 --- a/openmc/stats/multivariate.py +++ b/openmc/stats/multivariate.py @@ -791,17 +791,24 @@ def spherical_uniform(r_outer, r_inner=0.0, thetas=(0., pi), phis=(0., 2*pi), Parameters ---------- - radii : Iterable of float - Inner radius r1 and outer radius r2 of the spherical shell. - thetas : Iterable of float - Start theta1 and end theta2 of the theta-coordinates (angle relative to - the z-axis) in a reference frame specified by the origin parameter - phis : Iterable of float - Start phi1 and end phi2 of the phi-coordinates (azimuthal angle) in a - reference frame specified by the origin parameter - origin: Iterable of float, optional - coordinates (x0, y0, z0) of the center of the spherical reference frame - for the source. Defaults to (0.0, 0.0, 0.0) + r_outer : float + Outer radius of the spherical shell in [cm] + r_inner : float, optional + Inner radius of the spherical shell in [cm] + thetas : iterable of float, optional + Starting and ending theta coordinates (angle relative to + the z-axis) in radius in a reference frame centered at `origin` + phis : iterable of float, optional + Starting and ending phi coordinates (azimuthal angle) in + radians in a reference frame centered at `origin` + origin: iterable of float, optional + Coordinates (x0, y0, z0) of the center of the spherical + reference frame for the distribution. + + Returns + ------- + openmc.stats.SphericalIndependent + Uniform distribution over the spherical shell """ r_dist = PowerLaw(r_inner, r_outer, 2)