PLUTO
4.4-patch2
|
Compute CR-related quantities (like force) from the particles to the grid. More...
#include "pluto.h"
Functions | |
void | Particles_CR_Current (Particle *p, double *qd) |
void | Particles_CR_ComputeForce (Data_Arr V, const Data *data, Grid *grid) |
void | Particles_CR_ComputeCurrent (const Data *d, Grid *grid) |
This routine is used to compute 3D arrays of cell-centered quantities:
Current and charge density are first deposited from particles to the grid. With these, we compute Fcr and Ecr.
Compute Fcr (Lorentz force felt by particles and fluid) at cell centers. Force is computed by depositing charge and current from individual particles to the grid.
[in] | V | 3D array of primitive variables, V[nv][k][j][i] |
[in,out] | d | PLUTO Data structure, containing d->Fcr[] |
[in] | grid | array of grid structures |
[in] | V | 3D array of primitive variables, V[nv][k][j][i] |
[in,out] | data | PLUTO Data structure, containing d->Fcr[] |
[in] | grid | array of grid structures |
void Particles_CR_Current | ( | Particle * | p, |
double * | qd | ||
) |
Compute charge and current to be deposited on the grid.