XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
coarse_graining.hpp File Reference

Contains functions related to coarse graining of particle weights. More...

#include "globals.hpp"
#include "sml.hpp"
#include "magnetic_field.hpp"
#include "grid.hpp"
#include "particles.hpp"
#include "species.hpp"
#include "electric_field.hpp"
#include "plasma.hpp"
#include "domain_decomposition.hpp"
Include dependency graph for coarse_graining.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void coarse_graining_of_all_species (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, double rate)
 Coarse grain the weights of all species. More...
 
void coarse_graining_of_one_species (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Species< DeviceType > &species, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, double rate)
 

Detailed Description

Contains functions related to coarse graining of particle weights.

Function Documentation

void coarse_graining_of_all_species ( const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
Plasma plasma,
const VelocityGrid vgrid,
const DomainDecomposition< DeviceType > &  pol_decomp,
const double  rate 
)

Coarse grain the weights of all species.

This function calculates and updates the weights of all non-adiabatic species based on coarse graining.

Parameters
gridGrid object containing information about the grid.
magnetic_fieldMagneticField object containing magnetic field information.
plasmaPlasma object containing plasma data.
vgridVelocityGrid object containing velocity grid information.
pol_decompDomainDecomposition object containing domain decomposition information.
rateCoarse graining rate.

Here is the call graph for this function:

Here is the caller graph for this function:

void coarse_graining_of_one_species ( const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
Species< DeviceType > &  species,
const VelocityGrid vgrid,
const DomainDecomposition< DeviceType > &  pol_decomp,
double  rate 
)