ASCOT5
Loading...
Searching...
No Matches
E_1DS.h
Go to the documentation of this file.
1
9#ifndef E_1DS_H
10#define E_1DS_H
11#include "../offload.h"
12#include "../ascot5.h"
13#include "../error.h"
14#include "../spline/interp.h"
15#include "../B_field.h"
16
20typedef struct {
23
24int E_1DS_init(E_1DS_data* data, int nrho, real rhomin, real rhomax, real reff,
25 real* dvdrho);
26void E_1DS_free(E_1DS_data* data);
27void E_1DS_offload(E_1DS_data* data);
28GPU_DECLARE_TARGET_SIMD_UNIFORM(Edata,Bdata)
29a5err E_1DS_eval_E(real E[3], real r, real phi, real z, E_1DS_data* Edata,
30 B_field_data* Bdata);
31DECLARE_TARGET_END
32#endif
Header file for B_field.c.
void E_1DS_free(E_1DS_data *data)
Free allocated resources.
Definition E_1DS.c:58
void E_1DS_offload(E_1DS_data *data)
Offload data to the accelerator.
Definition E_1DS.c:67
int E_1DS_init(E_1DS_data *data, int nrho, real rhomin, real rhomax, real reff, real *dvdrho)
Initialize 1DS electric field data.
Definition E_1DS.c:29
a5err E_1DS_eval_E(real E[3], real r, real phi, real z, E_1DS_data *Edata, B_field_data *Bdata)
Evaluate 1D spline radial electric field.
Definition E_1DS.c:89
Main header file for ASCOT5.
double real
Definition ascot5.h:85
Error module for ASCOT5.
unsigned long int a5err
Simulation error flag.
Definition error.h:17
Spline interpolation library.
Magnetic field simulation data.
Definition B_field.h:41
1D spline electric field parameters on the target
Definition E_1DS.h:20
interp1D_data dV
Definition E_1DS.h:21
Cubic interpolation struct.
Definition interp.h:56