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
53
54size_t dist_5D_index(int i_r, int i_phi, int i_z, int i_ppara, int i_pperp,
55 int i_time, int i_q, size_t step_6, size_t step_5,
56 size_t step_4, size_t step_3, size_t step_2,
57 size_t step_1);
58int dist_5D_init(dist_5D_data* data);
59void dist_5D_free(dist_5D_data* data);
62 particle_simd_fo* p_i);
64 particle_simd_gc* p_i);
65
66#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:160
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:87
void dist_5D_free(dist_5D_data *data)
Free allocated resources.
Definition dist_5D.c:61
int dist_5D_init(dist_5D_data *data)
Initializes distribution from offload data.
Definition dist_5D.c:35
void dist_5D_offload(dist_5D_data *data)
Offload data to the accelerator.
Definition dist_5D.c:70
Header file for particle.c.
Histogram parameters.
Definition dist_5D.h:15
real min_time
Definition dist_5D.h:37
real max_r
Definition dist_5D.h:18
real max_pperp
Definition dist_5D.h:34
size_t step_5
Definition dist_5D.h:48
real min_phi
Definition dist_5D.h:21
size_t step_3
Definition dist_5D.h:46
real max_phi
Definition dist_5D.h:22
real min_ppara
Definition dist_5D.h:29
size_t step_1
Definition dist_5D.h:44
real max_z
Definition dist_5D.h:26
real max_time
Definition dist_5D.h:38
size_t step_2
Definition dist_5D.h:45
int n_ppara
Definition dist_5D.h:28
size_t step_6
Definition dist_5D.h:49
int n_pperp
Definition dist_5D.h:32
real min_z
Definition dist_5D.h:25
real max_ppara
Definition dist_5D.h:30
real min_r
Definition dist_5D.h:17
real max_q
Definition dist_5D.h:42
real * histogram
Definition dist_5D.h:51
real min_pperp
Definition dist_5D.h:33
size_t step_4
Definition dist_5D.h:47
real min_q
Definition dist_5D.h:41
Struct representing NSIMD particle markers.
Definition particle.h:210
Struct representing NSIMD guiding center markers.
Definition particle.h:275