yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #15076
Re: [Question #642046]: Problem about the HarmonicMotionEngine's ids
Question #642046 on Yade changed:
https://answers.launchpad.net/yade/+question/642046
Status: Answered => Open
hjz is still having a problem:
>walls=utils.aabbWalls([mn,mx],thickness=thick,oversizeFactor=1.5,material='walls')
>wallIds=O.bodies.append(walls)
>swing = HarmonicMotionEngine(
A = (0,0.002,0),
f = (0,50,0),
fi = (0,-0.5*math.pi,0),
ids = wallIds
)
Hi Bruno,
Sorry that I did't explain my problem clearly.My problem is that I can't choose only the bottom one of the aabbWalls to vibrate. When I assigned the id of the bottom wall -- "2" to the HarmonicMotionEngine.ids, the program errors occurred.
Here is the error information below:
Traceback (most recent call last):
File "/home/hjz/myyade/install/bin/yade-Unknown", line 182, in runScript
execfile(script,globals())
File "D-10-sample.py", line 70, in <module>
ids = 2
TypeError: No registered converter was able to produce a C++ rvalue of type std::vector<int, std::allocator<int> > from this Python object of type int
And I haven't found the source code about HarmonicMotionEngine, so I am
not clear about its operating principle. Do you know where it is? Thank
you very much.
Regards,
hjz
--
You received this question notification because your team yade-users is
an answer contact for Yade.