ASCOT5
Loading...
Searching...
No Matches
dist_5D.h
Go to the documentation of this file.
1
5#ifndef DIST_5D_H
6#define DIST_5D_H
7
8#include <stdlib.h>
9#include "../ascot5.h"
10#include "../particle.h"
11
44
86
87size_t dist_5D_index(int i_r, int i_phi, int i_z, int i_ppara, int i_pperp,
88 int i_time, int i_q, size_t step_6, size_t step_5,
89 size_t step_4, size_t step_3, size_t step_2,
90 size_t step_1);
91void dist_5D_init(dist_5D_data* dist_data,
92 dist_5D_offload_data* offload_data,
93 real* offload_array);
95 particle_simd_fo* p_i);
97 particle_simd_gc* p_i);
98
99#endif
Main header file for ASCOT5.
double real
Definition ascot5.h:85
void dist_5D_update_gc(dist_5D_data *dist, particle_simd_gc *p_f, particle_simd_gc *p_i)
Update the histogram from guiding center markers.
Definition dist_5D.c:190
void dist_5D_init(dist_5D_data *dist_data, dist_5D_offload_data *offload_data, real *offload_array)
Initializes distribution from offload data.
Definition dist_5D.c:60
size_t dist_5D_index(int i_r, int i_phi, int i_z, int i_ppara, int i_pperp, int i_time, int i_q, size_t step_6, size_t step_5, size_t step_4, size_t step_3, size_t step_2, size_t step_1)
Function for calculating the index in the histogram array.
Definition dist_5D.c:17
void dist_5D_update_fo(dist_5D_data *dist, particle_simd_fo *p_f, particle_simd_fo *p_i)
Update the histogram from full-orbit particles.
Definition dist_5D.c:117
Header file for particle.c.
Histogram parameters on target.
Definition dist_5D.h:48
real min_time
Definition dist_5D.h:70
real max_r
Definition dist_5D.h:51
real max_pperp
Definition dist_5D.h:67
size_t step_5
Definition dist_5D.h:81
real min_phi
Definition dist_5D.h:54
size_t step_3
Definition dist_5D.h:79
real max_phi
Definition dist_5D.h:55
real min_ppara
Definition dist_5D.h:62
size_t step_1
Definition dist_5D.h:77
real max_z
Definition dist_5D.h:59
real max_time
Definition dist_5D.h:71
size_t step_2
Definition dist_5D.h:78
int n_ppara
Definition dist_5D.h:61
size_t step_6
Definition dist_5D.h:82
int n_pperp
Definition dist_5D.h:65
real min_z
Definition dist_5D.h:58
real max_ppara
Definition dist_5D.h:63
real min_r
Definition dist_5D.h:50
real max_q
Definition dist_5D.h:75
real * histogram
Definition dist_5D.h:84
real min_pperp
Definition dist_5D.h:66
size_t step_4
Definition dist_5D.h:80
real min_q
Definition dist_5D.h:74
Histogram parameters that will be offloaded to target.
Definition dist_5D.h:15
Struct representing NSIMD particle markers.
Definition particle.h:210
Struct representing NSIMD guiding center markers.
Definition particle.h:275