pynbody.analysis.profile#
Support for creating profiles of various quantities, normally as a function of 2d or 3d radius.
The functions defined in the module represent profiles that can be access from a
Profile object.
For more information and example usage, see the Profiles tutorial and the documentation for the
Profile class.
Functions
|
Calculates the energy of particles on circular orbits in the z=0 plane. |
|
Toomre Q parameter |
|
X parameter defined as kappa^2*R/(2*pi*G*sigma*m), using the rotation curve from the z=0 plane |
|
3D Anisotropy parameter as defined in Binney and Tremaine |
|
Generate a radial density profile for the current type of profile |
|
Generate the mean enclosed density profile |
|
The dynamical time of the bin, sqrt(R^3/2GM). |
|
Generate a profile of fourier coefficients, amplitudes and phases |
|
The naive gravitational acceleration assuming spherical symmetry = GM_enc/r^2 |
|
Angular momentum of particles on circular orbits. |
|
Angle that the angular momentum vector of the bin makes with the x-axis in the xy plane. |
|
Angle that the angular momentum vector of the bin makes with respect to the xy-plane. |
|
Magnitude of the total angular momentum |
|
Radial frequency kappa = sqrt(R dOmega^2/dR + 4 Omega^2) (see Binney & Tremaine Sect. |
|
Calculate magnitudes in each bin |
|
|
|
Generate the enclosed mass profile |
|
Circular frequency Omega = v_circ/radius (see Binney & Tremaine Sect. |
|
Estimate the pattern speed from the m=2 Fourier mode |
|
Calculates the potential in the z=0 plane |
The naive rotation curve assuming spherical symmetry: vc = sqrt(G M_enc/r) |
|
|
Calculate surface brightness in each bin |
|
Circular velocity, i.e. rotation curve. |
|
Circular velocity using all particles, not just those in the profile, to source gravity. |
|
Calculate mass in each bin |
Classes
|
A profile object to be used with a snapshot inclined by some known angle to the xy plane. |
|
Generates profiles of specified quantities as a function of radius or other binning quantity. |
|
A profile object that returns requested quantiles instead of means in each bin. |
|
A profile class that uses the absolute value of the z coordinate for binning instead of a radial coordinate. |