PLUTO
4.4-patch2
|
Initialize particle distrbution, set B.C. and injection. More...
#include "pluto.h"
Functions | |
void | Particles_Init (Data *d, Grid *grid) |
void | Particles_LP_InitSpectra (Particle *pl) |
void | Particles_Inject (Data *data, Grid *grid) |
This file contains routines to initialize particles on the grid, assign user-defined boundary conditions and inject particles. Particles attributes that can be set are: position, velocity, color. In case of evolution with spectra, the initial spectral profile is also prescribed here.
Sets initial conditions on particles.
[in] | d | Pointer to the PLUTO data structure. |
[in] | grid | Pointer to the PLUTO grid structure. |
Inject particles as you wish.
[in] | data | Pointer to the PLUTO data structure. |
[in] | grid | Pointer to the PLUTO grid structure. |
void Particles_LP_InitSpectra | ( | Particle * | pl | ) |
Initialize spectra for each particle (only for LAGRANGIAN). Specify here the initial distribution of N(E) with E for each particle
[in] | pl | Pointer to the Particle structure. |