← Back to team overview

yade-users team mailing list archive

Re: [Question #653755]: Build error: no suitable spherical body to calculate dt

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,
please open a new topic if your new question is unrelated to the original problem. There please specify what "data from the trap door" actually means
The pressure is simply got by summing forces and divided by area of corresponding facets
###
ids = [...] # a list of ids of facets of interest
force = sum(O.forces.f(id)[2] for id in ids)
area = sum(O.bodies[id].shape.area for id in ids)
pressure = force / area
###
cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.