Header file for dist_5D.c.
More...
#include <stdlib.h>
#include "../ascot5.h"
#include "../particle.h"
Go to the source code of this file.
|
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.
|
|
void | dist_5D_init (dist_5D_data *dist_data, dist_5D_offload_data *offload_data, real *offload_array) |
| Initializes distribution from offload data.
|
|
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.
|
|
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.
|
|
Header file for dist_5D.c.
Definition in file dist_5D.h.
◆ dist_5D_index()
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 at line 17 of file dist_5D.c.
◆ dist_5D_init()
Initializes distribution from offload data.
- Parameters
-
dist_data | pointer to data struct |
offload_data | pointer to offload data struct |
offload_array | offload array |
Definition at line 60 of file dist_5D.c.
◆ dist_5D_update_fo()
Update the histogram from full-orbit particles.
This function updates the histogram from the particle data. Bins are calculated as vector op and histogram is updates as an atomic operation to avoid race conditions.
- Parameters
-
dist | pointer to distribution parameter struct |
p_f | pointer to SIMD particle struct at the end of current time step |
p_i | pointer to SIMD particle struct at the start of current time step |
Definition at line 117 of file dist_5D.c.
◆ dist_5D_update_gc()
Update the histogram from guiding center markers.
This function updates the histogram from the marker data. Bins are calculated as vector op and histogram is updates as an atomic operation to avoid race conditions.
- Parameters
-
dist | pointer to distribution parameter struct |
p_f | pointer to SIMD gc struct at the end of current time step |
p_i | pointer to SIMD gc struct at the start of current time step |
Definition at line 190 of file dist_5D.c.