40 real rhomin,
real rhomax,
int* moden,
int* modem,
45DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, includemode)
49DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, pertonly, includemode)
Header file for B_field.c.
Main header file for ASCOT5.
Header file for boozer.c.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
void mhd_stat_offload(mhd_stat_data *data)
Offload data to the accelerator.
a5err mhd_stat_perturbations(real pert_field[7], real r, real phi, real z, real t, int pertonly, int includemode, boozer_data *boozerdata, mhd_stat_data *mhddata, B_field_data *Bdata)
Evaluate perturbed fields Btilde, Etilde and potential Phi explicitly.
int mhd_stat_init(mhd_stat_data *data, int nmode, int nrho, real rhomin, real rhomax, int *moden, int *modem, real *amplitude_nm, real *omega_nm, real *phase_nm, real *alpha, real *phi)
Load MHD data.
a5err mhd_stat_eval(real mhd_dmhd[10], real r, real phi, real z, real t, int includemode, boozer_data *boozerdata, mhd_stat_data *mhddata, B_field_data *Bdata)
Evaluate the needed quantities from MHD mode for orbit following.
void mhd_stat_free(mhd_stat_data *data)
Free allocated resources.
Magnetic field simulation data.
Data for mapping between the cylindrical and Boozer coordinates.
Cubic interpolation struct.
MHD stat parameters on the target.
interp1D_data * alpha_nm
1D splines (rho) for each mode's magnetic eigenfunction
interp1D_data * phi_nm
1D splines (rho) for each mode's electric eigenfunction