|
ASCOT5
|
Trivial Cartesian Electric field. More...
#include <stdlib.h>#include "../ascot5.h"#include "../math.h"#include "../error.h"#include "../print.h"#include "../B_field.h"#include "E_TC.h"Go to the source code of this file.
Functions | |
| int | E_TC_init (E_TC_data *data, real exyz[3]) |
| Initialize electric field data and check inputs. | |
| void | E_TC_free (E_TC_data *data) |
| Free allocated resources. | |
| void | E_TC_offload (E_TC_data *data) |
| Offload data to the accelerator. | |
| 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. | |
Trivial Cartesian Electric field.
Electric field that has constant x, y, and z components. Note that this field is defined in Cartesian coordinates and not cylindrical. This field is intended for testing purposes and to act as a dummy input.
Definition in file E_TC.c.
| void E_TC_free | ( | E_TC_data * | data | ) |
| void E_TC_offload | ( | E_TC_data * | data | ) |
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 |