Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
find_contact_detection_step.h File Reference
#include <core/serial_solid.h>
#include <deal.II/particles/particle_handler.h>
#include <vector>
Include dependency graph for find_contact_detection_step.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>
void find_particle_contact_detection_step (Particles::ParticleHandler< dim > &particle_handler, const double dt, const double smallest_contact_search_criterion, MPI_Comm &mpi_communicator, std::vector< double > &displacement, const bool parallel_update=true)
template<int dim>
void find_floating_mesh_mapping_step (const double smallest_contact_search_criterion, std::vector< std::shared_ptr< SerialSolid< dim - 1, dim > > > solids)

Function Documentation

◆ find_floating_mesh_mapping_step()

template<int dim>
void find_floating_mesh_mapping_step ( const double smallest_contact_search_criterion,
std::vector< std::shared_ptr< SerialSolid< dim - 1, dim > > > solids )

Find steps for dynamic contact search in particle-floating mesh contacts.

Parameters
smallest_contact_search_criterionA criterion which defines the maximal displacement that a solid face may have displaced
solidsAll solid objects used in the simulation
Returns
Returns true if the maximum cumulative displacement of particles exceeds the threshold and false otherwise

Definition at line 139 of file find_contact_detection_step.cc.

References DEMActionManager::get_action_manager().

◆ find_particle_contact_detection_step()

template<int dim, typename PropertiesIndex>
void find_particle_contact_detection_step ( Particles::ParticleHandler< dim > & particle_handler,
const double dt,
const double smallest_contact_search_criterion,
MPI_Comm & mpi_communicator,
std::vector< double > & displacement,
const bool parallel_update = true )

Find steps for dynamic contact search for particle-particle contacts.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
PropertiesIndexIndex of the properties used within the ParticleHandler.
Parameters
particle_handler
dtDEM time step
smallest_contact_search_criterionA criterion for finding dynamic contact search steps. This value is defined as the minimum of particle-particle and particle-wall displacement threshold values
mpi_communicator
displacementDisplacement of particles since last sorting step
parallel_updateUpdate the identification of the contact detection step in parallel. If this parameter is set to false, the distance will be calculated but the logical OR statement won't be called and a false value will be returned. In essence, this will only update the displacement.
Returns
Returns true if the maximum cumulative displacement of particles exceeds the threshold and false otherwise

Definition at line 11 of file find_contact_detection_step.cc.

References DEMActionManager::get_action_manager().