Header file for nbi.c.
More...
#include "ascot5.h"
#include "particle.h"
#include "random.h"
Go to the source code of this file.
Header file for nbi.c.
Definition in file nbi.h.
◆ nbi_init_offload()
Load NBI data and prepare parameters for offload.
- Parameters
-
offload_data | pointer to offload data struct |
offload_array | pointer to pointer to offload array |
- Returns
- zero if initialization succeeded.
Definition at line 23 of file nbi.c.
◆ nbi_init()
Initialize NBI data struct on target.
- Parameters
-
nbi | pointer to data struct on target |
offload_data | pointer to offload data struct |
offload_array | pointer to offload array |
Definition at line 59 of file nbi.c.
◆ nbi_free_offload()
Free offload array.
- Parameters
-
offload_data | pointer to offload data struct |
offload_array | pointer to pointer to offload array |
Definition at line 97 of file nbi.c.
◆ nbi_inject()
Sample injected marker's coordinates.
- Parameters
-
inj | pointer to injector data |
xyz | initialized marker's position in cartesian coordinates [m] |
vxyz | initialized marker's velocity in cartesian coordinates [m/s] |
rng | pointer to random number generator data |
Definition at line 114 of file nbi.c.