ASCOT5
Loading...
Searching...
No Matches
E_field.h
Go to the documentation of this file.
1
8#ifndef E_FIELD_H
9#define E_FIELD_H
10
11#include "offload_acc_omp.h"
12#include "ascot5.h"
13#include "error.h"
14#include "B_field.h"
15#include "Efield/E_TC.h"
16#include "Efield/E_1DS.h"
17
29
45
60
62 real** offload_array);
64 real** offload_array);
65
66int E_field_init(E_field_data* Edata, E_field_offload_data* offload_data,
67 real* offload_array);
68GPU_DECLARE_TARGET_SIMD_UNIFORM(Edata, Bdata)
69a5err E_field_eval_E(real E[3], real r, real phi, real z, real t,
70 E_field_data* Edata, B_field_data* Bdata);
71DECLARE_TARGET_END
72
73#endif
Header file for B_field.c.
Header file for E_1DS.c.
Header file for E_TC.c.
int E_field_init(E_field_data *Edata, E_field_offload_data *offload_data, real *offload_array)
Initialize electric field data struct on target.
Definition E_field.c:116
int E_field_init_offload(E_field_offload_data *offload_data, real **offload_array)
Load electric field data and prepare parameters.
Definition E_field.c:41
void E_field_free_offload(E_field_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Definition E_field.c:85
a5err E_field_eval_E(real E[3], real r, real phi, real z, real t, E_field_data *Edata, B_field_data *Bdata)
Evaluate electric field.
Definition E_field.c:166
E_field_type
Electric field types.
Definition E_field.h:25
@ E_field_type_TC
Definition E_field.h:26
@ E_field_type_1DS
Definition E_field.h:27
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
Magnetic field simulation data.
Definition B_field.h:63
1D spline electric field parameters on the target
Definition E_1DS.h:30
1D spline electric field parameters that will be offloaded to target
Definition E_1DS.h:20
Trivial Cartesian electric field simulation data.
Definition E_TC.h:27
Trivial Cartesian electric field offload data.
Definition E_TC.h:18
Electric field simulation data.
Definition E_field.h:55
E_TC_data ETC
Definition E_field.h:57
E_field_type type
Definition E_field.h:56
E_1DS_data E1DS
Definition E_field.h:58
Electric field offload data.
Definition E_field.h:39
E_TC_offload_data ETC
Definition E_field.h:41
E_1DS_offload_data E1DS
Definition E_field.h:42
E_field_type type
Definition E_field.h:40