How to record a contact pair's contact information

Asked by jasperb on 2020-01-09

Hey there,
I am trying to track a contact pair's contact information in order to analyze the contact model.
The information I want to know is the contact force(normal and tangential) at continuous time steps, and the total contact duration time.
I want to output them in a TXT file.

Question information

English Edit question
Yade Edit question
No assignee Edit question
Last query:
Last reply:
Jérôme Duriez (jduriez) said : #1

Assuming your contacts physics are (or derive from) NormShearPhys, contact forces components are

- contact.phys.normalForce # contact = your interaction of interest
- contact.phys.shearForce.

See [1] and the line after

As for the txt output, see [2] and plot.saveDataTxt() [3] as well as the whole world wide web for Python Input/Output to text files (Yade terminal is Python terminal)


Can you help with this problem?

Provide an answer of your own, or ask jasperb for more information if necessary.

To post a message you must log in.