fields.mixins.base.DFieldCoreMixin.as_unyt_array#
- DFieldCoreMixin.as_unyt_array()[source]#
Return the underlying buffer as a unyt array with units.
This method extracts the field’s data buffer and returns it as a unyt.unyt_array, preserving physical units and dimensionality.
- Returns:
The unit-aware array representing the field’s data.
- Return type:
unyt.unyt_array