Interactions¶
Dump of the interactions¶
The contact operators can write the main information of every interaction (see the interaction types of
spheres and polyhedra) for
post-simulation analyses. Set analysis_interaction_dump_frequency in the global block:
The files are written in <dir_name>/ExaDEMAnalyses/: for each output step XXX, a folder with one file per MPI
process, Interaction_XXX/Interaction_XXX_MPIRANK.txt. For each interaction, the columns are:
- the id of particle \(i\) (
uint64_t); - the id of particle \(j\), or of the driver for types 4 to 12 (
uint64_t); - the sub-ids of particles \(i\) and \(j\) (
int); - the interaction type (
int, ≤ 13); - the overlap (
double, ≤ 0, > 0 for cohesive contacts); - the contact position, the normal force and the tangential force (
Vec3d); - the positions of particles \(i\) and \(j\) (
Vec3d,[0,0,0]for a driver).
Warning
Inactive interactions are filtered out, and symmetric interactions are stored once.
Note
Example: example/polyhedra/analyses/interaction.msp.
scripts/post_processing/interaction_summary.py reads all the interaction files and plots the number of interactions
per type (types.pdf) and the total number of interactions (count.pdf) as functions of the step. It is a basis for
other analyses:
cd ExaDEMOutputDir/ExaDEMAnalyses
python3 PATH_TO_ExaDEM/scripts/post_processing/interaction_summary.py
About 104,000 octahedra over 200,000 steps of \(5\cdot10^{-5}\) s, falling into a cylinder:
Note
Symmetric interactions are counted twice by interaction_summary.py.
stats_interactions¶
Prints the number of interactions, active and total, per type. An interaction is active if there is a contact, i.e. if the cumulated friction is not zero. No parameter. Add it to rare operations such as the ParaView outputs or the checkpoints:
=====================================================
* Type of interaction = active / total / ghost
* Number of interactions = 369404 / 369404 / 0
* Vertex - Vertex = 41623 / 41623 / 0
* Vertex - Edge = 85161 / 85161 / 0
* Vertex - Face = 21997 / 21997 / 0
* Edge - Edge = 23922 / 23922 / 0
* Vertex - Cylinder = 0 / 0 / 0
* Vertex - Surface = 3770 / 3770 / 0
* Vertex - Ball = 0 / 0 / 0
* Vertex - Vertex (Driver) = 0 / 0 / 0
* Vertex - Edge (Driver) = 0 / 0 / 0
* Vertex - Face (Driver) = 0 / 0 / 0
* Edge - Edge (Driver) = 0 / 0 / 0
* Edge (Driver) - Vertex = 0 / 0 / 0
* Face (Driver) - Vertex = 0 / 0 / 0
* Vertice - Vertex (Stick) = 192931 / 192931 / 0
=====================================================