virial.VirialEquilibrium.check_virial#

VirialEquilibrium.check_virial()[source]#

Computes the radial density profile for the collisionless particles computed from integrating over the distribution function, and the relative difference between this and the input density profile.

Returns:

  • rho (NumPy array) – The density profile computed from integrating the distribution function.

  • chk (NumPy array) – The relative difference between the input density profile and the one calculated using this method.