30 int abscissa_n_slots[7];
31 abscissa_n_slots[0] = dist->
n_r;
32 abscissa_n_slots[1] = dist->
n_phi;
33 abscissa_n_slots[2] = dist->
n_z;
34 abscissa_n_slots[3] = dist->
n_ppara;
35 abscissa_n_slots[4] = dist->
n_pperp;
36 abscissa_n_slots[5] = dist->
n_time;
37 abscissa_n_slots[6] = dist->
n_q;
39 double abscissa_min[7];
40 abscissa_min[0] = dist->
min_r;
42 abscissa_min[2] = dist->
min_z;
46 abscissa_min[6] = dist->
min_q;
48 double abscissa_max[7];
49 abscissa_max[0] = dist->
max_r;
51 abscissa_max[2] = dist->
max_z;
55 abscissa_max[6] = dist->
max_q;
57 char* abscissa_names[] = {
"r",
"phi",
"z",
"ppar",
"pperp",
"time",
59 char* abscissa_units[] = {
"m",
"deg",
"m",
"kg*m/s",
"kg*m/s",
"s",
"e" };
60 char* ordinate_names[] = {
"distribution" };
61 char* ordinate_units[] = {
"s/(m^5*kg^2*deg*e)" };
65 f, path, abscissa_dim, ordinate_dim, abscissa_n_slots, abscissa_min,
66 abscissa_max, abscissa_units, abscissa_names, ordinate_units,
84 int abscissa_n_slots[8];
85 abscissa_n_slots[0] = dist->
n_r;
86 abscissa_n_slots[1] = dist->
n_phi;
87 abscissa_n_slots[2] = dist->
n_z;
88 abscissa_n_slots[3] = dist->
n_pr;
89 abscissa_n_slots[4] = dist->
n_pphi;
90 abscissa_n_slots[5] = dist->
n_pz;
91 abscissa_n_slots[6] = dist->
n_time;
92 abscissa_n_slots[7] = dist->
n_q;
94 double abscissa_min[8];
95 abscissa_min[0] = dist->
min_r;
97 abscissa_min[2] = dist->
min_z;
98 abscissa_min[3] = dist->
min_pr;
100 abscissa_min[5] = dist->
min_pz;
102 abscissa_min[7] = dist->
min_q;
104 double abscissa_max[8];
105 abscissa_max[0] = dist->
max_r;
107 abscissa_max[2] = dist->
max_z;
108 abscissa_max[3] = dist->
max_pr;
110 abscissa_max[5] = dist->
max_pz;
112 abscissa_max[7] = dist->
max_q;
114 char* abscissa_names[] = {
"r",
"phi",
"z",
"pr",
"pphi",
"pz",
"time",
116 char* abscissa_units[] = {
"m",
"deg",
"m",
"kg*m/s",
"kg*m/s",
"kg*m/s",
118 char* ordinate_names[] = {
"distribution" };
119 char* ordinate_units[] = {
"s/(m^6*kg^3*deg*e)" };
123 f, path, abscissa_dim, ordinate_dim, abscissa_n_slots, abscissa_min,
124 abscissa_max, abscissa_units, abscissa_names, ordinate_units,
138 int abscissa_dim = 7;
139 int ordinate_dim = 1;
141 int abscissa_n_slots[7];
142 abscissa_n_slots[0] = dist->
n_rho;
143 abscissa_n_slots[1] = dist->
n_theta;
144 abscissa_n_slots[2] = dist->
n_phi;
145 abscissa_n_slots[3] = dist->
n_ppara;
146 abscissa_n_slots[4] = dist->
n_pperp;
147 abscissa_n_slots[5] = dist->
n_time;
148 abscissa_n_slots[6] = dist->
n_q;
150 double abscissa_min[7];
151 abscissa_min[0] = dist->
min_rho;
157 abscissa_min[6] = dist->
min_q;
159 double abscissa_max[7];
160 abscissa_max[0] = dist->
max_rho;
166 abscissa_max[6] = dist->
max_q;
168 char* abscissa_names[] = {
"rho",
"theta",
"phi",
"ppar",
"pperp",
"time",
170 char* abscissa_units[] = {
"1",
"deg",
"deg",
"kg*m/s",
"kg*m/s",
172 char* ordinate_names[] = {
"distribution" };
173 char* ordinate_units[] = {
"s/(m^2*kg^2*deg^2*e)" };
177 f, path, abscissa_dim, ordinate_dim, abscissa_n_slots, abscissa_min,
178 abscissa_max, abscissa_units, abscissa_names, ordinate_units,
192 int abscissa_dim = 8;
193 int ordinate_dim = 1;
195 int abscissa_n_slots[8];
196 abscissa_n_slots[0] = dist->
n_rho;
197 abscissa_n_slots[1] = dist->
n_theta;
198 abscissa_n_slots[2] = dist->
n_phi;
199 abscissa_n_slots[3] = dist->
n_pr;
200 abscissa_n_slots[4] = dist->
n_pphi;
201 abscissa_n_slots[5] = dist->
n_pz;
202 abscissa_n_slots[6] = dist->
n_time;
203 abscissa_n_slots[7] = dist->
n_q;
205 double abscissa_min[8];
206 abscissa_min[0] = dist->
min_rho;
209 abscissa_min[3] = dist->
min_pr;
211 abscissa_min[5] = dist->
min_pz;
213 abscissa_min[7] = dist->
min_q;
215 double abscissa_max[8];
216 abscissa_max[0] = dist->
max_rho;
219 abscissa_max[3] = dist->
max_pr;
221 abscissa_max[5] = dist->
max_pz;
223 abscissa_max[7] = dist->
max_q;
225 char* abscissa_names[] = {
"rho",
"theta",
"phi",
"pr",
"pphi",
"pz",
227 char* abscissa_units[] = {
"1",
"deg",
"deg",
"kg*m/s",
"kg*m/s",
"kg*m/s",
229 char* ordinate_names[] = {
"distribution" };
230 char* ordinate_units[] = {
"s^2/(m^3*kg^3*deg^2*e)" };
234 f, path, abscissa_dim, ordinate_dim, abscissa_n_slots, abscissa_min,
235 abscissa_max, abscissa_units, abscissa_names, ordinate_units,
250 int abscissa_dim = 3;
251 int ordinate_dim = 1;
253 int abscissa_n_slots[3];
254 abscissa_n_slots[0] = dist->
n_mu;
255 abscissa_n_slots[1] = dist->
n_Ekin;
256 abscissa_n_slots[2] = dist->
n_Ptor;
258 double abscissa_min[3];
263 double abscissa_max[3];
268 char* abscissa_names[] = {
"mu",
"ekin",
"ptor"};
269 char* abscissa_units[] = {
"eV/T",
"eV",
"eV*s"};
270 char* ordinate_names[] = {
"distribution" };
271 char* ordinate_units[] = {
"T/(eV**3*s)"};
275 f, path, abscissa_dim, ordinate_dim, abscissa_n_slots, abscissa_min,
276 abscissa_max, abscissa_units, abscissa_names, ordinate_units,
Main header file for ASCOT5.
Header file containing physical and mathematical constants.
#define CONST_E
Elementary charge [C]
Header file for dist_5D.c.
Header file for dist_6D.c.
Header file for dist_com.c.
Header file for dist_rho5D.c.
Header file for dist_rho6D.c.
int hdf5_dist_write_rho6D(hid_t f, char *path, dist_rho6D_data *dist)
Write rho 6D distribution to an existing result group.
int hdf5_dist_write_COM(hid_t f, char *path, dist_COM_data *dist)
Write constants-of-motion distribution to an existing result group.
int hdf5_dist_write_5D(hid_t f, char *path, dist_5D_data *dist)
Write 5D distribution to an existing result group.
int hdf5_dist_write_rho5D(hid_t f, char *path, dist_rho5D_data *dist)
Write rho 5D distribution to an existing result group.
int hdf5_dist_write_6D(hid_t f, char *path, dist_6D_data *dist)
Write 6D distribution to an existing result group.
Header file for hdf5_helpers.h.
int hdf5_histogram_write_uniform_double(hid_t f, const char *path, int abscissaDim, int ordinateDim, int *abscissaNslots, double *abscissaMin, double *abscissaMax, char **abscissaUnits, char **abscissaNames, char **ordinateUnits, char **ordinateNames, double *ordinate)
Write a histogram with uniform grid to HDF5 file.
Header file for hdf5_histogram.c.
#define math_rad2deg(a)
Convert radians to degrees.
Histogram parameters on target.
Histogram parameters on target.
Histogram parameters on target.