mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Update openmc/stats/multivariate.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
0def5bf655
commit
7bcad5e7b6
1 changed files with 18 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue