Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
Kappa Class Referenceabstract

#include <distribution.h>

Inheritance diagram for Kappa:
Collaboration diagram for Kappa:

Public Member Functions

 Kappa (std::default_random_engine &_rand, Real _mass, Real _charge, Real _w0, Real _maxw0)
 Kappa (std::default_random_engine &_rand)
virtual Particle next_particle ()
Public Member Functions inherited from Distribution
 Distribution (std::default_random_engine &_rand, Real _mass, Real _charge)
 Distribution (std::default_random_engine &_rand)

Protected Member Functions

virtual void generate_lookup ()=0
Real find_v_for_r (Real rand)

Protected Attributes

std::uniform_real_distribution< Realr
std::vector< Reallookup
Real w0
Real maxw0
Protected Attributes inherited from Distribution
Real mass
Real charge
std::default_random_engine & rand

Static Protected Attributes

static const int lookup_size = 65536

Detailed Description

Definition at line 88 of file distribution.h.

Constructor & Destructor Documentation

◆ Kappa() [1/2]

Kappa::Kappa ( std::default_random_engine & _rand,
Real _mass,
Real _charge,
Real _w0,
Real _maxw0 )
inline

Definition at line 91 of file distribution.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Kappa() [2/2]

Kappa::Kappa ( std::default_random_engine & _rand)
inline

Definition at line 94 of file distribution.h.

Here is the call graph for this function:

Member Function Documentation

◆ find_v_for_r()

double Kappa::find_v_for_r ( Real rand)
protected

Definition at line 37 of file distribution.cpp.

Here is the caller graph for this function:

◆ generate_lookup()

virtual void Kappa::generate_lookup ( )
protectedpure virtual

Implemented in Kappa2, and Kappa6.

◆ next_particle()

virtual Particle Kappa::next_particle ( )
inlinevirtual

Implements Distribution.

Definition at line 98 of file distribution.h.

Here is the call graph for this function:

Member Data Documentation

◆ lookup

std::vector<Real> Kappa::lookup
protected

Definition at line 115 of file distribution.h.

◆ lookup_size

const int Kappa::lookup_size = 65536
staticprotected

Definition at line 116 of file distribution.h.

◆ maxw0

Real Kappa::maxw0
protected

Definition at line 118 of file distribution.h.

◆ r

std::uniform_real_distribution<Real> Kappa::r
protected

Definition at line 114 of file distribution.h.

◆ w0

Real Kappa::w0
protected

Definition at line 117 of file distribution.h.


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