ASCOT5
Loading...
Searching...
No Matches
Functions
bbnbi5.h File Reference

Functions to execute bbnbi externally. More...

#include "ascot5.h"
#include "simulate.h"

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.
 

Detailed Description

Functions to execute bbnbi externally.

Definition in file bbnbi5.h.

Function Documentation

◆ bbnbi_simulate()

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.

Parameters
simpointer to the simulation offload data structure
nprtnumber of markers to be injected
t1time instant when the injector is turned on
t2time instant when the injector is turned off
B_offload_arraypointer to the magnetic field data
plasma_offload_arraypointer to the plasma data
neutral_offload_arraypointer to the neutral data
wall_offload_arraypointer to the wall data
wall_int_offload_arraypointer to the wall int data
asigma_offload_arraypointer to the atomic sigma data
nbi_offload_arraypointer to the nbi data
ppointer to the marker array which is allocated here
diag_offload_arraypointer to the diagnostics data

Definition at line 64 of file bbnbi5.c.