4#ifndef lethe_insertion_plane_h
5#define lethe_insertion_plane_h
17template <
int dim,
typename PropertiesIndex>
36 &size_distribution_object_container,
37 const parallel::distributed::Triangulation<dim> &triangulation,
49 insert(Particles::ParticleHandler<dim> &particle_handler,
50 const parallel::distributed::Triangulation<dim> &triangulation,
60 serialize(boost::archive::text_oarchive &ar)
override
89 const parallel::distributed::Triangulation<dim> &triangulation,
90 const Point<3> &plane_point,
91 const Tensor<1, 3> &plane_normal_vector);
100 std::set<typename Triangulation<dim>::active_cell_iterator>
Handles all the parameters declared in the parameter handler file.
std::unordered_map< unsigned int, Point< dim > > cells_centers
unsigned int current_inserting_particle_type
virtual void deserialize(boost::archive::text_iarchive &ar) override
Deserialize an input archive to the plane insertion object.
InsertionPlane(const std::vector< std::shared_ptr< Distribution > > &size_distribution_object_container, const parallel::distributed::Triangulation< dim > &triangulation, const DEMSolverParameters< dim > &dem_parameters)
virtual void insert(Particles::ParticleHandler< dim > &particle_handler, const parallel::distributed::Triangulation< dim > &triangulation, const DEMSolverParameters< dim > &dem_parameters) override
void find_centers_of_inplane_cells()
Store the location of the centers of all the cells that are in the plane.
std::set< typename Triangulation< dim >::active_cell_iterator > plane_cells_for_insertion
void find_inplane_cells(const parallel::distributed::Triangulation< dim > &triangulation, const Point< 3 > &plane_point, const Tensor< 1, 3 > &plane_normal_vector)
Store the cells that are cut by the plane.
double maximum_range_for_randomness
virtual void serialize(boost::archive::text_oarchive &ar) override
Serialize the plane insertion object to an output archive.
int particles_of_each_type_remaining
Insertion(const std::vector< std::shared_ptr< Distribution > > &size_distribution_object_container, const parallel::distributed::Triangulation< dim > &triangulation, const DEMSolverParameters< dim > &dem_parameters)
Carries out the insertion of particles. This is the base class of volume_insertion,...