grids.mixins.core.GridUtilsMixin.compute_domain_coords#

GridUtilsMixin.compute_domain_coords(axes: AxesInput | None = None, origin: Literal['active', 'global'] = 'active', __validate__: bool = True)[source]#

Compute the 1D coordinate arrays for the full extent of the grid domain along the selected axes.

This is a convenience wrapper around compute_coords_from_slices(…) that returns coordinates spanning the entire active or ghost-augmented domain.

Parameters:
  • axes (str or list of str, optional) – The axes for which to compute coordinates. If None, all axes are used.

  • origin ({"active", "global"}, default "active") – Whether to generate coordinates for the active domain or the global (ghost-augmented) domain.

  • __validate__ (bool, default True) – Whether to validate axis input and index bounds. Can be disabled in tight loops.

Returns:

A tuple of 1D arrays — one per axis — representing physical coordinates along each axis.

Return type:

tuple of np.ndarray