← Back to team overview

yade-users team mailing list archive

[Question #632960]: How to erase GridConnection

 

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

Hi,

I'm beginning with Yade and I've a problem using GridConnection : during the simulation I want to erase a GridConnection. 

In a first try, I erase the interaction with O.interactions.erase(id1,id2), doing this, the interaction is erase but the Cylinder added with the GridConnection is still there. Then I tried to delete it by O.bodies.erase() but here I've got a  Core Dumped error.

To give a global overview of my problem, I'm trying to add some tension in a cable made with Grid. I'm trying to do this following this steps:
- delete one interaction of the cable
- move the sphere connected to the deleted interaction (closer or farther from the initial position if I want to add or remove tension)
- create the interaction again
- move the sphere back to it initial position
In my mind, after that there is a new equilibrium state with more or less tension in the cable.

I also thought that this can be done without deleting interaction but by resetting the initial distance of the interaction to the one I want, but I don't know if it's possible and how to do this.

I hope I made myself clear,
Thanks,

Loïc

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