yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #16098
Re: [Question #659949]: how to calculate the unbalanced force
Question #659949 on Yade changed:
https://answers.launchpad.net/yade/+question/659949
Status: Needs information => Open
xuelong14 gave more information on the question:
Sorry for confusing you.
Actually, I want to calculate the unbalancedForce by myself because I
only focus on part of the whole sample and want to know the
unbalancedForce of this part.
During the calculation, I need to calculate the average of the resultant
force of particles and the average contact force in this part. When I
tried to get the resultant force, I met the problem I mentioned. That
is, the sum of the forces of every element in one 2-sphere clump is not
the same as the force got directly from the clump. The code is below,
for body in O.bodies:
if body.isClump:
f1 = O.forces.f(body.id - 1)[0]; f2 = O.forces.f(body.id - 2)[0];
f3 = f1 + f2;
print f3, O.forces.f(body.id)[0]
In it, f3 is not equal to O.forces.f(body.id)[0].
So I am really confused about it.
Thank you.
--
You received this question notification because your team yade-users is
an answer contact for Yade.