← Back to team overview

yade-users team mailing list archive

Re: [Question #403669]: Uniaxial compression simulation disappeared suddenly in Yade

 

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

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hello,

Your first error:
**********
TranslationEngine(translationAxis=(0,0,-1),velocity=(0,0,0.005),id=20),
TypeError: No registered converter was able to produce a C++ rvalue of type double from this Python object of type tuple
**********
is because velocity attribute of TranslationEngine should be a scalar (it's true it's quite surprising and not in the doc).

The right syntax is:
TranslationEngine(translationAxis=(0,0,-1),velocity=0.005,ids=[20]) # note the list for "ids" attribute (and not id)

Anyway, I recommend to follow the method described here: https://yade-dem.org/doc/user.html#imposing-conditions
to impose controlled motions, rather than engines such as TranslationEngine


You have a second error 
****
InsertionSortCollider::spatialOverlapPeri(Body::id_t, Body::id_t, Scene*, Vector3i&) const: Assertion `maxima[3*id2+axis]-minima[3*id2+axis]<.99*dim' failed.****
*****
but let's go step by step.


Also, it is possible the crash you get in the end:
******
Aborted (core dumped)
*******
comes from another issue.


For instance, it is weird you include "Ip2_FrictMat_FrictMat_FrictPhys()" in your InteractionLoop in addition to "Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(..}", even though you do not have any "FrictMat" material properties in your simulation...
I'd strongly recommend you closely read https://yade-dem.org/doc/user.html#base-engines (at least..) to understand how to correctly define your engines list.

Since you're a beginner and you're facing several issues here (which is
normal for a beginner) reading closely the whole "User's manual" part of
the doc would obviously be very beneficial.


Jerome

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