pisces.models.galaxy_clusters.spherical.MagnetizedSphericalGalaxyClusterModel.get_field#
- MagnetizedSphericalGalaxyClusterModel.get_field(name: str) unyt_array | ndarray #
Retrieve a physical field by name.
- Parameters:
name (
str
) – The name of the field to retrieve.- Returns:
The requested field as a
unyt_array
with units, or a plainnumpy.ndarray
if unitless.- Return type:
unyt_array
ornumpy.ndarray
- Raises:
KeyError – If the field does not exist in the model.