ASCOT5
Loading...
Searching...
No Matches
plasma_1D.h
Go to the documentation of this file.
1
5#ifndef PLASMA_1D_H
6#define PLASMA_1D_H
7#include "../ascot5.h"
8#include "../offload.h"
9#include "../error.h"
10
25
26int plasma_1D_init(plasma_1D_data* data, int nrho, int nion, real* rho,
27 int* anum, int* znum, real* mass, real* charge,
28 real* Te, real* Ti, real* ne, real* ni);
31GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
32a5err plasma_1D_eval_temp(real* dens, real rho, int species,
33 plasma_1D_data* pls_data);
34DECLARE_TARGET_END
35GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
36a5err plasma_1D_eval_dens(real* temp, real rho, int species,
37 plasma_1D_data* pls_data);
38DECLARE_TARGET_END
39GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
41 plasma_1D_data* pls_data);
42DECLARE_TARGET_END
43
44#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_1D_free(plasma_1D_data *data)
Free allocated resources.
Definition plasma_1D.c:102
void plasma_1D_offload(plasma_1D_data *data)
Offload data to the accelerator.
Definition plasma_1D.c:117
DECLARE_TARGET_END a5err plasma_1D_eval_dens(real *temp, real rho, int species, plasma_1D_data *pls_data)
Evaluate plasma density.
Definition plasma_1D.c:179
DECLARE_TARGET_END a5err plasma_1D_eval_densandtemp(real *dens, real *temp, real rho, plasma_1D_data *pls_data)
Evaluate plasma density and temperature for all species.
Definition plasma_1D.c:219
a5err plasma_1D_eval_temp(real *dens, real rho, int species, plasma_1D_data *pls_data)
Evaluate plasma temperature.
Definition plasma_1D.c:139
int plasma_1D_init(plasma_1D_data *data, int nrho, int nion, real *rho, int *anum, int *znum, real *mass, real *charge, real *Te, real *Ti, real *ne, real *ni)
Initialize 1D plasma data and check inputs.
Definition plasma_1D.c:25
1D plasma parameters on the target
Definition plasma_1D.h:14
real * charge
Definition plasma_1D.h:18