PLUTO  4.4-patch2
Functions
particles_cr_force.c File Reference

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)
 

Detailed Description

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.

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
References
  • "MAGNETOHYDRODYNAMIC-PARTICLE-IN-CELL METHOD FOR COUPLING COSMIC RAYS WITH A THERMAL PLASMA: APPLICATION TO NON-RELATIVISTIC SHOCKS"
    Bai et al., ApJ (2015) 809, 55
Date
Aug 27, 2020

Function Documentation

◆ Particles_CR_ComputeCurrent()

void Particles_CR_ComputeCurrent ( const Data d,
Grid grid 
)

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.

Parameters
[in]V3D array of primitive variables, V[nv][k][j][i]
[in,out]dPLUTO Data structure, containing d->Fcr[]
[in]gridarray of grid structures

◆ Particles_CR_ComputeForce()

void Particles_CR_ComputeForce ( Data_Arr  V,
const Data data,
Grid grid 
)
Parameters
[in]V3D array of primitive variables, V[nv][k][j][i]
[in,out]dataPLUTO Data structure, containing d->Fcr[]
[in]gridarray of grid structures

◆ Particles_CR_Current()

void Particles_CR_Current ( Particle *  p,
double *  qd 
)

Compute charge and current to be deposited on the grid.