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 "../offload.h"
9#include "../linint/linint.h" /* for 3D interpolation routines */
10
23
24int N0_3D_init(N0_3D_data* data,
25 int n_r, real r_min, real r_max,
26 int n_phi, real phi_min, real phi_max,
27 int n_z, real z_min, real z_max,
28 int n_species, int* anum, int* znum, int* maxwellian,
29 real* density, real* temperature);
30void N0_3D_free(N0_3D_data* data);
31void N0_3D_offload(N0_3D_data* data);
32DECLARE_TARGET_SIMD_UNIFORM(ndata)
33a5err N0_3D_eval_n0(real* n0, real r, real phi, real z, N0_3D_data* ndata);
34DECLARE_TARGET_SIMD_UNIFORM(ndata)
35a5err N0_3D_eval_t0(real* t0, real r, real phi, real z, N0_3D_data* ndata);
36DECLARE_TARGET_SIMD_UNIFORM(ndata)
38#endif
int N0_3D_init(N0_3D_data *data, int n_r, real r_min, real r_max, int n_phi, real phi_min, real phi_max, int n_z, real z_min, real z_max, int n_species, int *anum, int *znum, int *maxwellian, real *density, real *temperature)
Initialize neutral data.
Definition N0_3D.c:21
a5err N0_3D_eval_n0(real *n0, real r, real phi, real z, N0_3D_data *ndata)
Evaluate neutral density.
Definition N0_3D.c:114
int N0_3D_get_n_species(N0_3D_data *ndata)
Return number of neutral species.
Definition N0_3D.c:163
a5err N0_3D_eval_t0(real *t0, real r, real phi, real z, N0_3D_data *ndata)
Evaluate neutral temperature.
Definition N0_3D.c:142
void N0_3D_offload(N0_3D_data *data)
Offload data to the accelerator.
Definition N0_3D.c:96
void N0_3D_free(N0_3D_data *data)
Free allocated resources.
Definition N0_3D.c:81
Main header file for ASCOT5.
double real
Definition ascot5.h:85
unsigned long int a5err
Simulation error flag.
Definition error.h:17
Linear interpolation library.
3D neutral parameters on the target
Definition N0_3D.h:14
int * maxwellian
Definition N0_3D.h:18
linint3D_data * t0
Definition N0_3D.h:21
int n_species
Definition N0_3D.h:15
int * anum
Definition N0_3D.h:16
linint3D_data * n0
Definition N0_3D.h:20
int * znum
Definition N0_3D.h:17
3D interpolation struct.
Definition linint.h:50