ASCOT5
Loading...
Searching...
No Matches
afsi.h
1
5
#ifndef AFSI_H
6
#define AFSI_H
7
8
#include <
math.h
>
9
#include "
ascot5.h
"
10
#include "
consts.h
"
11
#include "
simulate.h
"
12
#include "
random.h
"
13
#include "
boschhale.h
"
14
#include "
diag/hist.h
"
15
19
typedef
enum
{
20
PPARPPERP,
21
EKINXI
22
} mom_space_basis;
23
27
typedef
struct
{
28
int
type1
;
29
int
type2
;
30
int
thermal1
;
31
int
thermal2
;
32
histogram
*
beam1
;
33
histogram
*
beam2
;
34
real
*
r
;
35
real
*
phi
;
36
real
*
z
;
37
real
*
vol
;
38
size_t
volshape
[3];
39
Reaction
reaction
;
40
real
mult
;
42
}
afsi_data
;
43
44
void
afsi_run
(
sim_data
* sim,
afsi_data
* data,
int
n,
45
histogram
* prod1,
histogram
* prod2);
46
#endif
afsi_run
void afsi_run(sim_data *sim, afsi_data *afsi, int n, histogram *prod1, histogram *prod2)
Calculate fusion source from two arbitrary ion distributions.
Definition
afsi.c:60
ascot5.h
Main header file for ASCOT5.
real
double real
Definition
ascot5.h:85
boschhale.h
Header file for boschdale.c.
Reaction
Reaction
Available reactions.
Definition
boschhale.h:13
consts.h
Header file containing physical and mathematical constants.
hist.h
Header file for hist.c.
math.h
Header file for math.c.
random.h
Header file for random.c.
simulate.h
Header file for simulate.c.
afsi_data
Wrapper around input data structures.
Definition
afsi.h:27
afsi_data::vol
real * vol
Definition
afsi.h:37
afsi_data::z
real * z
Definition
afsi.h:36
afsi_data::beam1
histogram * beam1
Definition
afsi.h:32
afsi_data::r
real * r
Definition
afsi.h:34
afsi_data::thermal1
int thermal1
Definition
afsi.h:30
afsi_data::phi
real * phi
Definition
afsi.h:35
afsi_data::reaction
Reaction reaction
Definition
afsi.h:39
afsi_data::thermal2
int thermal2
Definition
afsi.h:31
afsi_data::type2
int type2
Definition
afsi.h:29
afsi_data::mult
real mult
Definition
afsi.h:40
afsi_data::volshape
size_t volshape[3]
Definition
afsi.h:38
afsi_data::beam2
histogram * beam2
Definition
afsi.h:33
afsi_data::type1
int type1
Definition
afsi.h:28
histogram
Histogram parameters.
Definition
hist.h:52
sim_data
Simulation data struct.
Definition
simulate.h:58
Generated on Mon Apr 14 2025 13:15:18 for ASCOT5 by
1.13.2