← Back to team overview

yade-users team mailing list archive

Re: [Question #229891]: contact force at contact points

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

for i in O.interactions:
  if not i.isReal: continue
  cp = i.geom.contactPoint # [1]
  fn = i.phys.normalForce # [2]
  fs = i.phys.shearForce # [3]
  # now do whatever you want with the values

please note that i.phys.someForce has the meaning of internal force, so for
each body the interaction connects the force acts with opposite sense.

HTH
Jan

[1]
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.GenericSpheresContact.contactPoint
[2]
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.NormShearPhys.normalForce
[3]
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.NormShearPhys.shearForce



2013/5/30 eli <question229891@xxxxxxxxxxxxxxxxxxxxx>

> New question #229891 on Yade:
> https://answers.launchpad.net/yade/+question/229891
>
> Hi Yade developers/users,
>      I want to get the forces at all the particle-particle contact points.
>   How can I get all the contact points and the forces.
>
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.