Skip to content

Contact Network

The contact network displays the contacts in ParaView: each active contact is a line carrying the normal force computed by the contact law. It is written with the other ParaView files when enable_contact_network is true:

global:
  enable_contact_network: true

dump_contact_network

Parameter Description
filename ParaView file name
timestep current step
- timestep_paraview_file: "ParaviewOutputFiles/contact_network_%010d"
- dump_contact_network

216 polyhedra after a fall in a cylinder: the simulation (left) and the contact network (right):

Contact network

See also the hexapod rotating drum tutorial.

Extending the operator

  • More values per contact can be written: change the StorageType of the NetworkFunctor structure, fill it in its operator () (exaDEM::Interaction* I, const size_t offset, const size_t size), then add a field in write_pvtp and in write_vtp.
  • The operator is fast and rarely called, but it is not parallelized with OpenMP, because the network is stored in a std::map.