← Back to team overview

yade-users team mailing list archive

Re: Enquiry

 

Moreover, O.engines is a list (or something like that, I'm not sure of the exact python term), and you can play with it : remove some engine, add others, etc...

PS : think to https://answers.launchpad.net/yade/+addquestion next time, please ! ;-) It is so sad for the community that your question - and our answers - remain stuck in a mailing list archive...

Le 02/05/2012 17:17, Chiara Modenese a écrit :
Hi Francois,

first you should add the label parameter to your engine so that you can easily call it at need. Something like:
O.engines=[...,
NewtonIntegrator(damping=0.7,label='Integrator')]
Then:
Integrator.damping=0.2 # to change the value of the damping parameter

By /subtract/ I suppose you mean to get rid of that engine. You can do something like:
Integrator.dead=True # it will deactivate the engine next time step

Chiara


On 2 May 2012, at 15:37, Rioual François wrote:

                       Hello,

I have two questions regarding some modifications in engines:

- I would like to modify afterwards the value of the damping
parameter in the NewtonIntegrator: how can I write it ?

- I would like to substract an engine with PyRunner: how can I
 do it ?

                 Thank's for your help,


                      Francois

_______________________________________________
Mailing list: https://launchpad.net/~yade-users <https://launchpad.net/%7Eyade-users> Post to : yade-users@xxxxxxxxxxxxxxxxxxx <mailto:yade-users@xxxxxxxxxxxxxxxxxxx> Unsubscribe : https://launchpad.net/~yade-users <https://launchpad.net/%7Eyade-users>
More help   : https://help.launchpad.net/ListHelp



_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

--
Jerome Duriez
Post-Doctorant LTDS (Ecole Centrale de Lyon)
04.72.18.62.17




References