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.
Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2020-01-09
Last reply:
2020-01-09
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)

[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.NormShearPhys.normalForce
[2] https://yade-dem.org/doc/user.html#tracking-variables
[3] https://yade-dem.org/doc/yade.plot.html#yade.plot.saveDataTxt

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.