|
ASCOT5
|
Header file for nbi.c. More...
Go to the source code of this file.
Data Structures | |
| struct | nbi_injector |
| Structure for describing an NBI injector. More... | |
| struct | nbi_data |
| NBI data consisting of ninj injectors. More... | |
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 *nbi) |
| Free allocated resources. | |
| void | nbi_inject (real *xyz, real *vxyz, nbi_injector *inj, random_data *rng) |
| Sample injected marker's coordinates. | |
| void nbi_free | ( | nbi_data * | data | ) |
| void nbi_inject | ( | real * | xyz, |
| real * | vxyz, | ||
| nbi_injector * | inj, | ||
| random_data * | rng ) |