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 (nbi_data *data, int ninj, int *id, int *anum, int *znum, real *mass, real *power, real *efrac, real *energy, real *div_h, real *div_v, real *div_halo_v, real *div_halo_h, real *div_halo_frac, int *nbeamlet, real *beamlet_xyz) |
Initialize NBI data struct on target. | |
void | nbi_free (nbi_data *data) |
Free allocated resources. | |
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.
void nbi_free | ( | nbi_data * | data | ) |
void nbi_inject | ( | real * | xyz, |
real * | vxyz, | ||
nbi_injector * | inj, | ||
random_data * | rng ) |