ASCOT5
Loading...
Searching...
No Matches
N0_1D.h
Go to the documentation of this file.
1
5#ifndef N0_1D_H
6#define N0_1D_H
7#include "../ascot5.h"
8#include "../linint/linint.h" /* for 1D interpolation routines */
9
24
28typedef struct {
30 int anum[MAX_SPECIES];
31 int znum[MAX_SPECIES];
32 int maxwellian[MAX_SPECIES];
39
40int N0_1D_init_offload(N0_1D_offload_data* offload_data, real** offload_array);
41void N0_1D_free_offload(N0_1D_offload_data* offload_data, real** offload_array);
42
43void N0_1D_init(N0_1D_data* ndata, N0_1D_offload_data* offload_data,
44 real* offload_array);
45DECLARE_TARGET_SIMD_UNIFORM(ndata)
46a5err N0_1D_eval_n0(real* n0, real rho, N0_1D_data* ndata);
47DECLARE_TARGET_SIMD_UNIFORM(ndata)
48a5err N0_1D_eval_t0(real* t0, real rho, N0_1D_data* ndata);
49DECLARE_TARGET_SIMD_UNIFORM(ndata)
51#endif
int N0_1D_init_offload(N0_1D_offload_data *offload_data, real **offload_array)
Initialize offload data.
Definition N0_1D.c:24
a5err N0_1D_eval_n0(real *n0, real rho, N0_1D_data *ndata)
Evaluate neutral density.
Definition N0_1D.c:115
void N0_1D_free_offload(N0_1D_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Definition N0_1D.c:60
a5err N0_1D_eval_t0(real *t0, real rho, N0_1D_data *ndata)
Evaluate neutral temperature.
Definition N0_1D.c:141
void N0_1D_init(N0_1D_data *ndata, N0_1D_offload_data *offload_data, real *offload_array)
Initialize neutral data on target.
Definition N0_1D.c:80
int N0_1D_get_n_species(N0_1D_data *ndata)
Return number of neutral species.
Definition N0_1D.c:162
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.
1D neutral parameters on the target
Definition N0_1D.h:28
int n_species
Definition N0_1D.h:29
1D neutral parameters on the host
Definition N0_1D.h:13
int offload_array_length
Definition N0_1D.h:22
1D interpolation struct.
Definition linint.h:21