PLUTO  4.4-patch2
Functions
particles_lp_spectra.c File Reference

Tools needed to compute the quantities required to evolve the spectra and estimate the Emission coefficient. More...

#include "pluto.h"

Functions

void ApplyLorentzBoost (double, double *, double *, double *)
 
void Particles_LP_UpdateSpectra (Data *d, double dt, Grid *grid)
 
void Particles_LP_Get_4vel (double *v3, double *lf, double *u4)
 
void Particles_LP_Get_3mag (double *b4, double lf, double *v3)
 

Detailed Description

Authors
B. Vaidya (bvaid.nosp@m.ya@i.nosp@m.iti.a.nosp@m.c.in)
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
D. Mukherjee (dipan.nosp@m.jan@.nosp@m.iucaa.nosp@m..in)
Date
July 29, 2019

Function Documentation

◆ ApplyLorentzBoost()

void ApplyLorentzBoost ( double  vboost,
double *  nboost,
double *  unpf,
double *  pf 
)

Lorentz transformation from one frame to other.

Parameters
[in]vboostVelocity of the Boost
[in]nboost1D Directional Vector of the boost.
[in]unpfFour vector of the quantity that needs to be transformed
[out]pfFour vector of the quantity in the transformed frame.

◆ Particles_LP_Get_3mag()

void Particles_LP_Get_3mag ( double *  b4,
double  lf,
double *  v3 
)

Computes the three components of magnetic field vector. from magnetic field four vector.

Parameters
[in]b4Output four magnetic field vector.
[in]lfLorentz factor.
[out]v31D Primitive vector with Magnetic field.

◆ Particles_LP_Get_4vel()

void Particles_LP_Get_4vel ( double *  v3,
double *  lf,
double *  u4 
)

Compute Four velocity from three velocity.

Parameters
[in]v31D Array of primitive variables.
[out]lfLorentz factor.
[out]u4Output four velocity vector.

◆ Particles_LP_UpdateSpectra()

void Particles_LP_UpdateSpectra ( Data d,
double  dt,
Grid grid 
)

Computes the spectral evolution of the particle. It detects if the particle has crossed the shock or not. If it has then the spectra is updated based on the compression ratio value of the shock. Otherwise, particle spectra is just updated accounting for radiative losses.

Parameters
[in]dPointer to the data structure.
[in]plPointer to the Particle structure.
[in]gridPointer to the grid structure.
[in]dtAdvection Time step.