cherab.imas.math.functions.FourierBezierConstructorΒΆ
- class cherab.imas.math.functions.FourierBezierConstructorΒΆ
Bases:
objectReconstruct 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
IDSStructurecontaining thespaceIDSStructArray.- coefficients : array_like, optional
The coefficients of the physical quantity.
Methods
Calculate face-averaged field value at a single toroidal angle [deg].
Calculate face-averaged field values for each toroidal angle [deg].
Attributes
Fourier-Bezier coefficient tensor as a numpy array.
- 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.