![]() |
AlmaBTE
1.3
A solver of the space- and time-dependent Boltzmann transport equation for phonons
|
planar_source_distribution Emission probability for outgoing modes is proportional to heat capacity * normal velocity. More...
#include <sampling.hpp>
Public Member Functions | |
planar_source_distribution (const Gamma_grid &grid, double Tref, const Eigen::Ref< const Eigen::Vector3d > &normal, randutils::mt19937_rng &_rng) | |
Constructor. More... | |
![]() | |
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 | |
![]() | |
const std::size_t | nqpoints |
Number of q points. | |
const std::size_t | nmodes |
Number of phonon modes at each q point. | |
planar_source_distribution Emission probability for outgoing modes is proportional to heat capacity * normal velocity.
alma::planar_source_distribution::planar_source_distribution | ( | const Gamma_grid & | grid, |
double | Tref, | ||
const Eigen::Ref< const Eigen::Vector3d > & | normal, | ||
randutils::mt19937_rng & | _rng | ||
) |
Constructor.
[in] | grid | - phonon spectrum on a regular grid |
[in] | Tref | - temperature in K at which to compute heat capacities |
[in] | normal | - a normal vector pointing out of the source |
[in,out] | _rng | - a random number generator |