Re: [Yade-users] engine append TT

2010-05-14 Thread Václav Šmilauer
> I was then trying to append an engine to the simulation like > > O.engines.append(...) > > But it seems it is not working. Why? Where am I wrong? http://beta.arcig.cz/~eudoxos/yade/sphinx/user.html#base-engines (the paragraph starting "The O.engines sequence ...") :-) __

Re: [Yade-users] O.engines.append ?

2010-05-14 Thread chiara modenese
2010/4/24 Václav Šmilauer > > > >O.engines=O.engines+[YourEngine()] > > I have tried this way and you insert the engine at the end of the list > > (or vector). What if you want to insert the engine at a specific > > position? If .append does not work I suppose that also .insert do

Re: [Yade-users] engine append TT

2010-05-14 Thread chiara modenese
On 14 May 2010 12:32, chiara modenese wrote: > Hi, > > I am running a script loading the triaxial test something like > > TriaxialTest().load() > > I was then trying to append an engine to the simulation like > > O.engines.append(...) > > But it seems it is not working. Why? Where am I wrong? > >

[Yade-users] engine append TT

2010-05-14 Thread chiara modenese
Hi, I am running a script loading the triaxial test something like TriaxialTest().load() I was then trying to append an engine to the simulation like O.engines.append(...) But it seems it is not working. Why? Where am I wrong? Thanks! Chiara ___ Mai

Re: [Yade-users] Material properties

2010-05-14 Thread Anton Gladky
Ok, thank you! __ Anton Gladkyy 2010/5/14 Václav Šmilauer > > why, if created 2 materials, we have actually 3. With indexes 0,1,2? > Which are they? utils.sphere will create a default material if there is > none and you call that function. > > O.bodies[i].material=

Re: [Yade-users] Material properties

2010-05-14 Thread Václav Šmilauer
> why, if created 2 materials, we have actually 3. With indexes 0,1,2? Which are they? utils.sphere will create a default material if there is none and you call that function. > O.bodies[i].material=O.material[newIndex] will be better? Oh, yes, that's whatI suggested in the last message. v _

Re: [Yade-users] Material properties

2010-05-14 Thread Václav Šmilauer
> Can I change the O.bodies.material, after the body has been created? > O.bodies.material.id=anotherValue - will it work? Don't do that, it will break. I will document that. You can do something like O.bodies[22].material=O.materials[3], though. v ___

Re: [Yade-users] Material properties

2010-05-14 Thread Anton Gladky
2010/5/14 Anton Gladky > One more question: > > why, if created 2 materials, we have actually 3. With indexes 0,1,2? > Sorry, all is ok with indexes > > O.bodies[i].material=O.material[newIndex] will be better? > > Thanks > __ > > Anton Gladkyy > > > 2010/5/14 Anton

Re: [Yade-users] Material properties

2010-05-14 Thread Anton Gladky
One more question: why, if created 2 materials, we have actually 3. With indexes 0,1,2? O.bodies[i].material=O.material[newIndex] will be better? Thanks __ Anton Gladkyy 2010/5/14 Anton Gladky > Hi, all! > > Can I change the O.bodies.material, after the body has

[Yade-users] Material properties

2010-05-14 Thread Anton Gladky
Hi, all! Can I change the O.bodies.material, after the body has been created? O.bodies.material.id=anotherValue - will it work? Thank you __ Anton Gladkyy ___ Mailing list: https://launchpad.net/~yade-users Post to : y