model.HydrostaticEquilibrium.from_dens_and_entr#

classmethod HydrostaticEquilibrium.from_dens_and_entr(rmin, rmax, density, entropy, stellar_density=None, num_points=1000, **kwargs)#

Construct the model from density and entropy.

Parameters:
  • rmin (float) – The minimum radius at which to compute

  • rmax (float) – The maximum radius at which to compute.

  • num_points (int) – The number of sample points.

  • density (callable) – The gas density profile.

  • entropy (callable) – The gas entropy profile.

  • stellar_density (callable or unyt_array) – The stellar density profile.

Return type:

ClusterModel