← Back to team overview

yade-users team mailing list archive

Re: [Question #696021]: How O.forces work in Yade

 

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

Jan Stránský requested more information:
> Can any one explain what does that mean.

can you explain more in detail what is not clear?

Also, you can test it yourself, and then providing the MWE [1] with more focused question
###
O.bodies.append([
    sphere((0,0,0),2),
    sphere((0,0,1),2),
    sphere((0,0,3),2),
])
newton = O.engines[-1]
newton.gravity = (0,0,-10)
O.step()
print("interaction info")
for i in O.interactions:
    print(i.id1,i.id2,i.phys.normalForce)
print("O.forces info")
for b in O.bodies:
    print(b.id,O.forces.f(b.id))
###

cheers
Jan

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