Export interaction data

Asked by maquankun

Hi guys,
I'm doing a triaxial test. I want to extract some data from the simulation, but I don't know how to extract it. This data includes position change data and velocity data of each particle in the simulation. In addition, I want to extract each particle. Interaction data (contact points, contact forces, etc.) in the simulation.I saw intrsOfEachBody() in the utils module, but I don't know how to use it.
Thanks a lot in advance

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

This sounds like a request for help with some particular package you downloaded from Launchpad, and not for help with launchpad.net itself. Could you please tell us which software package you're using here so that we can move this question to the right place?

Revision history for this message
maquankun (maquankun) said :
#2

Sorry, I made a mistake. I am using YADE. Please tell me where I should send it.

Revision history for this message
Colin Watson (cjwatson) said :
#3

I've moved it now. https://answers.launchpad.net/yade for next time.

Revision history for this message
Jan Stránský (honzik) said :
#4

Hello,
next time please use "Ask a question" button at [1].
Also please read [2].

example:
###
for b in O.bodies:
  print "Body",b.id
  print " displ",b.state.displ()
  print " vel ",b.state.vel
  for i in b.intrs():
    print " Intr with",i.id2 if i.id1 == b.id else i.id1
    print " cp",i.geom.contactPoint
    print " f ",i.phys.normalForce+i.phys.shearForce
###

cheers
Jan

@Colin, thanks for moving

[1] https://launchpad.net/yade
[2] https://yade-dem.org/wiki/Howtoask

Can you help with this problem?

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

To post a message you must log in.