O.forces.addMove does not work
Bug #1400075 reported by
Jan Stránský
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I tried O.forces.addMove to apply displacement to a particle, but the method seems not to work..
b = sphere((0,0,0),1)
O.bodies.append(b)
O.forces.
print b.state.pos # (0,0,0)
O.step()
print b.state.pos # is (0,0,0) again...
Is this behavior ok, do I do something wrong or is it a bug?
I use Ubuntu 14.04 and yade 2014-11-
Thanks
Jan
To post a comment you must log in.
I stumbled across this addMove a few times when working on the collider and other things but I never understood clearly what it was supposed to do. Not sure it has ever been completely implemented, Vaclav could tell maybe.
I would suggest to remove all of it if it doesn't work. "b.vel=" is good enough to impose a displacement, I don't think we need anything else. It is also a bit strange to impose a displacement through the force container.