![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <distributions.h>
Public Member Functions | |
| NormalDistribution (const double &d_average, const double &d_standard_deviation, const unsigned int &prn_seed, double min_cutoff, double max_cutoff, const Parameters::Lagrangian::DistributionWeightingType &distribution_weighting_type) | |
| virtual std::vector< double > | particle_size_sampling (const unsigned int &number_of_particles) override |
| double | find_min_diameter () override |
| double | find_max_diameter () override |
| void | print_psd_declaration_string (const unsigned int particle_type, const ConditionalOStream &pcout) override |
| Public Member Functions inherited from Distribution | |
| virtual | ~Distribution ()=default |
Private Attributes | |
| double | diameter_average |
| double | standard_deviation |
| std::mt19937 | gen |
Additional Inherited Members | |
| Protected Member Functions inherited from Distribution | |
| Distribution (const Parameters::Lagrangian::DistributionWeightingType &distribution_weighting_type) | |
| Protected Attributes inherited from Distribution | |
| const Parameters::Lagrangian::DistributionWeightingType | weighting_type |
| double | dia_min_cutoff |
| double | dia_max_cutoff |
Definition at line 74 of file distributions.h.
| NormalDistribution::NormalDistribution | ( | const double & | d_average, |
| const double & | d_standard_deviation, | ||
| const unsigned int & | prn_seed, | ||
| double | min_cutoff, | ||
| double | max_cutoff, | ||
| const Parameters::Lagrangian::DistributionWeightingType & | distribution_weighting_type ) |
The constructor stores the parameters necessary to define the normal distribution.
| [in] | d_average | Average diameters for a certain normal distribution. |
| [in] | d_standard_deviation | Standard deviation of the diameter for a certain normal distribution. |
| [in] | prn_seed | Pseudo-random number seed for the diameter generation. |
| [in] | min_cutoff | Minimum cutoff diameter. |
| [in] | max_cutoff | Maximum cutoff diameter. |
| [in] | distribution_weighting_type | Weighting type of the distribution. |
Definition at line 19 of file distributions.cc.
References Distribution::dia_max_cutoff, Distribution::dia_min_cutoff, diameter_average, Distribution::Distribution(), gen, Parameters::Lagrangian::number_based, standard_deviation, and Distribution::weighting_type.
|
overridevirtual |
Find the maximum diameter of the normal distribution.
Implements Distribution.
Definition at line 198 of file distributions.cc.
References Distribution::dia_max_cutoff.
|
overridevirtual |
Find the minimum diameter a normal distribution.
Implements Distribution.
Definition at line 192 of file distributions.cc.
References Distribution::dia_min_cutoff.
|
overridevirtual |
Carries out the size sampling of each particle inserted at an insertion time step for the normal distribution.
| [in] | number_of_particles | Number of particles inserted at a given insertion time step. |
Implements Distribution.
Definition at line 169 of file distributions.cc.
References Distribution::dia_max_cutoff, Distribution::dia_min_cutoff, diameter_average, gen, and standard_deviation.
|
overridevirtual |
Print the declaration string relative to the particle size distribution used.
| particle_type | Particle type of the distribution |
| pcout | Parallel conditional output stream used to print the information |
Implements Distribution.
Definition at line 204 of file distributions.cc.
References Distribution::dia_max_cutoff, Distribution::dia_min_cutoff, diameter_average, and standard_deviation.
|
private |
Average diameter of the normal distribution.
Definition at line 139 of file distributions.h.
|
private |
Random number generator for the diameter selection.
Definition at line 149 of file distributions.h.
|
private |
Standard deviation of the normal distribution.
Definition at line 144 of file distributions.h.