ASCOT5
Loading...
Searching...
No Matches
plasma_1Dt.h
Go to the documentation of this file.
1
5#ifndef PLASMA_1DT_H
6#define PLASMA_1DT_H
7#include "../ascot5.h"
8#include "../error.h"
9
24
43
45 real** offload_array);
47 real** offload_array);
48
49void plasma_1Dt_init(plasma_1Dt_data* pls_data,
50 plasma_1Dt_offload_data* offload_data,
51 real* offload_array);
52GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
53a5err plasma_1Dt_eval_temp(real* dens, real rho, real t, int species,
54 plasma_1Dt_data* pls_data);
55DECLARE_TARGET_END
56GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
57a5err plasma_1Dt_eval_dens(real* temp, real rho, real t, int species,
58 plasma_1Dt_data* pls_data);
59DECLARE_TARGET_END
60GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
62 plasma_1Dt_data* pls_data);
63DECLARE_TARGET_END
64
65#endif
Main header file for ASCOT5.
double real
Definition ascot5.h:85
#define MAX_SPECIES
Maximum number of plasma species.
Definition ascot5.h:95
Error module for ASCOT5.
unsigned long int a5err
Simulation error flag.
Definition error.h:17
void plasma_1Dt_free_offload(plasma_1Dt_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Definition plasma_1Dt.c:103
int plasma_1Dt_init_offload(plasma_1Dt_offload_data *offload_data, real **offload_array)
Initialize 1Dt plasma data and check inputs.
Definition plasma_1Dt.c:36
DECLARE_TARGET_END a5err plasma_1Dt_eval_dens(real *temp, real rho, real t, int species, plasma_1Dt_data *pls_data)
Evaluate plasma density.
Definition plasma_1Dt.c:181
DECLARE_TARGET_END a5err plasma_1Dt_eval_densandtemp(real *dens, real *temp, real rho, real t, plasma_1Dt_data *pls_data)
Evaluate plasma density and temperature for all species.
Definition plasma_1Dt.c:208
a5err plasma_1Dt_eval_temp(real *dens, real rho, real t, int species, plasma_1Dt_data *pls_data)
Evaluate plasma temperature.
Definition plasma_1Dt.c:153
void plasma_1Dt_init(plasma_1Dt_data *pls_data, plasma_1Dt_offload_data *offload_data, real *offload_array)
Initialize magnetic field data struct on target.
Definition plasma_1Dt.c:120
1D plasma parameters on the target
Definition plasma_1Dt.h:28
1D plasma parameters that will be offloaded to target
Definition plasma_1Dt.h:13