96 switch(mhddata->type) {
100 boozerdata, &(mhddata->stat), Bdata);
105 boozerdata, &(mhddata->nonstat), Bdata);
148 real t,
int pertonly,
int includemode,
153 switch(mhddata->type) {
157 includemode, boozerdata,
158 &(mhddata->stat), Bdata);
163 includemode, boozerdata,
164 &(mhddata->nonstat), Bdata);
185 switch(mhddata->type) {
187 val = mhddata->stat.n_modes;
190 val = mhddata->nonstat.n_modes;
204 const int* val = NULL;
205 switch(mhddata->type) {
207 val = mhddata->stat.nmode;
210 val = mhddata->nonstat.nmode;
224 const int* val = NULL;
225 switch(mhddata->type) {
227 val = mhddata->stat.mmode;
230 val = mhddata->nonstat.mmode;
244 const real* val = NULL;
245 switch(mhddata->type) {
247 val = mhddata->stat.amplitude_nm;
250 val = mhddata->nonstat.amplitude_nm;
264 const real* val = NULL;
265 switch(mhddata->type) {
267 val = mhddata->stat.omega_nm;
270 val = mhddata->nonstat.omega_nm;
284 const real* val = NULL;
285 switch(mhddata->type) {
287 val = mhddata->stat.phase_nm;
290 val = mhddata->nonstat.phase_nm;
Header file for B_field.c.
Main header file for ASCOT5.
Header file for boozer.c.
unsigned long int a5err
Simulation error flag.
static DECLARE_TARGET_SIMD a5err error_raise(error_type type, int line, error_file file)
Raise a new error.
int mhd_get_n_modes(mhd_data *mhddata)
Return number of modes.
const real * mhd_get_amplitude(mhd_data *mhddata)
Return mode amplitudes.
const int * mhd_get_nmode(mhd_data *mhddata)
Return mode toroidal numbers.
void mhd_offload(mhd_data *data)
Offload data to the accelerator.
a5err mhd_perturbations(real pert_field[7], real r, real phi, real z, real t, int pertonly, int includemode, boozer_data *boozerdata, mhd_data *mhddata, B_field_data *Bdata)
Evaluate perturbed fields Btilde, Etilde and potential Phi explicitly.
const int * mhd_get_mmode(mhd_data *mhddata)
Return mode poloidal numbers.
const real * mhd_get_frequency(mhd_data *mhddata)
Return mode frequencies.
a5err mhd_eval(real mhd_dmhd[10], real r, real phi, real z, real t, int includemode, boozer_data *boozerdata, mhd_data *mhddata, B_field_data *Bdata)
Evaluate the needed quantities from MHD mode for orbit following.
void mhd_free(mhd_data *data)
Free allocated resources.
const real * mhd_get_phase(mhd_data *mhddata)
Return mode phases.
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.
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.
Header file for mhd_nonstat.c.
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.
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.
Header file for mhd_stat.c.
Macros for printing console output.
Magnetic field simulation data.
Data for mapping between the cylindrical and Boozer coordinates.