pynbody.analysis.profile#
profile#
A set of classes and functions for making profiles of simulation properties.
Functions
|
Energy of particles on circular orbits. |
|
Toomre Q parameter |
|
X parameter defined as kappa^2*R/(2*pi*G*sigma*m) See Binney & Tremaine 2008, eq. |
|
3D Anisotropy parameter as defined in Binney and Tremiane |
|
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 |
|
|
|
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 midplane - can be expensive |
|
The naive rotation curve assuming spherical symmetry: vc = sqrt(G M_enc/r) |
|
|
|
Circular velocity, i.e. rotation curve. |
|
Calculate mass in each bin |
Classes
|
Creates a profile object to be used with a snapshot inclined by some known angle to the xy plane. |
|
A basic profile class for arbitrary profiles. |
|
Creates a profile object that returns the requested quantiles for a given array in a given bin. |
|
Creates a profile object that uses the absolute value of the z-coordinate for binning. |