waveform_editor.shape_editor.plasma_shape_calc.compute_outline_from_params

waveform_editor.shape_editor.plasma_shape_calc.compute_outline_from_params(a, center_r, center_z, kappa, delta, rx, zx, n_desired_bnd_points)

Compute plasma boundary outline from parameterized shape inputs.

Adapted from NICE, by Blaise Faugeras: https://gitlab.inria.fr/blfauger/nice

Parameters:
a

Minor radius.

center_r

Plasma center major radius.

center_z

Plasma center height.

kappa

Elongation.

delta

Triangularity.

rx

X-point major radius.

zx

X-point height.

n_desired_bnd_points

Number of desired boundary points.

Returns:

Tuple of (outline_r, outline_z) coordinate lists.


Last update: 2026-05-21