ASCOT5
Loading...
Searching...
No Matches
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_data *sim, int nprt, real t1, real t2, particle_state **p)
 Simulate NBI injection.
 

Detailed Description

Functions to execute bbnbi externally.

Definition in file bbnbi5.h.

Function Documentation

◆ bbnbi_simulate()

void bbnbi_simulate ( sim_data * sim,
int nprt,
real t1,
real t2,
particle_state ** p )

Simulate NBI injection.

This function initializes neutrals and traces them until they have ionized or hit the wall.

Parameters
simpointer to the simulation data structure
nprtnumber of markers to be injected
t1time instant when the injector is turned on
t2time instant when the injector is turned off
ppointer to the marker array which is allocated here

Definition at line 56 of file bbnbi5.c.