← Back to team overview

yade-users team mailing list archive

Re: [Question #690586]: summary force of O.forces.setPermF and reaction force from the particles to the footing .Is it correct ?

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> i use the force on footing by O.forces.setPermF(plate.is,vector3).

this is a syntax error. Probably meant plate.id?

> output is summary force of O.forces.setPermF and reaction force from
the particles to the footing .Is it correct ?

Please read [1], where it is suggested to provide a MWE. In this case, a MWE provides the answer, so by creating a MWE, you would have found the answer yourself.
###
O.bodies.append(sphere((0,0,0),1))
O.forces.setPermF(0,(1e7,0,0))
O.step()
print(O.forces.f(0))
O.bodies.append(sphere((1,0,0),1))
O.step()
print(O.forces.f(0))
print(O.forces.f(1))
print(O.interactions[0,1].phys.normalForce)
###
so yes, it is summary of permanent force and "reaction" force

cheers
Jan

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