← Back to team overview

yade-users team mailing list archive

Re: [Question #691285]: Extract Normals and Shears/tangentials forces on a ballMill

 

Question #691285 on Yade changed:
https://answers.launchpad.net/yade/+question/691285

    Status: Open => Answered

Jan Stránský proposed the following answer:
The specific use depends on "extract"/"record" (print, save, save
format, ...), when (periodically, just at the end of simulation, ...),
the simulation itself (mill is made of facets? boxes? ...?) etc. etc.
(please provide a MWE [1])

But the core is to loop over all interactions, skip those you are not
interested in and get the desired info from the interactions.

###
for i in O.interactions:
   if isNotInteresting(i):
      continue
   fn = i.phys.normalForce
   fs = i.phys.shearForce
   cp = i.geom.contactPoint
   # store, print, save, ..........
###

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.