PLUTO Test Problems  4.4-patch2
Functions
particles_init.c File Reference

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)
 

Detailed Description

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).

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
B. Vaidya (bvaid.nosp@m.ya@u.nosp@m.nito..nosp@m.it)
Date
May 30, 2018

Function Documentation

◆ Particles_Init()

void Particles_Init ( Data *  d,
Grid *  grid 
)

Sets initial conditions on particles.

Parameters
[in]dPointer to the PLUTO data structure.
[in]gridPointer to the PLUTO grid structure.

◆ Particles_Inject()

void Particles_Inject ( Data *  data,
Grid *  grid 
)

Inject particles as you wish.

Parameters
[in]dataPointer to the PLUTO data structure.
[in]gridPointer to the PLUTO grid structure.

◆ Particles_LP_InitSpectra()

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

Parameters
[in]plPointer to the Particle structure.