cherab.imas.ids.equilibrium.load_equilibrium_dataΒΆ

cherab.imas.ids.equilibrium.load_equilibrium_data(equilibrium_ids: IDSToplevel) dict[str, ndarray[tuple[Any, ...], dtype[float64]] | float | Point2D | list[Point2D] | None]SourceΒΆ

Load 2D plasma equilibrium data from the equilibrium IDS.

Parameters:
equilibrium_ids: IDSToplevelΒΆ

The time-slice of the equilibrium IDS.

Returns:

Dictionary with the following keys and values:

r:

(N, ) ndarray with R coordinates of rectangular grid,

z:

(M, ) ndarray with Z coordinates of rectangular grid,

psi_grid:

(N, M) ndarray with psi grid values,

psi_axis:

The psi value at the magnetic axis,

psi_lcfs:

The psi value at the LCFS,

magnetic_axis:

Point2D containing the coordinates of the magnetic axis,

x_points:

list or tuple of Point2D x-points,

strike_points:

list or tuple of Point2D strike-points,

psi_norm:

(K, ) ndarray with the values of psi_norm,

f:

(K, ) ndarray with the current flux profile on psi_norm,

q:

(K, ) ndarray with the safety factor (q) profile on psi_norm,

phi:

(K, ) ndarray with the toroidal flux profile on psi_norm,

rho_tor_norm:

(K, ) ndarray with the normalised toroidal flux coordinate on psi_norm,

b_vacuum_radius:

Vacuum B-field reference radius (in meters),

b_vacuum_magnitude:

Vacuum B-Field magnitude at the reference radius,

lcfs_polygon:

(2, L) ndarray of [[x0, ...], [y0, ...]] vertices specifying the LCFS boundary

time:

The time stamp of the time-slice (in seconds).

Return type:

dict[str, Any]

Raises:

RuntimeError – If the required data is not available in the IDS.