![]() |
AlmaBTE
1.3
A solver of the space- and time-dependent Boltzmann transport equation for phonons
|
Objects of this class allow us to sample from a discrete distribution over a q-point grid with a PMF proportional to cv / tau, where cv is the contribution to the specific heat and tau is the relaxation time. More...
#include <sampling.hpp>


Public Member Functions | |
| BE_derivative_distribution (const Gamma_grid &grid, const Eigen::Ref< const Eigen::ArrayXXd > &w, double T, randutils::mt19937_rng &_rng) | |
| Constructor. More... | |
Public Member Functions inherited from alma::Grid_distribution | |
| Grid_distribution (const Gamma_grid &grid, randutils::mt19937_rng &_rng) | |
| Constructor. More... | |
| virtual | ~Grid_distribution () |
| Trivial virtual destructor. | |
| void | fill_cumulative (const std::vector< double > &p) |
| Fill the 'cumulative' vector. More... | |
| std::array< std::size_t, 2 > | sample () |
| Draw a sample from the distribution. More... | |
Additional Inherited Members | |
Public Attributes inherited from alma::Grid_distribution | |
| const std::size_t | nqpoints |
| Number of q points. | |
| const std::size_t | nmodes |
| Number of phonon modes at each q point. | |
Objects of this class allow us to sample from a discrete distribution over a q-point grid with a PMF proportional to cv / tau, where cv is the contribution to the specific heat and tau is the relaxation time.
| alma::BE_derivative_distribution::BE_derivative_distribution | ( | const Gamma_grid & | grid, |
| const Eigen::Ref< const Eigen::ArrayXXd > & | w, | ||
| double | T, | ||
| randutils::mt19937_rng & | _rng | ||
| ) |
Constructor.
| [in] | grid | - phonon spectrum on a regular grid |
| [in] | w | - scattering rates |
| [in] | T | - the temperature in K |
| [in,out] | _rng | - a random number generator |