FlattenedNFWPotential

class gala.potential.FlattenedNFWPotential(v_c, r_s, q_z, units)

Bases: gala.potential.CPotentialBase

Flattened NFW potential. Separate from the triaxial potential below to optimize for speed. Much faster than computing the triaxial case.

\[\begin{split}\Phi(r) = -\frac{v_c^2}{\sqrt{\ln 2 - \frac{1}{2}}} \frac{\ln(1 + r/r_s)}{r/r_s}\\ r^2 = x^2 + y^2 + z^2/q_z^2\end{split}\]
Parameters:

v_c : numeric

Circular velocity at the scale radius.

r_s : numeric

Scale radius.

q_z : numeric

Flattening.

units : UnitSystem (optional)

Set of non-reducable units that specify (at minimum) the length, mass, time, and angle units.