desc.grid.Grid.create_meshgrid
- classmethod Grid.create_meshgrid(nodes, spacing=None, coordinates='rtz', period=(inf, 6.283185307179586, 6.283185307179586), NFP=1, **kwargs)Source
Create a tensor-product grid from the given coordinates in a jitable manner.
- Parameters:
nodes (list of ndarray) – Three arrays, one for each coordinate. Sorted unique values of each coordinate.
spacing (list of ndarray) – Three arrays, one for each coordinate. Weights for integration. Defaults to a midpoint rule.
coordinates (str) – Coordinates that are specified by the
nodes[0],nodes[1], andnodes[2], respectively. raz : rho, alpha, zeta rvp : rho, theta_PEST, phi rtz : rho, theta, zetaperiod (tuple of float) – Assumed periodicity for each coordinate. Use np.inf to denote no periodicity.
NFP (int) – Number of field periods (Default = 1). Only makes sense to change from 1 if
period[2]==2π.
- Returns:
grid (Grid) – Meshgrid.