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 "ascot5.h"
12#include "offload.h"
13#include "error.h"
14#include "B_field.h"
15#include "Efield/E_TC.h"
16#include "Efield/E_1DS.h"
17
29
41
42void E_field_free(E_field_data* data);
44GPU_DECLARE_TARGET_SIMD_UNIFORM(Edata, Bdata)
45a5err E_field_eval_E(real E[3], real r, real phi, real z, real t,
46 E_field_data* Edata, B_field_data* Bdata);
47DECLARE_TARGET_END
48
49#endif
Header file for B_field.c.
Header file for E_1DS.c.
Header file for E_TC.c.
void E_field_free(E_field_data *data)
Free allocated resources.
Definition E_field.c:30
void E_field_offload(E_field_data *data)
Offload data to the accelerator.
Definition E_field.c:46
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:82
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:41
1D spline electric field parameters on the target
Definition E_1DS.h:20
Trivial Cartesian electric field simulation data.
Definition E_TC.h:18
Electric field simulation data.
Definition E_field.h:36
E_TC_data ETC
Definition E_field.h:38
E_field_type type
Definition E_field.h:37
E_1DS_data E1DS
Definition E_field.h:39