Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
set_insertion_method.h File Reference
Include dependency graph for set_insertion_method.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<int dim, typename PropertiesIndex>
std::shared_ptr< Insertion< dim, PropertiesIndex > > set_insertion_type (std::vector< std::shared_ptr< Distribution > > &size_distribution_object_container, parallel::distributed::Triangulation< dim > &triangulation, DEMSolverParameters< dim > &dem_parameters, const double &maximum_particle_diameter)

Function Documentation

◆ set_insertion_type()

template<int dim, typename PropertiesIndex>
std::shared_ptr< Insertion< dim, PropertiesIndex > > set_insertion_type ( std::vector< std::shared_ptr< Distribution > > & size_distribution_object_container,
parallel::distributed::Triangulation< dim > & triangulation,
DEMSolverParameters< dim > & dem_parameters,
const double & maximum_particle_diameter )

Set up the particle insertion method for the simulation. Creates and configures the appropriate insertion object based on the simulation parameters (e.g., volume insertion, plane insertion, etc.).

Parameters
size_distribution_object_containerContains all distribution for each particle type.
triangulationTriangulation to access the cells in which the particles will be inserted.
dem_parametersDEM parameters declared in the .prm file.
maximum_particle_diameterMaximum particle diameter based on values defined in the parameter handler.
Returns
Shared pointer to the configured insertion object

Definition at line 32 of file set_insertion_method.h.

References DEMSolverParameters< dim >::insertion_info.