ASCOT5
Loading...
Searching...
No Matches
plasma_1DS.h
Go to the documentation of this file.
1
5#ifndef PLASMA_1DS_H
6#define PLASMA_1DS_H
7#include "../ascot5.h"
8#include "../offload.h"
9#include "../error.h"
10#include "../spline/interp.h"
11
24
25int plasma_1DS_init(plasma_1DS_data* data, int nrho, real rhomin, real rhomax,
26 int nion, int* anum, int* znum, real* mass, real* charge,
27 real* Te, real* Ti, real* ne, real* ni);
30GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
31a5err plasma_1DS_eval_temp(real* temp, real rho, int species,
32 plasma_1DS_data* pls_data);
33DECLARE_TARGET_END
34GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
35a5err plasma_1DS_eval_dens(real* dens, real rho, int species,
36 plasma_1DS_data* pls_data);
37DECLARE_TARGET_END
38GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
40 plasma_1DS_data* pls_data);
41DECLARE_TARGET_END
42
43#endif
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
Spline interpolation library.
int plasma_1DS_init(plasma_1DS_data *data, int nrho, real rhomin, real rhomax, int nion, int *anum, int *znum, real *mass, real *charge, real *Te, real *Ti, real *ne, real *ni)
Initialize 1DS plasma data and check inputs.
Definition plasma_1DS.c:43
DECLARE_TARGET_END a5err plasma_1DS_eval_dens(real *dens, real rho, int species, plasma_1DS_data *pls_data)
Evaluate plasma density.
Definition plasma_1DS.c:259
DECLARE_TARGET_END a5err plasma_1DS_eval_densandtemp(real *dens, real *temp, real rho, plasma_1DS_data *pls_data)
Evaluate plasma density and temperature for all species.
Definition plasma_1DS.c:294
void plasma_1DS_free(plasma_1DS_data *data)
Free allocated resources.
Definition plasma_1DS.c:189
void plasma_1DS_offload(plasma_1DS_data *data)
Offload data to the accelerator.
Definition plasma_1DS.c:205
a5err plasma_1DS_eval_temp(real *temp, real rho, int species, plasma_1DS_data *pls_data)
Evaluate plasma temperature.
Definition plasma_1DS.c:228
Cubic interpolation struct.
Definition interp.h:56
1D spline plasma parameters on the target
Definition plasma_1DS.h:15
interp1D_data * dens
Definition plasma_1DS.h:22