PLUTO Test Problems
4.4-patch2
|
Initialize particle distrbution, set B.C. and injection. More...
Functions | |
void | Particles_Init (Data *d, Grid *grid) |
void | Particles_LP_InitSpectra (Particle *pl) |
void | Particles_Inject (Data *data, Grid *grid) |
Set the particle distribution to be either Uniformly spaced between x = 1.5 and 3.5, or placed in a Gaussian manner as defined by the function : Particles_SpaceDistrib
If the user defined constant "INIT_RANDOM_DISTRIBUTION" is set to YES, then the gaussian distribution of particles is set.
In case of run with spectra, each macro particle is assigned an initial power law spectra with a steep slope alpha = -9.0 between an energy interval of 0.01 E_0 and 1.0e4 E_0, where E_0 = 0.01 ergs (by default).
void Particles_Init | ( | Data * | d, |
Grid * | grid | ||
) |
Sets initial conditions on particles.
[in] | d | Pointer to the PLUTO data structure. |
[in] | grid | Pointer to the PLUTO grid structure. |
void Particles_Inject | ( | Data * | data, |
Grid * | grid | ||
) |
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. |