desc.equilibrium.Equilibrium.get_rtz_grid
- Equilibrium.get_rtz_grid(radial, poloidal, toroidal, coordinates, period, jitable=True, **kwargs)Source
Return DESC grid in (rho, theta, zeta) coordinates from given coordinates.
Create a tensor-product grid from the given coordinates, and return the same grid in DESC coordinates.
- Parameters:
radial (ndarray) – Sorted unique radial coordinates.
poloidal (ndarray) – Sorted unique poloidal coordinates.
toroidal (ndarray) – Sorted unique toroidal coordinates.
coordinates (str) – Input coordinates that are specified by the arguments, respectively. raz : rho, alpha, zeta rvp : rho, theta_PEST, phi rtz : rho, theta, zeta
period (tuple of float) – Assumed periodicity for each quantity in inbasis. Use np.inf to denote no periodicity.
jitable (bool, optional) – If false the returned grid has additional attributes. Required to be false to retain nodes at magnetic axis.
- Returns:
desc_grid (Grid) – DESC coordinate grid for the given coordinates.