ASCOT5
Toggle main menu visibility
Loading...
Searching...
No Matches
Efield
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
18
typedef
struct
{
19
real
Exyz
[3];
21
}
E_TC_data
;
22
23
int
E_TC_init
(
E_TC_data
* Edata,
real
exyz[3]);
24
void
E_TC_free
(
E_TC_data
* Edata);
25
void
E_TC_offload
(
E_TC_data
* Edata);
26
GPU_DECLARE_TARGET_SIMD_UNIFORM(Edata,Bdata)
27
a5err
E_TC_eval_E
(
real
E[3],
real
r,
real
phi,
real
z,
E_TC_data
* Edata,
28
B_field_data
* Bdata);
29
DECLARE_TARGET_END
30
#endif
B_field.h
Header file for B_field.c.
E_TC_init
int E_TC_init(E_TC_data *data, real exyz[3])
Initialize electric field data and check inputs.
Definition
E_TC.c:25
E_TC_offload
void E_TC_offload(E_TC_data *data)
Offload data to the accelerator.
Definition
E_TC.c:51
E_TC_eval_E
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
E_TC_free
void E_TC_free(E_TC_data *data)
Free allocated resources.
Definition
E_TC.c:42
ascot5.h
Main header file for ASCOT5.
real
double real
Definition
ascot5.h:85
error.h
Error module for ASCOT5.
a5err
unsigned long int a5err
Simulation error flag.
Definition
error.h:17
B_field_data
Magnetic field simulation data.
Definition
B_field.h:41
E_TC_data
Trivial Cartesian electric field simulation data.
Definition
E_TC.h:18
E_TC_data::Exyz
real Exyz[3]
Definition
E_TC.h:19
Generated on
for ASCOT5 by
1.18.0