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

Orbital test for dust particles. More...

Functions

void Particles_Init (Data *d, Grid *grid)
 
double Particles_Dust_StoppingTime (double *vg, Particle *p)
 
void Particles_Inject (Data *data, Grid *grid)
 

Detailed Description

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
March 11, 2019

Function Documentation

◆ Particles_Dust_StoppingTime()

double Particles_Dust_StoppingTime ( double *  vg,
Particle *  p 
)

Define the particle stopping time as p->tau_s*f(p). This function should not alter the original value p->tau_s, but only return p->tau_s*f(p), where f(p) is a function of the particle attributes (e.g. position).

Parameters
[in]ppointer to a particle

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