PLUTO  4.4-patch2
Functions
particles_init.c File Reference

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)
 

Detailed Description

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.

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
B. Vaidya (bvaid.nosp@m.ya@u.nosp@m.nito..nosp@m.it)
D. Mukherjee
Date
March 21, 2021

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.