Question #397825 on Yade changed:

Klaus Thoeni proposed the following answer:

as Jerome mentioned, changing materials/laws is not straight forward.
However, you can change material parameters and parameters of the
contact physics and contact law during the simulation. So what you need
is to start from a material and contact law that has all functionalities
and then you change the specific parameter during the simulation. You
need to change the parameter in the material for new contacts and the
one in the physics for already existing contacts. Use label to easily
access the parameters. In terms of python code this could look something
like this:

mat = O.materials.append(ViscElMat(frictionAngle=0.5, density=1000,tc=0.0001, 
O.engines = [
] # do something
# for example, change en
myPhysics.en=0.5 # do something


You received this question notification because your team yade-users is
an answer contact for Yade.

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to