ASCOT5
|
Functions to execute bbnbi externally. More...
Go to the source code of this file.
Functions | |
void | bbnbi_simulate (sim_offload_data *sim, int nprt, real t1, real t2, real *B_offload_array, real *plasma_offload_array, real *neutral_offload_array, real *wall_offload_array, int *wall_int_offload_array, real *asigma_offload_array, real *nbi_offload_array, particle_state **p, real *diag_offload_array) |
Simulate NBI injection. | |
Functions to execute bbnbi externally.
Definition in file bbnbi5.h.
void bbnbi_simulate | ( | sim_offload_data * | sim, |
int | nprt, | ||
real | t1, | ||
real | t2, | ||
real * | B_offload_array, | ||
real * | plasma_offload_array, | ||
real * | neutral_offload_array, | ||
real * | wall_offload_array, | ||
int * | wall_int_offload_array, | ||
real * | asigma_offload_array, | ||
real * | nbi_offload_array, | ||
particle_state ** | p, | ||
real * | diag_offload_array ) |
Simulate NBI injection.
This function initializes neutrals and traces them until they have ionized or hit the wall.
sim | pointer to the simulation offload data structure |
nprt | number of markers to be injected |
t1 | time instant when the injector is turned on |
t2 | time instant when the injector is turned off |
B_offload_array | pointer to the magnetic field data |
plasma_offload_array | pointer to the plasma data |
neutral_offload_array | pointer to the neutral data |
wall_offload_array | pointer to the wall data |
wall_int_offload_array | pointer to the wall int data |
asigma_offload_array | pointer to the atomic sigma data |
nbi_offload_array | pointer to the nbi data |
p | pointer to the marker array which is allocated here |
diag_offload_array | pointer to the diagnostics data |