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 computermax (
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 (
callableorunyt_array) – The stellar density profile.
- Return type: