ASCOT5
Loading...
Searching...
No Matches
neutral.h
Go to the documentation of this file.
1
8#ifndef NEUTRAL_H
9#define NEUTRAL_H
10
11#include "ascot5.h"
12#include "error.h"
13#include "neutral/N0_1D.h"
14#include "neutral/N0_3D.h"
15
27
43
58
60 real** offload_array);
62 real** offload_array);
63
64int neutral_init(neutral_data* ndata, neutral_offload_data* offload_data,
65 real* offload_array);
66DECLARE_TARGET_SIMD_UNIFORM(ndata)
67a5err neutral_eval_n0(real* n0, real rho, real r, real phi, real z, real t,
68 neutral_data* ndata);
69DECLARE_TARGET_SIMD_UNIFORM(ndata)
70a5err neutral_eval_t0(real* t0, real rho, real r, real phi, real z, real t,
71 neutral_data* ndata);
72DECLARE_TARGET_SIMD_UNIFORM(ndata)
74#endif
Header file for N0_1D.c.
Header file for N0_3D.c.
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
int neutral_init_offload(neutral_offload_data *offload_data, real **offload_array)
Load neutral data and prepare parameters.
Definition neutral.c:41
int neutral_get_n_species(neutral_data *ndata)
Get the number of neutral species.
Definition neutral.c:225
void neutral_free_offload(neutral_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Definition neutral.c:81
int neutral_init(neutral_data *ndata, neutral_offload_data *offload_data, real *offload_array)
Initialize neutral data struct on target.
Definition neutral.c:106
a5err neutral_eval_n0(real *n0, real rho, real r, real phi, real z, real t, neutral_data *ndata)
Evaluate neutral density.
Definition neutral.c:147
a5err neutral_eval_t0(real *t0, real rho, real r, real phi, real z, real t, neutral_data *ndata)
Evaluate neutral temperature.
Definition neutral.c:189
neutral_type
Neutral data types.
Definition neutral.h:23
@ neutral_type_1D
Definition neutral.h:24
@ neutral_type_3D
Definition neutral.h:25
1D neutral parameters on the target
Definition N0_1D.h:28
1D neutral parameters on the host
Definition N0_1D.h:13
3D neutral parameters on the target
Definition N0_3D.h:34
3D neutral parameters on the host
Definition N0_3D.h:13
Neutral simulation data.
Definition neutral.h:53
N0_1D_data N01D
Definition neutral.h:55
N0_3D_data N03D
Definition neutral.h:56
neutral_type type
Definition neutral.h:54
Neutral offload data.
Definition neutral.h:37
N0_1D_offload_data N01D
Definition neutral.h:39
N0_3D_offload_data N03D
Definition neutral.h:40
neutral_type type
Definition neutral.h:38