virial.VirialEquilibrium.__init__#
- VirialEquilibrium.__init__(model, ptype='dark_matter', df=None)[source]#
Generate a virial equilibrium model from a profile.
- Parameters:
model (
ClusterModel
) – The cluster model which will be used to construct the virial equilibrium.ptype (
string
, optional) – The type of the particles which can be generated from this object, either “dark_matter” or “stellar”. Default: “dark_matter”df (
unyt_array
) – The particle distribution function. If not supplied, it will be generated.