ASCOT5
Loading...
Searching...
No Matches
N0_3D.h
Go to the documentation of this file.
1
5#ifndef N0_3D_H
6#define N0_3D_H
7#include "../ascot5.h"
8#include "../linint/linint.h" /* for 3D interpolation routines */
9
30
34typedef struct {
36 int anum[MAX_SPECIES];
37 int znum[MAX_SPECIES];
38 int maxwellian[MAX_SPECIES];
45
46int N0_3D_init_offload(N0_3D_offload_data* offload_data, real** offload_array);
47void N0_3D_free_offload(N0_3D_offload_data* offload_data, real** offload_array);
48
49void N0_3D_init(N0_3D_data* ndata, N0_3D_offload_data* offload_data,
50 real* offload_array);
51DECLARE_TARGET_SIMD_UNIFORM(ndata)
52a5err N0_3D_eval_n0(real* n0, real r, real phi, real z, N0_3D_data* ndata);
53DECLARE_TARGET_SIMD_UNIFORM(ndata)
54a5err N0_3D_eval_t0(real* t0, real r, real phi, real z, N0_3D_data* ndata);
55DECLARE_TARGET_SIMD_UNIFORM(ndata)
57#endif
a5err N0_3D_eval_n0(real *n0, real r, real phi, real z, N0_3D_data *ndata)
Evaluate neutral density.
Definition N0_3D.c:129
int N0_3D_get_n_species(N0_3D_data *ndata)
Return number of neutral species.
Definition N0_3D.c:178
void N0_3D_free_offload(N0_3D_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Definition N0_3D.c:66
a5err N0_3D_eval_t0(real *t0, real r, real phi, real z, N0_3D_data *ndata)
Evaluate neutral temperature.
Definition N0_3D.c:157
void N0_3D_init(N0_3D_data *ndata, N0_3D_offload_data *offload_data, real *offload_array)
Initialize neutral data on target.
Definition N0_3D.c:86
int N0_3D_init_offload(N0_3D_offload_data *offload_data, real **offload_array)
Initialize offload data.
Definition N0_3D.c:24
Main header file for ASCOT5.
double real
Definition ascot5.h:85
#define MAX_SPECIES
Maximum number of plasma species.
Definition ascot5.h:95
unsigned long int a5err
Simulation error flag.
Definition error.h:17
Linear interpolation library.
3D neutral parameters on the target
Definition N0_3D.h:34
int n_species
Definition N0_3D.h:35
3D neutral parameters on the host
Definition N0_3D.h:13
int offload_array_length
Definition N0_3D.h:28
3D interpolation struct.
Definition linint.h:50