Header file for hist.c.
More...
#include <stdlib.h>
#include "../ascot5.h"
#include "../particle.h"
Go to the source code of this file.
|
| enum | hist_coordinate {
R
, PHI
, Z
, RHO
,
THETA
, PPAR
, PPERP
, PR
,
PPHI
, PZ
, EKIN
, XI
,
MU
, PTOR
, TIME
, CHARGE
} |
| | Quantities that can be used as histogram axis coordinates. More...
|
| |
Header file for hist.c.
Definition in file hist.h.
◆ HIST_ALLDIM
◆ hist_coordinate
Quantities that can be used as histogram axis coordinates.
| Enumerator |
|---|
| R | The R coordinate in cylindrical basis [m].
|
| PHI | The phi coordinate in cylindrical basis [rad].
|
| Z | The z coordinate in cylindrical basis [m].
|
| RHO | Square root of normalized poloidal flux [1].
|
| THETA | Poloidal angle [rad].
|
| PPAR | Momentum component parallel to the magnetic field [kg*m/s].
|
| PPERP | Momentum component orthogonal to the magnetic field [kg*m/s].
|
| PR | Momentum R-component [kg*m/s].
|
| PPHI | Momentum phi-component [kg*m/s].
|
| PZ | Momentum z-component [kg*m/s].
|
| EKIN | Kinetic energy [J].
|
| XI | Pitch [1].
|
| MU | Magnetic moment [J/T].
|
| PTOR | Canonical toroidal angular momentum [kg*m/s].
|
| TIME | Time instant (laboratory time) [s].
|
| CHARGE | Charge state [e].
|
Definition at line 17 of file hist.h.
◆ hist_init()
Initialize the histogram object.
Definition at line 20 of file hist.c.
◆ hist_free()
Free allocated resources.
Definition at line 66 of file hist.c.
◆ hist_offload()
Offload the data to the accelerator.
Definition at line 74 of file hist.c.
◆ hist_update_fo()
Update the histogram in the particle picture.
Definition at line 83 of file hist.c.
◆ hist_update_gc()
Update the histogram in the GC picture.
Definition at line 201 of file hist.c.