setPermF broken
Building upon https://answers.launchpad.net/yade/+question/690691 and @stranskyjan and @robcaulk comments:
O.bodies.append(sphere((0,0,0),.1))
O.forces.setPermF(0,(1,0,0))
O.run(10,True)
print('Final position is:',O.bodies[0].state.pos,'vs (0,0,0) initially')
print('O.forces.f outputs',O.forces.f(0),'vs (1,0,0) expected')
tested with yadedaily = 20200513-38215bf85125bionic1
My observations (everything which is not Yes is a problem):
| Question | j1 | j X |
|---|---|---|
| Particle moves under setPermF ? | Yes | Sometimes yes (different than j1), sometimes not, depending on X for instance |
| O.forces.f gives back correct force ? | Yes | No, gives 0 |