ASCOT5
|
Header file for neutral.c. More...
Go to the source code of this file.
Data Structures | |
struct | neutral_data |
Neutral simulation data. More... | |
Typedefs | |
typedef enum neutral_type | neutral_type |
Neutral data types. | |
Enumerations | |
enum | neutral_type { neutral_type_1D , neutral_type_3D } |
Neutral data types. More... | |
Functions | |
void | neutral_free (neutral_data *data) |
Free allocated resources. | |
void | neutral_offload (neutral_data *data) |
Offload data to the accelerator. | |
a5err | neutral_eval_n0 (real *n0, real rho, real r, real phi, real z, real t, neutral_data *ndata) |
Evaluate neutral density. | |
a5err | neutral_eval_t0 (real *t0, real rho, real r, real phi, real z, real t, neutral_data *ndata) |
Evaluate neutral temperature. | |
int | neutral_get_n_species (neutral_data *ndata) |
Get the number of neutral species. | |
Header file for neutral.c.
Contains a list declaring all neutral_types, and declaration of neutral_offload_data and neutral_data structs.
Definition in file neutral.h.
enum neutral_type |
void neutral_free | ( | neutral_data * | data | ) |
void neutral_offload | ( | neutral_data * | data | ) |
a5err neutral_eval_n0 | ( | real * | n0, |
real | rho, | ||
real | r, | ||
real | phi, | ||
real | z, | ||
real | t, | ||
neutral_data * | ndata ) |
Evaluate neutral density.
This function evaluates the neutral density n0 at the given coordinates.
This is a SIMD function.
n0 | pointer where neutral density is stored [m^-3] |
rho | normalized poloidal flux coordinate |
r | R coordinate [m] |
phi | phi coordinate [deg] |
z | z coordinate [m] |
t | time coordinate [s] |
ndata | pointer to neutral density data struct |
a5err neutral_eval_t0 | ( | real * | t0, |
real | rho, | ||
real | r, | ||
real | phi, | ||
real | z, | ||
real | t, | ||
neutral_data * | ndata ) |
Evaluate neutral temperature.
This function evaluates the neutral temperature t0 at the given coordinates.
This is a SIMD function.
t0 | pointer where neutral temperature is stored [J] |
rho | normalized poloidal flux coordinate |
r | R coordinate [m] |
phi | phi coordinate [deg] |
z | z coordinate [m] |
t | time coordinate [s] |
ndata | pointer to neutral temperature data struct |
int neutral_get_n_species | ( | neutral_data * | ndata | ) |