cherab.imas.math.functions.fourier_bezier.FourierBezierConstructorΒΆ

class cherab.imas.math.functions.fourier_bezier.FourierBezierConstructorΒΆ

Bases: object

Reconstruct field values on poloidal faces from Fourier-Bezier coefficients.

This class reconstructs physical quantities (e.g., emissivity, temperature) discretized using Bezier polynomials in the poloidal plane and Fourier modes in the toroidal direction, following the JOREK MHD code discretization scheme.

Parameters:
grid_ggd : IDSStructure

The grid GGD IDSStructure containing the space IDSStructArray.

coefficients : array_like, optional

The coefficients of the physical quantity.

Methods

average_gaussian_faces(phi)

Calculate face-averaged field value at a single toroidal angle [deg].

average_gaussian_faces_per_toroidal(phis)

Calculate face-averaged field values for each toroidal angle [deg].

Attributes

coefficients

Fourier-Bezier coefficient tensor as a numpy array.

average_gaussian_faces(phi)ΒΆ

Calculate face-averaged field value at a single toroidal angle [deg].

Parameters:
phi : floatΒΆ

Toroidal angle [deg] at which to evaluate the face-averaged field values.

Returns:

(F,) ndarray – Face-averaged field values for each face at the given toroidal angle.

average_gaussian_faces_per_toroidal(phis)ΒΆ

Calculate face-averaged field values for each toroidal angle [deg].

Parameters:
phis : array_likeΒΆ

Array of toroidal angles [deg] at which to evaluate the face-averaged field values.

Returns:

(N, F) ndarray – Face-averaged field values for each toroidal angle. Axis 0: Toroidal angle index. Axis 1: Face index.

coefficientsΒΆ

Fourier-Bezier coefficient tensor as a numpy array.

The coefficients are the coefficients that define the physical quantity on the JOREK grid.

Returns:

(I, K, J, L) ndarray – The coefficients of the physical quantity.

I:

the number of faces in the RZ grid,

K:

the number of vertices in one face, by default 4,

J:

the number of degrees of freedom in one vertex, by default 4,

L:

the number of toroidal fourier modes.