desc.objectives.LinkingCurrentConsistency.compute

LinkingCurrentConsistency.compute(coil_params, eq_params=None, constants=None)Source

Compute linking current error.

Parameters:
  • coil_params (dict) – Dictionary of coilset degrees of freedom, eg CoilSet.params_dict

  • eq_params (dict) – Dictionary of equilibrium degrees of freedom, eg Equilibrium.params_dict Only required if eq_fixed=False.

  • constants (dict) – Dictionary of constant data, eg transforms, profiles etc. Defaults to self._constants.

Returns:

f (array of floats) – Linking current error.