ASCOT5
Loading...
Searching...
No Matches
diag.h
Go to the documentation of this file.
1
5#ifndef DIAG_H
6#define DIAG_H
7#include "ascot5.h"
8#include "particle.h"
9#include "B_field.h"
10#include "diag/dist_5D.h"
11#include "diag/dist_6D.h"
12#include "diag/dist_rho5D.h"
13#include "diag/dist_rho6D.h"
14#include "diag/dist_com.h"
15#include "diag/diag_orb.h"
16#include "diag/diag_transcoef.h"
17
39
40int diag_init(diag_data* data, int Nmrk);
41void diag_free(diag_data* data);
42void diag_offload(diag_data* data);
43
44void diag_sum(diag_data* data1, diag_data* data2);
45
47 particle_simd_fo* p_i);
48
50 particle_simd_gc* p_i);
51
53 particle_simd_ml* p_i);
54
55
56#endif
Header file for B_field.c.
Main header file for ASCOT5.
void diag_update_fo(diag_data *data, B_field_data *Bdata, particle_simd_fo *p_f, particle_simd_fo *p_i)
Collects diagnostics when marker represents a particle.
Definition diag.c:144
void diag_offload(diag_data *data)
Offload data to the accelerator.
Definition diag.c:116
void diag_sum(diag_data *data1, diag_data *data2)
Sum offload data arrays as one.
Definition diag.c:244
int diag_init(diag_data *data, int Nmrk)
Initializes diagnostics data.
Definition diag.c:37
void diag_free(diag_data *data)
Free allocated resources.
Definition diag.c:102
void diag_update_ml(diag_data *data, particle_simd_ml *p_f, particle_simd_ml *p_i)
Collects diagnostics when marker represents a magnetic field line.
Definition diag.c:221
void diag_update_gc(diag_data *data, B_field_data *Bdata, particle_simd_gc *p_f, particle_simd_gc *p_i)
Collects diagnostics when marker represents a guiding center.
Definition diag.c:179
Header file for diag_orb.c.
Header file for diag_transcoef.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.
Header file for particle.c.
Magnetic field simulation data.
Definition B_field.h:41
Diagnostics data struct.
Definition diag.h:21
dist_COM_data distCOM
Definition diag.h:35
int distrho5D_collect
Definition diag.h:25
int diagtrcof_collect
Definition diag.h:28
diag_transcoef_data diagtrcof
Definition diag.h:36
int distrho6D_collect
Definition diag.h:26
diag_orb_data diagorb
Definition diag.h:30
dist_rho6D_data distrho6D
Definition diag.h:34
dist_5D_data dist5D
Definition diag.h:31
int dist5D_collect
Definition diag.h:23
int dist6D_collect
Definition diag.h:24
int distCOM_collect
Definition diag.h:27
dist_6D_data dist6D
Definition diag.h:32
dist_rho5D_data distrho5D
Definition diag.h:33
int diagorb_collect
Definition diag.h:22
Orbit diagnostics data struct.
Definition diag_orb.h:42
Transport coefficient diagnostics offload data struct.
Histogram parameters.
Definition dist_5D.h:15
Histogram parameters on target.
Definition dist_6D.h:15
Histogram parameters on target.
Definition dist_com.h:16
Histogram parameters.
Definition dist_rho5D.h:15
Histogram parameters on target.
Definition dist_rho6D.h:15
Struct representing NSIMD particle markers.
Definition particle.h:210
Struct representing NSIMD guiding center markers.
Definition particle.h:275
Struct representing NSIMD field line markers.
Definition particle.h:342