You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: galpy/df/constantbetadf.py
+26-9Lines changed: 26 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
from ..potential.Potentialimport_evaluatePotentials
9
9
from ..utilimportconversion, quadpack
10
10
from ..util._optional_depsimport_JAX_LOADED
11
-
from .sphericaldfimportanisotropicsphericaldf, sphericaldf
11
+
from .sphericaldfimport_handle_rmin, anisotropicsphericaldf, sphericaldf
12
12
13
13
if_JAX_LOADED:
14
14
fromjaximportgrad, vmap
@@ -156,6 +156,7 @@ def __init__(
156
156
beta=0.0,
157
157
twobeta=None,
158
158
rmax=None,
159
+
rmin=None,
159
160
scale=None,
160
161
ro=None,
161
162
vo=None,
@@ -175,6 +176,8 @@ def __init__(
175
176
twice the anisotropy parameter (useful for \beta = half-integer, which is a special case); has priority over beta
176
177
rmax : float or Quantity, optional
177
178
maximum radius to consider; DF is cut off at E = Phi(rmax)
179
+
rmin : float or Quantity, optional
180
+
Minimum radius to consider; the distribution function is cut off at E = Phi(rmin). For potentials that diverge at r=0 (e.g., PowerSphericalPotential with alpha > 2), this is automatically set to a small value if not specified.
178
181
scale : float or Quantity, optional
179
182
Characteristic scale radius to aid sampling calculations. Optional and will also be overridden by value from pot if available.
180
183
ro : float or Quantity, optional
@@ -190,7 +193,7 @@ def __init__(
190
193
ifnot_JAX_LOADED: # pragma: no cover
191
194
raiseImportError("galpy.df.constantbetadf requires the google/jax library")
Copy file name to clipboardExpand all lines: galpy/df/eddingtondf.py
+29-9Lines changed: 29 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
from ..potentialimportCompositePotential, evaluateR2derivs
7
7
from ..potential.Potentialimport_evaluatePotentials, _evaluateRforces
8
8
from ..utilimportconversion
9
-
from .sphericaldfimportisotropicsphericaldf, sphericaldf
9
+
from .sphericaldfimport_handle_rmin, isotropicsphericaldf, sphericaldf
10
10
11
11
12
12
classeddingtondf(isotropicsphericaldf):
@@ -19,7 +19,9 @@ class eddingtondf(isotropicsphericaldf):
19
19
where :math:`\\Psi = -\\Phi+\\Phi(\\infty)` is the relative potential, :math:`\\mathcal{E} = \\Psi-v^2/2` is the relative (binding) energy, and :math:`\\rho` is the density of the tracer population (not necessarily the density corresponding to :math:`\\Psi` according to the Poisson equation). Note that the second term on the right-hand side is currently assumed to be zero in the code.
0 commit comments