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 | |
std::array< double, dim > | P_min |
std::array< double, dim > | P_max |
Point< dim > | P_center |
unsigned int | radial_layers |
types::particle_index | n_particles |
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 radial distribution of particles over the entire simulation domain. Uniform here means the particles will be generated with an equal spacing in each spherical spatial dimension, i.e. the particles are created at coordinates that increase linearly with equal spacing in radius, colatitude and longitude around a certain center point. 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 51 of file uniform_radial.h.
|
overridevirtual |
Generate a uniformly distributed set of particles in a circular or spherical 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 |
The minimum spherical coordinates of the particle region, i.e. the first radius, colatitude and longitude from the given center position P_center where particles are generated.
Definition at line 84 of file uniform_radial.h.
|
private |
The maximum spherical coordinates of the particle region, i.e. the last radius, colatitude and longitude from the given center position P_center where particles are generated.
Definition at line 91 of file uniform_radial.h.
|
private |
The center of the particle region. Defaults to the origin.
Definition at line 96 of file uniform_radial.h.
|
private |
The number of radial layers of particles that will be generated. In particular this parameter determines the radial spacing between particle layers as Pmax[0] - P_min[0] / radial_layers.
Definition at line 103 of file uniform_radial.h.
|
private |
Number of particles to create in total. To preserve the equal spacing (in spherical coordinates) between particles, the number of actually generated particles can differ slightly from this number.
Definition at line 111 of file uniform_radial.h.