imas_paraview.io.read_jorek

A collection of methods to read a grid_ggd IDS node into a VTK dataset. These methods copy contents from the grid_ggd/space and grid_ggd/grid_subset children into distinct vtkUnstructuredGrid objects for Bezier elements.

Functions

basis_functions(s, t)

Calculate values of the basis functions at positions s and t Optionally put many values of s and t at once as numpy arrays.

basis_functions_s(s, t)

Calculate values of the basis functions derived to s at positions s and t Optionally put many values of s and t at once as numpy arrays.

basis_functions_t(s, t)

Calculate values of the basis functions derived to t at positions s and t Optionally put many values of s and t at once as numpy arrays.

bf(n_sub)

bf_s(n_sub)

bf_t(n_sub)

calc_phis(n_plane, phi)

Compute an array of phi values for given planes.

calc_size(grid_ggd)

Calculate the size matrix for each face in the grid.

convert_grid_subset_to_unstructured_grid(...)

Copy the elements found in given grid_ggd/grid_subset IDS node into a vtkUnstructuredGrid instance.

get_vertex(grid_ggd)

Retrieve vertex numbers in the R-Z plane.

interp_scalars(values, vertex, size, n_sub)

Interpolate scalars on 2D poloidal plane

interp_scalars_3D(values, vertex, size, ...)

Interpolate scalars on 2D planes * n_planes

read_plasma_state(grid_ggd, ps_reader, ...)

Reads plasma state data arrays from the ggd node in the IDS. These arrays are

toroidal_basis(n_tor, n_period, phis, ...)


Last update: 2026-03-11