← Back to team overview

yade-users team mailing list archive

Re: [Question #218985]: erase certain engine

 

Question #218985 on Yade changed:
https://answers.launchpad.net/yade/+question/218985

Liqing Jiao posted a new comment:
Propabaly, you may use
O.engines=O.engines[0:3]+O.engines[4:] if you want to delete O.engines[3]. Note, O.engines[3] is the forth one in engines.
Hope it helps.
 
Cheers, Liqing


At 2013-01-22 14:11:21,"Christian Jakob" <question218985@xxxxxxxxxxxxxxxxxxxxx> wrote:
>Question #218985 on Yade changed:
>https://answers.launchpad.net/yade/+question/218985
>
>Christian Jakob posted a new comment:
>Hi,
>
>One possibility is:
>
>...
>O.engines[3].dead = True
>...
>
>OR give engine a label, e.g.
>
>...
>NewtonIntegrator(gravity=[0.,0.,-10.],label=myLabel)
>...
>
>then you can type
>
>...
>myLabel.dead=True
>...
>
>to deactivate NewtonIntegrator OR
>
>...
>myLabel.gravity=[0.,0.,0.] 
>...
>
>to deactivate gravity.
>
>
>Hope it helps.
>
>Regards,
>
>Christian.
>
>-- 
>You received this question notification because you are a member of
>yade-users, which is an answer contact for Yade.
>
>_______________________________________________
>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

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.