ASCOT5
Loading...
Searching...
No Matches
simulate.h
Go to the documentation of this file.
1
8#ifndef SIMULATE_H
9#define SIMULATE_H
10
11#include "ascot5.h"
12#include "B_field.h"
13#include "E_field.h"
14#include "plasma.h"
15#include "neutral.h"
16#include "wall.h"
17#include "boozer.h"
18#include "mhd.h"
19#include "asigma.h"
20#include "nbi.h"
21#include "diag.h"
22#include "random.h"
23#include "simulate/mccc/mccc.h"
24
46
57typedef struct {
58 /* Input and diagnostic interfaces */
70 /* Metadata */
75 /* Options - general */
80 /* Options - fixed time-step */
86 /* Options - adaptive time-step */
96 /* Options - physics */
111 /* Options - end conditions */
125 /* Metadata */
126 char hdf5_in[256];
127 char hdf5_out[256];
128 char qid[256];
129 char description[256];
135 /* QIDs for inputs if the active inputs are not used */
136 char qid_options[256];
137 char qid_bfield[256];
138 char qid_efield[256];
139 char qid_marker[256];
140 char qid_wall[256];
141 char qid_plasma[256];
142 char qid_neutral[256];
143 char qid_boozer[256];
144 char qid_mhd[256];
145 char qid_asigma[256];
146 char qid_nbi[256];
148} sim_data;
149
150void simulate_init(sim_data* sim);
151
152void simulate(int n_particles, particle_state* p, sim_data* sim);
153
154#endif
Header file for B_field.c.
Header file for E_field.c.
Main header file for ASCOT5.
double real
Definition ascot5.h:85
Header file for asigma.c.
Header file for boozer.c.
Header file for diag.c.
Header file for mccc package.
Header file for mhd.c.
Header file for nbi.c.
Header file for neutral.c.
Header file for plasma.c.
Header file for random.c.
void * random_data
Definition random.h:87
SIMULATION_MODE
Simulaton modes.
Definition simulate.h:30
@ simulate_mode_fo
Definition simulate.h:33
@ simulate_mode_ml
Definition simulate.h:44
@ simulate_mode_gc
Definition simulate.h:36
@ simulate_mode_hybrid
Definition simulate.h:41
void simulate(int n_particles, particle_state *p, sim_data *sim)
Execute marker simulation.
Definition simulate.c:83
void simulate_init(sim_data *sim)
Initialize simulation data struct.
Definition simulate.c:306
Magnetic field simulation data.
Definition B_field.h:41
Electric field simulation data.
Definition E_field.h:36
Atomic reaction simulation data.
Definition asigma.h:53
Data for mapping between the cylindrical and Boozer coordinates.
Definition boozer.h:16
Diagnostics data struct.
Definition diag.h:21
Parameters and data required to evaluate Coulomb collisions.
Definition mccc.h:27
MHD simulation data.
Definition mhd.h:35
NBI data consisting of ninj injectors.
Definition nbi.h:40
Neutral simulation data.
Definition neutral.h:30
General representation of a marker.
Definition particle.h:40
Plasma simulation data.
Definition plasma.h:32
Simulation data struct.
Definition simulate.h:57
int mpi_size
Definition simulate.h:133
int enable_orbfol
Definition simulate.h:97
real endcond_min_ekin
Definition simulate.h:118
int endcond_torandpol
Definition simulate.h:123
real endcond_max_rho
Definition simulate.h:117
int record_mode
Definition simulate.h:78
int sim_mode
Definition simulate.h:76
int disable_energyccoll
Definition simulate.h:103
real ada_max_drho
Definition simulate.h:91
real ada_tol_clmbcol
Definition simulate.h:89
plasma_data plasma_data
Definition simulate.h:61
mhd_data mhd_data
Definition simulate.h:65
real endcond_max_tororb
Definition simulate.h:121
int enable_atomic
Definition simulate.h:100
int disable_gcdiffccoll
Definition simulate.h:107
real endcond_min_thermal
Definition simulate.h:119
real endcond_max_mileage
Definition simulate.h:114
real fix_usrdef_val
Definition simulate.h:82
E_field_data E_data
Definition simulate.h:60
int mpi_rank
Definition simulate.h:132
int disable_pitchccoll
Definition simulate.h:105
int enable_mhd
Definition simulate.h:99
int endcond_active
Definition simulate.h:112
int fix_usrdef_use
Definition simulate.h:81
mccc_data mccc_data
Definition simulate.h:72
real endcond_max_polorb
Definition simulate.h:122
random_data random_data
Definition simulate.h:71
neutral_data neutral_data
Definition simulate.h:62
int fix_gyrodef_nstep
Definition simulate.h:83
real endcond_max_cputime
Definition simulate.h:115
boozer_data boozer_data
Definition simulate.h:64
real endcond_min_rho
Definition simulate.h:116
real endcond_lim_simtime
Definition simulate.h:113
int enable_ada
Definition simulate.h:77
B_field_data B_data
Definition simulate.h:59
wall_data wall_data
Definition simulate.h:63
int reverse_time
Definition simulate.h:109
int mpi_root
Definition simulate.h:131
real ada_max_dphi
Definition simulate.h:93
asigma_data asigma_data
Definition simulate.h:66
int enable_clmbcol
Definition simulate.h:98
int disable_gctransform
Definition simulate.h:101
real ada_tol_orbfol
Definition simulate.h:87
diag_data diag_data
Definition simulate.h:68
nbi_data nbi_data
Definition simulate.h:67
Wall model simulation data.
Definition wall.h:31
Header file for wall.c.