Tools needed to compute the quantities required to evolve the spectra and estimate the Emission coefficient.
More...
◆ ApplyLorentzBoost()
void ApplyLorentzBoost |
( |
double |
vboost, |
|
|
double * |
nboost, |
|
|
double * |
unpf, |
|
|
double * |
pf |
|
) |
| |
Lorentz transformation from one frame to other.
- Parameters
-
[in] | vboost | Velocity of the Boost |
[in] | nboost | 1D Directional Vector of the boost. |
[in] | unpf | Four vector of the quantity that needs to be transformed |
[out] | pf | Four 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] | b4 | Output four magnetic field vector. |
[in] | lf | Lorentz factor. |
[out] | v3 | 1D 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] | v3 | 1D Array of primitive variables. |
[out] | lf | Lorentz factor. |
[out] | u4 | Output 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] | d | Pointer to the data structure. |
[in] | pl | Pointer to the Particle structure. |
[in] | grid | Pointer to the grid structure. |
[in] | dt | Advection Time step. |