← Back to team overview

yade-users team mailing list archive

Re: [Question #680868]: How to get resultant contact force of each sphere

 

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

Chareyre proposed the following answer:
In the code above it should be O.forces.f(i.id1), the «i.» was missing.
Same for id2.
B.

Le jeu. 16 mai 2019 15:22, Bruno Chareyre <
question680868@xxxxxxxxxxxxxxxxxxxxx> a écrit :

> Question #680868 on Yade changed:
> https://answers.launchpad.net/yade/+question/680868
>
> Bruno Chareyre proposed the following answer:
> The question and answer #1 are misleading on some aspects in my opinion.
> For the record:
>
> > the direction is not sure[1]
>
> The direction _is_ sure. Simply there is no reason to access interactions
> by ids.
> The normal force (a vector) is exerted on id2. An opposite force is
> exerted on id1.
> Same for shear force.
> Hence for resultant forces on all bodies you can do simply:
>
> for i in O.interactions:
>     force[id2]+= i.phys.normalForce
>     force[id1]-= i.phys.normalForce
>
>
> > O.force.f() can get the resultant contact force of sphere?
>
> Yes, absolutely.
> ** even if Newton::gravity is not zero **
> Weight is not included in O.forces.
>
> Bruno
>
> --
> You received this question notification because your team yade-users 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 your team yade-users is
an answer contact for Yade.