← Back to team overview

yade-users team mailing list archive

Re: [Question #704485]: bodies which are controlled by "setPermF" does not move. Is it right?

 

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

    Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi Jinsun,

The major issue is not the setPermF function but the fact that facets
are massless and not dynamic bodies by default. You can move such bodies
by applying velocity to them. If you want to move them with force, they
should have mass and be freed. You can achieve it by the following
(example) code placed right before O.run():

for i in [-2,-1]:
    b = O.bodies[i]
    b.state.mass = 1# set 1 kg of mass to the facet
    b.state.blockedDOFs = 'xyXYZ'# block all the degrees of freedom except for z (by default everything is blocked, even z)

Please note, that the movement of the facets will also be affected by
gravity. Also, it is strange that there is no particles in your
simulation yet ;)

Cheers, 
Karol

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