Reference documentation for deal.II version Git d9b14c2d54 2019-09-14 18:13:29 -0600
Particles::Generators Namespace Reference

## Functions

template<int dim, int spacedim = dim>
void regular_reference_locations (const Triangulation< dim, spacedim > &triangulation, const std::vector< Point< dim >> &particle_reference_locations, ParticleHandler< dim, spacedim > &particle_handler, const Mapping< dim, spacedim > &mapping=StaticMappingQ1< dim, spacedim >::mapping)

## Detailed Description

A namespace that contains all classes that are related to the particle generation.

## ◆ regular_reference_locations()

template<int dim, int spacedim = dim>
 void Particles::Generators::regular_reference_locations ( const Triangulation< dim, spacedim > & triangulation, const std::vector< Point< dim >> & particle_reference_locations, ParticleHandler< dim, spacedim > & particle_handler, const Mapping< dim, spacedim > & mapping = StaticMappingQ1::mapping )

A function that generates particles in every cell at specified particle_reference_locations. The total number of particles that is added to the particle_handler object is the number of locally owned cells of the triangulation times the number of locations in particle_reference_locations. An optional mapping argument can be used to map from particle_reference_locations to the real particle locations.

Parameters
 triangulation The triangulation associated with the particle_handler. particle_reference_locations A vector of positions in the unit cell. Particles will be generated in every cell at these locations. particle_handler The particle handler that will take ownership of the generated particles. mapping An optional mapping object that is used to map reference location in the unit cell to the real cells of the triangulation. If no mapping is provided a MappingQ1 is assumed.

Definition at line 30 of file generators.cc.