Gyselalib++
 
Loading...
Searching...
No Matches
ChargeDensityCalculator Class Reference

A class which computes charges density with Kokkos. More...

Inheritance diagram for ChargeDensityCalculator:
IChargeDensityCalculator IChargeDensityCalculator

Public Member Functions

 ChargeDensityCalculator (DConstFieldVx coeffs)
 Create a ChargeDensityCalculator object.
 
DFieldX operator() (DFieldX rho, DConstFieldSpXVx allfdistribu) const final
 Computes the charge density rho from the distribution function.
 
 ChargeDensityCalculator (DConstFieldVxVy coeffs)
 Create a ChargeDensityCalculator object.
 
void operator() (DFieldXY rho, DConstFieldSpXYVxVy allfdistribu) const final
 Computes the charge density rho from the distribution function.
 

Detailed Description

A class which computes charges density with Kokkos.

A class which computes charges density by solving the equation: \( \sum_s \int_{v} q_s f_s(x,v) dv \) where \( q_s \) is the charge of the species \( s \) and \( f_s(x,v) \) is the distribution function.

A class which computes charges density by solving the equation: \( \int_{vx} \int_{vy} q_s f_s(x,y,vx,vy) dvx dvy \) where \( q_s \) is the charge of the species \( s \) and \( f_s(x,y,vx,vy) \) is the distribution function.

Constructor & Destructor Documentation

◆ ChargeDensityCalculator() [1/2]

ChargeDensityCalculator::ChargeDensityCalculator ( DConstFieldVx  coeffs)
explicit

Create a ChargeDensityCalculator object.

Parameters
[in]coeffsThe coefficients of the quadrature.

◆ ChargeDensityCalculator() [2/2]

ChargeDensityCalculator::ChargeDensityCalculator ( DConstFieldVxVy  coeffs)
explicit

Create a ChargeDensityCalculator object.

Parameters
[in]coeffsThe coefficients of the quadrature.

Member Function Documentation

◆ operator()() [1/2]

DFieldX ChargeDensityCalculator::operator() ( DFieldX  rho,
DConstFieldSpXVx  allfdistribu 
) const
finalvirtual

Computes the charge density rho from the distribution function.

Parameters
[in,out]rho
[in]allfdistribu
Returns
rho The charge density.

Implements IChargeDensityCalculator.

◆ operator()() [2/2]

void ChargeDensityCalculator::operator() ( DFieldXY  rho,
DConstFieldSpXYVxVy  allfdistribu 
) const
finalvirtual

Computes the charge density rho from the distribution function.

Parameters
[in,out]rho
[in]allfdistribu

Implements IChargeDensityCalculator.


The documentation for this class was generated from the following files: