ASCOT5
Loading...
Searching...
No Matches
mhd_nonstat.h
Go to the documentation of this file.
1
5#ifndef MHD_NONSTAT_H
6#define MHD_NONSTAT_H
7
8#include "../ascot5.h"
9#include "../error.h"
10#include "../boozer.h"
11#include "../spline/interp.h"
12#include "../B_field.h"
13
35
57
59 real** offload_array);
60
62 real** offload_array);
63
65 mhd_nonstat_offload_data* offload_data,
66 real* offload_array);
67DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, includemode)
68a5err mhd_nonstat_eval(real mhd_dmhd[10], real r, real phi, real z, real t,
69 int includemode, boozer_data* boozerdata,
70 mhd_nonstat_data* mhddata, B_field_data* Bdata);
71DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, pertonly,\
72 includemode)
73a5err mhd_nonstat_perturbations(real pert_field[7], real r, real phi, real z,
74 real t, int pertonly, int includemode,
75 boozer_data* boozerdata,
76 mhd_nonstat_data* mhddata, B_field_data* Bdata);
77
78
79#endif
Header file for B_field.c.
Main header file for ASCOT5.
double real
Definition ascot5.h:85
#define MHD_MODES_MAX_NUM
Maximum number of MHD modes.
Definition ascot5.h:98
Header file for boozer.c.
Error module for ASCOT5.
unsigned long int a5err
Simulation error flag.
Definition error.h:17
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_init(mhd_nonstat_data *mhddata, mhd_nonstat_offload_data *offload_data, real *offload_array)
Initialize MHD data struct on target.
int mhd_nonstat_init_offload(mhd_nonstat_offload_data *offload_data, real **offload_array)
Load MHD data and prepare parameters for offload.
Definition mhd_nonstat.c:37
void mhd_nonstat_free_offload(mhd_nonstat_offload_data *offload_data, real **offload_array)
Free offload array.
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.
Definition B_field.h:63
Boozer parameters on the target.
Definition boozer.h:29
Bicubic interpolation struct.
Definition interp.h:68
MHD parameters on the target.
Definition mhd_nonstat.h:39
MHD parameters that will be offloaded to target.
Definition mhd_nonstat.h:17