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/dist_5D.h
"
15
19
typedef
struct
{
20
int
n_r
;
21
real
min_r
;
22
real
max_r
;
24
int
n_phi
;
25
real
min_phi
;
26
real
max_phi
;
28
int
n_z
;
29
real
min_z
;
30
real
max_z
;
32
real
*
temperature
;
33
real
*
density
;
34
}
afsi_thermal_data
;
35
39
typedef
struct
{
40
int
type
;
41
dist_5D_data
*
dist_5D
;
42
afsi_thermal_data
*
dist_thermal
;
43
}
afsi_data
;
44
45
void
afsi_run
(
sim_data
* sim,
Reaction
reaction,
int
n,
46
afsi_data
* react1,
afsi_data
* react2,
real
mult,
47
dist_5D_data
* prod1,
dist_5D_data
* prod2);
48
void
afsi_test_dist
(
dist_5D_data
* dist1);
49
void
afsi_test_thermal
();
50
51
#endif
afsi_run
void afsi_run(sim_data *sim, Reaction reaction, int n, afsi_data *react1, afsi_data *react2, real mult, dist_5D_data *prod1, dist_5D_data *prod2)
Calculate fusion source from two arbitrary ion distributions.
Definition
afsi.c:53
afsi_test_thermal
void afsi_test_thermal()
Test thermal source.
Definition
afsi.c:553
afsi_test_dist
void afsi_test_dist(dist_5D_data *dist1)
Test distribution.
Definition
afsi.c:530
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.
dist_5D.h
Header file for dist_5D.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:39
afsi_data::dist_5D
dist_5D_data * dist_5D
Definition
afsi.h:41
afsi_data::dist_thermal
afsi_thermal_data * dist_thermal
Definition
afsi.h:42
afsi_data::type
int type
Definition
afsi.h:40
afsi_thermal_data
Structure for passing in 2D thermal temperature and density.
Definition
afsi.h:19
afsi_thermal_data::n_phi
int n_phi
Definition
afsi.h:24
afsi_thermal_data::max_z
real max_z
Definition
afsi.h:30
afsi_thermal_data::max_r
real max_r
Definition
afsi.h:22
afsi_thermal_data::density
real * density
Definition
afsi.h:33
afsi_thermal_data::min_phi
real min_phi
Definition
afsi.h:25
afsi_thermal_data::temperature
real * temperature
Definition
afsi.h:32
afsi_thermal_data::min_z
real min_z
Definition
afsi.h:29
afsi_thermal_data::max_phi
real max_phi
Definition
afsi.h:26
afsi_thermal_data::n_z
int n_z
Definition
afsi.h:28
afsi_thermal_data::min_r
real min_r
Definition
afsi.h:21
afsi_thermal_data::n_r
int n_r
Definition
afsi.h:20
dist_5D_data
Histogram parameters.
Definition
dist_5D.h:15
sim_data
Simulation data struct.
Definition
simulate.h:57
Generated on Tue Dec 3 2024 11:57:29 for ASCOT5 by
1.11.0