← Back to team overview

yade-users team mailing list archive

Re: Enquiry

 

Hi François,

To modify the value of damping during a simulation, you should, first,
identify NewtonIntegrator:

newton=utils.typedEngine('NewtonIntegrator')

then, you can access the damping value like this:

newton.damping

To modify it, you can do:

newton.damping=yourValue

Concerning the substraction (deletion?) of an engine, you can try to type
this:

O.engines=O.engines[:2]+O.engines[3:0]

It should remove the 3rd engine (for example). So you have to identify the
position of your engine in the initial list. Not sure it is the propest
solution though...

Cheers

  Luc

ps: next time, ask your question here:
https://answers.launchpad.net/yade/+addquestion







2012/5/2 Rioual François <francois.rioual@xxxxxxxxx>

> **
>
>                        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
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References