Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
ParticlesForceChainsBase< dim, PropertiesIndex > Class Template Referenceabstract

#include <force_chains_visualization.h>

Inheritance diagram for ParticlesForceChainsBase< dim, PropertiesIndex >:
[legend]

Public Member Functions

virtual ~ParticlesForceChainsBase ()=default
virtual void write_force_chains (const DEMSolverParameters< dim > &dem_parameters, PVDHandler &pvd_handler, const MPI_Comm mpi_communicator, const std::string folder, const unsigned int iter, const double time, typename dem_data_structures< dim >::adjacent_particle_pairs &local_adjacent_particles, typename dem_data_structures< dim >::adjacent_particle_pairs &ghost_adjacent_particles)=0

Protected Member Functions

virtual void calculate_force_chains (typename dem_data_structures< dim >::adjacent_particle_pairs &local_adjacent_particles, typename dem_data_structures< dim >::adjacent_particle_pairs &ghost_adjacent_particles, std::vector< Point< 3 > > &vertices, std::vector< double > &normal_forces_vector)=0

Detailed Description

template<int dim, typename PropertiesIndex>
class ParticlesForceChainsBase< dim, PropertiesIndex >

Base class for the particles force chains contact force models. This class does not implement any of the models, but ensures that an interface without template specialization is available. Every model implementation are carried out in the ParticlesForceChains class which is templated by the contact model type.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
PropertiesIndexIndex of the properties used within the ParticleHandler.

Definition at line 32 of file force_chains_visualization.h.

Constructor & Destructor Documentation

◆ ~ParticlesForceChainsBase()

template<int dim, typename PropertiesIndex>
virtual ParticlesForceChainsBase< dim, PropertiesIndex >::~ParticlesForceChainsBase ( )
virtualdefault

Member Function Documentation

◆ calculate_force_chains()

template<int dim, typename PropertiesIndex>
virtual void ParticlesForceChainsBase< dim, PropertiesIndex >::calculate_force_chains ( typename dem_data_structures< dim >::adjacent_particle_pairs & local_adjacent_particles,
typename dem_data_structures< dim >::adjacent_particle_pairs & ghost_adjacent_particles,
std::vector< Point< 3 > > & vertices,
std::vector< double > & normal_forces_vector )
protectedpure virtual

Use a ParticleParticleContactForce object to calculate normal forces between particles. Store normal forces and particles position in vectors.

Parameters
[in]local_adjacent_particlesContainer of the contact pair candidates information for calculation of the local particle-particle contact forces.
[in]ghost_adjacent_particlesContainer of the contact pair candidates information for calculation of the local-ghost particle-particle contact forces.
[out]verticesthe vector of positions of touching particles.
[out]normal_forces_vectorthe vector of normal forces between each touching particles.

Implemented in ParticlesForceChains< dim, PropertiesIndex, force_model, rolling_friction_model >.

◆ write_force_chains()

template<int dim, typename PropertiesIndex>
virtual void ParticlesForceChainsBase< dim, PropertiesIndex >::write_force_chains ( const DEMSolverParameters< dim > & dem_parameters,
PVDHandler & pvd_handler,
const MPI_Comm mpi_communicator,
const std::string folder,
const unsigned int iter,
const double time,
typename dem_data_structures< dim >::adjacent_particle_pairs & local_adjacent_particles,
typename dem_data_structures< dim >::adjacent_particle_pairs & ghost_adjacent_particles )
pure virtual

Output the force chains in VTU and PVTU files for each iteration and a PVD file.

Parameters
[in]dem_parametersDEM parameters declared in the .prm file
[in]pvd_handlera PVDHandler to store the information about the file name and time associated with it
[in]mpi_communicatorThe mpi communicator
[in]foldera string that contains the path where the results are to be saved
[in]iterthe iteration number associated with the file
[in]timethe time associated with the file
[in]local_adjacent_particlesContainer of the contact pair candidates information for calculation of the local particle-particle contact forces.
[in]ghost_adjacent_particlesContainer of the contact pair candidates information for calculation of the local-ghost particle-particle

Implemented in ParticlesForceChains< dim, PropertiesIndex, force_model, rolling_friction_model >.


The documentation for this class was generated from the following file: