desc.objectives.FixCurrent.compute

FixCurrent.compute(params, constants=None)Source

Compute fixed current errors.

Parameters:
  • params (dict) – Dictionary of equilibrium degrees of freedom, eg Equilibrium.params_dict

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

Returns:

f (ndarray) – Fixed profile errors.