ASCOT5
Toggle main menu visibility
Loading...
Searching...
No Matches
plasma
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
14
typedef
struct
{
15
int
n_rho
;
16
int
n_time
;
17
int
n_species
;
18
real
*
mass
;
19
real
*
charge
;
20
int
*
anum
;
21
int
*
znum
;
22
real
*
rho
;
23
real
*
time
;
24
real
*
temp
;
25
real
*
dens
;
26
real
*
vtor
;
27
}
plasma_1Dt_data
;
28
29
int
plasma_1Dt_init
(
plasma_1Dt_data
* data,
int
nrho,
int
ntime,
int
nion,
30
real
* rho,
real
* time,
int
* anum,
int
* znum,
real
* mass,
31
real
* charge,
real
* Te,
real
* Ti,
real
* ne,
real
* ni,
32
real
* vtor);
33
void
plasma_1Dt_free
(
plasma_1Dt_data
* pls_data);
34
void
plasma_1Dt_offload
(
plasma_1Dt_data
* pls_data);
35
GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
36
a5err
plasma_1Dt_eval_temp
(
real
* dens,
real
rho,
real
t,
int
species,
37
plasma_1Dt_data
* pls_data);
38
DECLARE_TARGET_END
39
GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
40
a5err
plasma_1Dt_eval_dens
(
real
* temp,
real
rho,
real
t,
int
species,
41
plasma_1Dt_data
* pls_data);
42
DECLARE_TARGET_END
43
GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
44
a5err
plasma_1Dt_eval_densandtemp
(
real
* dens,
real
* temp,
real
rho,
real
t,
45
plasma_1Dt_data
* pls_data);
46
DECLARE_TARGET_END
47
GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
48
a5err
plasma_1Dt_eval_flow
(
real
* vflow,
real
rho,
real
t,
real
r,
49
plasma_1Dt_data
* pls_data);
50
DECLARE_TARGET_END
51
52
#endif
ascot5.h
Main header file for ASCOT5.
real
double real
Definition
ascot5.h:85
error.h
Error module for ASCOT5.
a5err
unsigned long int a5err
Simulation error flag.
Definition
error.h:17
plasma_1Dt_offload
void plasma_1Dt_offload(plasma_1Dt_data *data)
Offload data to the accelerator.
Definition
plasma_1Dt.c:140
plasma_1Dt_free
void plasma_1Dt_free(plasma_1Dt_data *data)
Free allocated resources.
Definition
plasma_1Dt.c:124
plasma_1Dt_init
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, real *vtor)
Initialize 1Dt plasma data and check inputs.
Definition
plasma_1Dt.c:22
plasma_1Dt_eval_densandtemp
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:220
plasma_1Dt_eval_flow
a5err plasma_1Dt_eval_flow(real *vflow, real rho, real t, real r, plasma_1Dt_data *pls_data)
Evalate plasma flow along the field lines.
Definition
plasma_1Dt.c:320
plasma_1Dt_eval_temp
a5err plasma_1Dt_eval_temp(real *temp, real rho, real t, int species, plasma_1Dt_data *pls_data)
Evaluate plasma temperature.
Definition
plasma_1Dt.c:165
plasma_1Dt_eval_dens
a5err plasma_1Dt_eval_dens(real *dens, real rho, real t, int species, plasma_1Dt_data *pls_data)
Evaluate plasma density.
Definition
plasma_1Dt.c:193
plasma_1Dt_data
1D plasma parameters on the target
Definition
plasma_1Dt.h:14
plasma_1Dt_data::temp
real * temp
Definition
plasma_1Dt.h:24
plasma_1Dt_data::time
real * time
Definition
plasma_1Dt.h:23
plasma_1Dt_data::znum
int * znum
Definition
plasma_1Dt.h:21
plasma_1Dt_data::anum
int * anum
Definition
plasma_1Dt.h:20
plasma_1Dt_data::dens
real * dens
Definition
plasma_1Dt.h:25
plasma_1Dt_data::mass
real * mass
Definition
plasma_1Dt.h:18
plasma_1Dt_data::rho
real * rho
Definition
plasma_1Dt.h:22
plasma_1Dt_data::n_species
int n_species
Definition
plasma_1Dt.h:17
plasma_1Dt_data::charge
real * charge
Definition
plasma_1Dt.h:19
plasma_1Dt_data::n_rho
int n_rho
Definition
plasma_1Dt.h:15
plasma_1Dt_data::n_time
int n_time
Definition
plasma_1Dt.h:16
plasma_1Dt_data::vtor
real * vtor
Definition
plasma_1Dt.h:26
Generated on
for ASCOT5 by
1.18.0