ASCOT5
|
Functions for NBI simulation and particle generation. More...
#include <stdlib.h>
#include <math.h>
#include "print.h"
#include "ascot5.h"
#include "consts.h"
#include "physlib.h"
#include "random.h"
#include "nbi.h"
Go to the source code of this file.
Functions | |
int | nbi_init_offload (nbi_offload_data *offload_data, real **offload_array) |
Load NBI data and prepare parameters for offload. | |
void | nbi_init (nbi_data *nbi, nbi_offload_data *offload_data, real *offload_array) |
Initialize NBI data struct on target. | |
void | nbi_free_offload (nbi_offload_data *offload_data, real **offload_array) |
Free offload array. | |
void | nbi_inject (real *xyz, real *vxyz, nbi_injector *inj, random_data *rng) |
Sample injected marker's coordinates. | |
Functions for NBI simulation and particle generation.
Definition in file nbi.c.
int nbi_init_offload | ( | nbi_offload_data * | offload_data, |
real ** | offload_array ) |
void nbi_init | ( | nbi_data * | nbi, |
nbi_offload_data * | offload_data, | ||
real * | offload_array ) |
void nbi_free_offload | ( | nbi_offload_data * | offload_data, |
real ** | offload_array ) |
void nbi_inject | ( | real * | xyz, |
real * | vxyz, | ||
nbi_injector * | inj, | ||
random_data * | rng ) |