ASCOT5
Loading...
Searching...
No Matches
E_TC.h
Go to the documentation of this file.
1
7#ifndef E_TC_H
8#define E_TC_H
9
10#include "../offload.h"
11#include "../ascot5.h"
12#include "../error.h"
13#include "../B_field.h"
14
18typedef struct {
19 real Exyz[3];
21} E_TC_data;
22
23int E_TC_init(E_TC_data* Edata, real exyz[3]);
24void E_TC_free(E_TC_data* Edata);
25void E_TC_offload(E_TC_data* Edata);
26GPU_DECLARE_TARGET_SIMD_UNIFORM(Edata,Bdata)
27a5err E_TC_eval_E(real E[3], real r, real phi, real z, E_TC_data* Edata,
28 B_field_data* Bdata);
29DECLARE_TARGET_END
30#endif
Header file for B_field.c.
void E_TC_free(E_TC_data *Edata)
Free allocated resources.
Definition E_TC.c:42
void E_TC_offload(E_TC_data *Edata)
Offload data to the accelerator.
Definition E_TC.c:51
a5err E_TC_eval_E(real E[3], real r, real phi, real z, E_TC_data *Edata, B_field_data *Bdata)
Evaluate electric field.
Definition E_TC.c:70
int E_TC_init(E_TC_data *Edata, real exyz[3])
Initialize electric field data and check inputs.
Definition E_TC.c:25
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:41
Trivial Cartesian electric field simulation data.
Definition E_TC.h:18