ASPECT
|
Static Public Member Functions | |
static void | declare_parameters (ParameterHandler &prm) |
Static Public Member Functions inherited from aspect::SimulatorAccess< dim > | |
static void | get_composition_values_at_q_point (const std::vector< std::vector< double >> &composition_values, const unsigned int q, std::vector< double > &composition_values_at_q_point) |
Static Public Member Functions inherited from aspect::Plugins::InterfaceBase | |
static void | declare_parameters (ParameterHandler &prm) |
Private Attributes | |
types::particle_index | n_particles |
bool | random_cell_selection |
unsigned int | random_number_seed |
Additional Inherited Members | |
Protected Member Functions inherited from aspect::Particle::Generator::Interface< dim > | |
DEAL_II_DEPRECATED std::pair< Particles::internal::LevelInd, Particle< dim > > | generate_particle (const Point< dim > &position, const types::particle_index id) const |
Particles::ParticleIterator< dim > | insert_particle_at_position (const Point< dim > &position, const types::particle_index id, Particles::ParticleHandler< dim > &particle_handler) const |
Protected Attributes inherited from aspect::Particle::Generator::Interface< dim > | |
std::mt19937 | random_number_generator |
Generate random uniform distribution of particles over entire simulation domain.
Definition at line 38 of file random_uniform.h.
|
overridevirtual |
Generate a set of particles in the given particle handler. The particles are generated with a uniform density in the whole domain.
[in,out] | particle_handler | The particle handler into which the generated particles should be inserted. |
Implements aspect::Particle::Generator::Interface< dim >.
|
static |
Declare the parameters this class takes through input files.
|
overridevirtual |
Read the parameters this class declares from the parameter file.
Reimplemented from aspect::Plugins::InterfaceBase.
|
private |
Number of particles to create
Definition at line 69 of file random_uniform.h.
|
private |
If true, particle numbers per cell are calculated randomly according to their respective probability density. If false, first determine how many particles each cell should have based on the integral of the density over each of the cells, and then once we know how many particles we want on each cell, choose their locations randomly within each cell.
Definition at line 79 of file random_uniform.h.
|
private |
The seed for the random number generator that controls the particle generation.
Definition at line 85 of file random_uniform.h.