40 int* moden,
int* modem,
real* amplitude_nm,
44DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, includemode)
48DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, pertonly,\
51 real t,
int pertonly,
int 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.
a5err mhd_nonstat_perturbations(real pert_field[7], real r, real phi, real z, real t, int pertonly, int includemode, boozer_data *boozerdata, mhd_nonstat_data *mhddata, B_field_data *Bdata)
Evaluate mhd perturbed fields Btilde, Etilde and potential Phi for full orbit.
void mhd_nonstat_free(mhd_nonstat_data *data)
Free allocated resources.
void mhd_nonstat_offload(mhd_nonstat_data *data)
Offload data to the accelerator.
int mhd_nonstat_init(mhd_nonstat_data *data, int nmode, int nrho, int ntime, real rhomin, real rhomax, real tmin, real tmax, int *moden, int *modem, real *amplitude_nm, real *omega_nm, real *phase_nm, real *alpha, real *phi)
Load MHD data.
a5err mhd_nonstat_eval(real mhd_dmhd[10], real r, real phi, real z, real t, int includemode, boozer_data *boozerdata, mhd_nonstat_data *mhddata, B_field_data *Bdata)
Evaluate the needed quantities from MHD mode for orbit following.
Magnetic field simulation data.
Data for mapping between the cylindrical and Boozer coordinates.
Bicubic interpolation struct.
interp2D_data * phi_nm
2D splines (rho,time) for each mode's electric eigenfunction
interp2D_data * alpha_nm
2D splines (rho,time) for each mode's magnetic eigenfunction