← Back to team overview

yade-users team mailing list archive

Re: [Question #265693]: Change sphere material for specific number of iterations and then restore previous one

 

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

Jan Stránský proposed the following answer:
Hi Veljko,

Luc's answer in python words

O.run(1000,True)
changeMaterial()
O.run(50,True)
changeMaterialBack()
O.run(1000,True)

you cold also do it in cycles:

for c in range(20):
    O.run(1000,True)
    changeMaterial()
    O.run(50)
    changeMaterialBack

also be careful with specific implementation of changeMaterial (yes/no
deleting interactions as changing particle material has no effect on
existing interactions and so on)

cheers
Jan


2015-04-22 16:16 GMT+02:00 Luc Sibille <question265693@xxxxxxxxxxxxxxxxxxxxx
>:

> Question #265693 on Yade changed:
> https://answers.launchpad.net/yade/+question/265693
>
>     Status: Open => Answered
>
> Luc Sibille proposed the following answer:
> Hi
> I am not sure tu really understand... you can just do the following:
>
> 1/ Run simulation for 1000 iterations,
> 2/ change materials properties and contact physics (in agreement with
> material properties)
> 3/ Run simulation for 50 iterations,
> 4/ change materials properties and contact physics (in agreement with
> material properties)
> 5/ Run simulation for 1000 iterations,
>
> Best,
> Luc
>
> --
> 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.