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

    Status: Open => Answered

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

> O.forces.setPermF(O.bodies[0].id,(0,0,(0,0,-200-100*sin((15/pi)*O.time))))
> ...
> ForceContainer.setPermF(ForceContainer, int, tuple)
> did not match C++ signature:
> setPermF(pyForceContainer {lvalue}, long, Eigen::Matrix<double, 3,1, 0, 3,1>)

the force set has to be Vector3. For convenience, yade automatically converts 
tuples and lists of the form [number,number,number] to Vector3, but here you 
pass not valid data
(0,0,(0,0,-200-100*sin((15/pi)*O.time)))) = (0, 0, (0, 0, someNumber) ) = 
(number,number,tuple)
as a force

cheers
Jan

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to