![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <force_chains_visualization.h>
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 |
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.
| 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 force_chains_visualization.h.
|
virtualdefault |
|
protectedpure virtual |
Use a ParticleParticleContactForce object to calculate normal forces between particles. Store normal forces and particles position in vectors.
| [in] | local_adjacent_particles | Container of the contact pair candidates information for calculation of the local particle-particle contact forces. |
| [in] | ghost_adjacent_particles | Container of the contact pair candidates information for calculation of the local-ghost particle-particle contact forces. |
| [out] | vertices | the vector of positions of touching particles. |
| [out] | normal_forces_vector | the vector of normal forces between each touching particles. |
Implemented in ParticlesForceChains< dim, PropertiesIndex, force_model, rolling_friction_model >.
|
pure virtual |
Output the force chains in VTU and PVTU files for each iteration and a PVD file.
| [in] | dem_parameters | DEM parameters declared in the .prm file |
| [in] | pvd_handler | a PVDHandler to store the information about the file name and time associated with it |
| [in] | mpi_communicator | The mpi communicator |
| [in] | folder | a string that contains the path where the results are to be saved |
| [in] | iter | the iteration number associated with the file |
| [in] | time | the time associated with the file |
| [in] | local_adjacent_particles | Container of the contact pair candidates information for calculation of the local particle-particle contact forces. |
| [in] | ghost_adjacent_particles | Container of the contact pair candidates information for calculation of the local-ghost particle-particle |
Implemented in ParticlesForceChains< dim, PropertiesIndex, force_model, rolling_friction_model >.