desc.objectives.PlasmaVesselDistance.compute
- PlasmaVesselDistance.compute(params_1, params_2=None, constants=None)Source
Compute plasma-surface distance.
- Parameters:
params_1 (dict) – Dictionary of equilibrium degrees of freedom, eg Equilibrium.params_dict, if eq_fixed is False, else the surface degrees of freedom
params_2 (dict) – Dictionary of surface degrees of freedom, eg Surface.params_dict Only needed if self._surface_fixed = False
constants (dict) – Dictionary of constant data, eg transforms, profiles etc. Defaults to self.constants
- Returns:
d (ndarray, shape(surface_grid.num_nodes,)) – For each point in the surface grid, approximate distance to plasma.