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:
dump_contact_network¶
| Parameter | Description |
|---|---|
filename |
ParaView file name |
timestep |
current step |
216 polyhedra after a fall in a cylinder: the simulation (left) and the contact network (right):
See also the hexapod rotating drum tutorial.
Extending the operator
- More values per contact can be written: change the
StorageTypeof theNetworkFunctorstructure, fill it in its operator() (exaDEM::Interaction* I, const size_t offset, const size_t size), then add a field inwrite_pvtpand inwrite_vtp. - The operator is fast and rarely called, but it is not parallelized with OpenMP, because the network is stored in
a
std::map.