← Back to team overview

yade-users team mailing list archive

[Question #268448]: the output of resultant forces and moments of all bodies

 

New question #268448 on Yade:
https://answers.launchpad.net/yade/+question/268448

Dear Prof. Chareyre and all users,

In a special state, the results of resultant forces and moments 
of all bodies in simulation need to be output as well as that of 
all contacts. But now I failed to do this with the classes of
'ForceRecorder' and 'TorqueRecorder' in the following style:

for b in O.bodies:
    O.engines.Recorder.ForceRecorder[body_id = b].totalForce
    O.engines.Recorder.TorqueRecorder[body_id = b].totalTorque

My questions are that 

(1) Do I get the right classes for my purpose ?
(2) If yes, how to access the classes of 'ForceRecorder' and 'TorqueRecorder'
from 'O.engines' (the above sentences exsit errors) with the given body_id ?

Best regards
Zuoguang Fu 


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