← Back to team overview

yade-users team mailing list archive

Re: [Question #263780]: Changing the material while running

 

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

    Status: Open => Answered

Hongyang Alex Cheng proposed the following answer:
Hi,

I don't know how to do it while running the simulation if you are
referring to change material types. But you could export the geometry of
your "upper cube" then start over with newly defined material types. For
how to change material constants, you might want to take a look at
https://answers.launchpad.net/yade/+question/238797.

BTW to fix the error message, try 
def change():
    for b in O.bodies:
        if b.state.pos[2] <= 1:
             b.mat.label = 'something' # this will not change the material type

alex

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