yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #16306
Re: [Question #661063]: repeat scripts cause the problem? how to solve
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.