← Back to team overview

yade-users team mailing list archive

[Question #694945]: How to run deformableBodies examples

 

New question #694945 on Yade:
https://answers.launchpad.net/yade/+question/694945

Hi there,

lately I tried to run some of the examples for deformable elements from the more-examples section. 
To be precise: The testDeformableBodies.py file. [1]

Apparently something has to be done in order to run those examples as there is already a hint: 
"Did you compile yade with cmake option -DENABLE_FEMLIKE=1 ?"

It's is kinda straight forward, but I still some more detailed instruction for that. 
What exactly is that command doing?
Do I need to reinstall yade completely? Or just run the command?
Does running that command do anything that needs to be considered for future use? 

When I run the script without doing anything prior (like the cmake command) I receive the following error message multiple times:
<ERROR> DeformableCohesiveElement:54 bool yade::DeformableCohesiveElement::nodepair::operator<(const yade::DeformableCohesiveElement::nodepair&) const: Incomplete 'if' sequence

Is that the error message to expect when running the script without recompiling it first or is this something different?

The simulation still builds up and the body is shown. It kinda looks like in the video of the example. 

When starting the simulation the following error occurs:

IndexError                                Traceback (most recent call last)
~/yade2020/install/bin/yade2020 in <module>
~/yade2020/install/bin/yade2020 in addplot()
    104 
    105 def addplot():
--> 106         plot.addData(force=O.forces.f(forcebodies[1])[0],pos=(O.bodies[forcebodies[1]].state.pos[0]-initialpositions[forcebodies[1]][0]),vel=O.bodies[forcebodies[1]].state.vel[0],t=O.time,time=O.time,tm=O.time)
    107 
    108 for i in forcebodies:
IndexError: list index out of range



Can someone please help me to run that example? 
This could be really helpful to me if I understand that approach and can start to try out my own deformable element stuff. 




[1] https://yade-dem.org/doc/tutorial-more-examples-fast.html#deformableelem



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