template<int dim, typename PropertiesIndex>
class Insertion< dim, PropertiesIndex >
Base interface for classes that carry out the insertion of particles in the system.
- Template Parameters
-
| dim | An integer that denotes the number of spatial dimensions. |
| PropertiesIndex | Index of the properties used within the ParticleHandler. |
Definition at line 32 of file insertion.h.
template<int dim, typename PropertiesIndex>
| Insertion< dim, PropertiesIndex >::Insertion |
( |
const std::vector< std::shared_ptr< Distribution > > & | size_distribution_object_container, |
|
|
const parallel::distributed::Triangulation< dim > & | triangulation, |
|
|
const DEMSolverParameters< dim > & | dem_parameters ) |
template<int dim, typename PropertiesIndex>
| void Insertion< dim, PropertiesIndex >::assign_particle_properties |
( |
const DEMSolverParameters< dim > & | dem_parameters, |
|
|
const unsigned int & | inserted_this_step_this_proc, |
|
|
const unsigned int & | current_inserting_particle_type, |
|
|
const std::vector< Point< dim > > & | insertion_points, |
|
|
std::vector< std::vector< double > > & | particle_properties ) |
|
protected |
template<int dim, typename PropertiesIndex>
| virtual void Insertion< dim, PropertiesIndex >::deserialize |
( |
boost::archive::text_iarchive & | ar | ) |
|
|
pure virtual |
Deserialize an input archive to the insertion object. Is being used when restarting a simulation. This function is overridden by volume_insertion, plane_insertion, list_insertion and from_file_insertion classes.
- Parameters
-
| ar | Input archive where the attributes are stored. |
Implemented in InsertionFile< dim, PropertiesIndex >, InsertionList< dim, PropertiesIndex >, InsertionPacked< dim, PropertiesIndex >, InsertionPlane< dim, PropertiesIndex >, and InsertionVolume< dim, PropertiesIndex >.
template<int dim, typename PropertiesIndex>
| void Insertion< dim, PropertiesIndex >::find_cells_in_removing_box |
( |
const parallel::distributed::Triangulation< dim > & | triangulation | ) |
|
|
protected |
Find all cells that are completely and partially inside de the clearing box. For the cell completely inside the box, all the particles will be deleted. For those partially inside, fine verification is required.
- Parameters
-
| triangulation | Triangulation to access the cells in which the particles deleted. |
Definition at line 134 of file insertion.cc.
References edge_of_removal_box, in_removal_box, p_max, p_min, and point_nd_to_3d().
template<int dim, typename PropertiesIndex>
| virtual void Insertion< dim, PropertiesIndex >::insert |
( |
Particles::ParticleHandler< dim > & | particle_handler, |
|
|
const parallel::distributed::Triangulation< dim > & | triangulation, |
|
|
const DEMSolverParameters< dim > & | dem_parameters ) |
|
pure virtual |
This function is overridden by the volume_insertion, plane_insertion, list_insertion and file_insertion classes.
- Parameters
-
| particle_handler | The particle handler of particles which are being inserted |
| triangulation | Triangulation to access the cells in which the particles are inserted |
| dem_parameters | DEM parameters declared in the .prm file |
Implemented in InsertionFile< dim, PropertiesIndex >, InsertionList< dim, PropertiesIndex >, InsertionPacked< dim, PropertiesIndex >, InsertionPlane< dim, PropertiesIndex >, and InsertionVolume< dim, PropertiesIndex >.
template<int dim, typename PropertiesIndex>
| void Insertion< dim, PropertiesIndex >::remove_particles_in_box |
( |
Particles::ParticleHandler< dim > & | particle_handler | ) |
|
|
protected |
template<int dim, typename PropertiesIndex>
| virtual void Insertion< dim, PropertiesIndex >::serialize |
( |
boost::archive::text_oarchive & | ar | ) |
|
|
pure virtual |
Serialize the insertion object to an output archive. Is being used when checkpointing a simulation. This function is overridden by volume_insertion, plane_insertion, list_insertion and file_insertion classes.
- Parameters
-
| ar | Output archive where the attributes are stored. |
Implemented in InsertionFile< dim, PropertiesIndex >, InsertionList< dim, PropertiesIndex >, InsertionPacked< dim, PropertiesIndex >, InsertionPlane< dim, PropertiesIndex >, and InsertionVolume< dim, PropertiesIndex >.