model.HydrostaticEquilibrium.from_arrays#
- classmethod HydrostaticEquilibrium.from_arrays(fields, stellar_density=None, **kwargs)#
Initialize the
model.ClusterModelfromfieldsalone.- Parameters:
fields (
dictofstr:unyt.array.unyt_array) –The fields from which to generate the model.
development note
The
fieldsparameter must be self-consistent in its definition, and must contain aradiuskey, from which the class assesses the number of elements.stellar_density (
radial_profiles.RadialProfile, optional) – The stellar density component.kwargs – Additional attributes to pass through to the
model.ClusterModel.propertiesattribute.
- Return type: