torque
Hi All,
I want to get the torque of a body.
I use the following code to get the torque as well as the force.
#######
def coon():
friction_
friction_
friction_
#friction_
#torque_cal = sum(O.forces.t(b) for b in cylinderIDS)
torque_cal0 = sum(O.forces.
torque_cal1 = sum(O.forces.
torque_cal2 = sum(O.forces.
f_0=utils.
f_1=utils.
f_2=utils.
torque_0 = utils.sumTorque
torque_1 = utils.sumTorque
torque_2 = utils.sumTorque
plot.addData(f1 =f_0,f2 = f_1,f3 = f_2, friction1 = friction_
friction2 = friction_
torque1 = torque_cal0, torque2 = torque_cal1, torque3 = torque_cal2,
t1 = torque_0, t2 = torque_1,t3 = torque_
plot.saveDataT
#######
the results show that f1 = friction1, f2 = friction2, f3 = friction3. this testify the above code for forces.
while the code for torque don't give me the expeted results. (I'm thinking the t1 should be equal to torque1.)
I found that t1 = -t2.
I don't know which one is correct for the torque.
or because of the axisPt so the torque is different.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: