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 "../offload.h"
9#include "../error.h"
10
27
28int plasma_1Dt_init(plasma_1Dt_data* data, int nrho, int ntime, int nion,
29 real* rho, real* time, int* anum, int* znum, real* mass,
30 real* charge, real* Te, real* Ti, real* ne, real* ni);
31void plasma_1Dt_free(plasma_1Dt_data* pls_data);
33GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
34a5err plasma_1Dt_eval_temp(real* dens, real rho, real t, int species,
35 plasma_1Dt_data* pls_data);
36DECLARE_TARGET_END
37GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
38a5err plasma_1Dt_eval_dens(real* temp, real rho, real t, int species,
39 plasma_1Dt_data* pls_data);
40DECLARE_TARGET_END
41GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
43 plasma_1Dt_data* pls_data);
44DECLARE_TARGET_END
45
46#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
void plasma_1Dt_offload(plasma_1Dt_data *pls_data)
Offload data to the accelerator.
Definition plasma_1Dt.c:134
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:186
void plasma_1Dt_free(plasma_1Dt_data *pls_data)
Free allocated resources.
Definition plasma_1Dt.c:118
int plasma_1Dt_init(plasma_1Dt_data *data, int nrho, int ntime, int nion, real *rho, real *time, int *anum, int *znum, real *mass, real *charge, real *Te, real *Ti, real *ne, real *ni)
Initialize 1Dt plasma data and check inputs.
Definition plasma_1Dt.c:22
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:213
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:158
1D plasma parameters on the target
Definition plasma_1Dt.h:14