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 |
Point< dim > | P_min |
Point< dim > | P_max |
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 a uniform distribution of particles in a box region in the model domain. Uniform here means the particles will be generated with an equal spacing in each spatial dimension. Note that in order to produce a regular distribution the number of generated particles might not exactly match the one specified in the input file.
Definition at line 43 of file uniform_box.h.
|
overridevirtual |
Generate a uniformly randomly distributed set of particles in a box-like subdomain of the global 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 initial particles to create.
Definition at line 73 of file uniform_box.h.
|
private |
The minimum coordinates of the particle region, i.e. one corner of the n-dimensional box region in which particles are generated.
Definition at line 79 of file uniform_box.h.
|
private |
The maximum coordinates of the particle region, i.e. the opposite corner of the n-dimensional box region in which particles are generated.
Definition at line 86 of file uniform_box.h.