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
35
44
45void afsi_run(sim_offload_data* sim, Reaction reaction, int n,
46 afsi_data* react1, afsi_data* react2, real mult,
47 dist_5D_offload_data* prod1_offload_data,
48 dist_5D_offload_data* prod2_offload_data,
49 real* prod1_offload_array, real* prod2_offload_array);
50void afsi_test_dist(dist_5D_data* dist1);
52
53#endif
void afsi_test_thermal()
Test thermal source.
Definition afsi.c:561
void afsi_run(sim_offload_data *sim, Reaction reaction, int n, afsi_data *react1, afsi_data *react2, real mult, dist_5D_offload_data *prod1_offload_data, dist_5D_offload_data *prod2_offload_data, real *prod1_offload_array, real *prod2_offload_array)
Calculate fusion source from two arbitrary ion distributions.
Definition afsi.c:55
void afsi_test_dist(dist_5D_data *dist1)
Test distribution.
Definition afsi.c:538
Main header file for ASCOT5.
double real
Definition ascot5.h:85
Header file for boschdale.c.
Reaction
Available reactions.
Definition boschhale.h:13
Header file containing physical and mathematical constants.
Header file for dist_5D.c.
Header file for math.c.
Header file for random.c.
Header file for simulate.c.
Wrapper around input data structures.
Definition afsi.h:39
dist_5D_data * dist_5D
Definition afsi.h:41
afsi_thermal_data * dist_thermal
Definition afsi.h:42
int type
Definition afsi.h:40
Structure for passing in 2D thermal temperature and density.
Definition afsi.h:19
real * density
Definition afsi.h:33
real * temperature
Definition afsi.h:32
Histogram parameters on target.
Definition dist_5D.h:48
Histogram parameters that will be offloaded to target.
Definition dist_5D.h:15
Simulation offload struct.
Definition simulate.h:55