ASCOT5
|
Header file for E_TC.c. More...
#include "../offload_acc_omp.h"
#include "../ascot5.h"
#include "../error.h"
#include "../B_field.h"
Go to the source code of this file.
Data Structures | |
struct | E_TC_offload_data |
Trivial Cartesian electric field offload data. More... | |
struct | E_TC_data |
Trivial Cartesian electric field simulation data. More... | |
Functions | |
int | E_TC_init_offload (E_TC_offload_data *offload_data, real **offload_array) |
Initialize electric field data and check inputs. | |
void | E_TC_free_offload (E_TC_offload_data *offload_data, real **offload_array) |
Free offload array and return null pointer. | |
void | E_TC_init (E_TC_data *Edata, E_TC_offload_data *offload_data, real *offload_array) |
Initialize electric field simulation data. | |
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. | |
Header file for E_TC.c.
Contains declaration of E_TC_field_offload_data and E_TC_field_data structs.
Definition in file E_TC.h.
int E_TC_init_offload | ( | E_TC_offload_data * | offload_data, |
real ** | offload_array ) |
Initialize electric field data and check inputs.
The offload data struct must have the following fields initialized:
There is nothing left to initialize.
Instead this function only prints values of electric field components as a sanity check.
offload_data | pointer to offload data struct |
offload_array | pointer to pointer to offload array |
void E_TC_free_offload | ( | E_TC_offload_data * | offload_data, |
real ** | offload_array ) |
void E_TC_init | ( | E_TC_data * | Edata, |
E_TC_offload_data * | offload_data, | ||
real * | offload_array ) |
Evaluate electric field.
Even though this module represents a Cartesian electric field, the returned values are given in cylindrical coordinates.
E | pointer to array where electric field values are stored |
r | R coordinate [m] |
phi | phi coordinate [deg] |
z | z coordinate [m] |
Edata | pointer to magnetic field data struct |
Bdata | pointer to magnetic field data struct |