desc.coils.CoilSet.compute

CoilSet.compute(names, grid=None, params=None, transforms=None, data=None, **kwargs)Source

Compute the quantity given by name on grid, for each coil in the coilset.

Parameters:
  • names (str or array-like of str) – Name(s) of the quantity(s) to compute.

  • grid (Grid or int, optional) – Grid of coordinates to evaluate at. Defaults to a Linear grid. If an integer, uses that many equally spaced points.

  • params (dict of ndarray or array-like) – Parameters from the equilibrium. Defaults to attributes of self. If array-like, should be 1 value per coil.

  • transforms (dict of Transform or array-like) – Transforms for R, Z, lambda, etc. Default is to build from grid.

  • data (dict of ndarray or array-like) – Data computed so far, generally output from other compute functions If array-like, should be 1 value per coil.

Returns:

data (list of dict of ndarray) – Computed quantity and intermediate variables, for each coil in the set. List entries map to coils in coilset, each dict contains data for an individual coil.