yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00752
Re: Problem with DeusExMachina('TranslationEngine', {'subscribedBodies':[idWall], 'velocity':[x, y, z]}) on Python
> File "ScriptGenerateCylindricalPacking.py", line 78, in <module>
>
> DeusExMachina('TranslationEngine',{'subscribedBodies':[41],'velocity':[0,0,-1]})
>
> RuntimeError: Could not extract type double
I am sorry, this was my fault.. If you look at TranslationEngine, it
defines Real velocity (hence trying to extract (i.e. convert to c type)
double from the list [0,0,-1], which fails -- it should be a number) and
Vector3r translationAxis. Therefore, the correct way would be
DeuxExMachina('TranslationEngine',{'subscribedBodies':[41],'velocity':1,'translationAxis':[0,0,-1])
(Not very logical, though, it would be enough to have one velocity
parameter instead of two...)
Vaclav
References