> 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 ...")
:-)
__
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
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?
>
>
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
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=
> 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
_
> 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
___
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
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
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
10 matches
Mail list logo