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

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hi,

Almost any property of a YADE simulation can be accessed and modified
through python [*]

E.g.

for b in O.bodies:
  b.mat.young = newYoungValue # this will affect future interactions, not the 
existing ones. 
  # similar stuff for other bodies properties

for i in O.interactions:
  i.phys.kn = newValue # according to CPM model and the newYoungValue. This is 
necessary because, as said in the above, existing interactions would not have 
their properties updated when the properties of interacting bodies are updated.
  # similar stuff for other interaction properties


Jérôme

[*] https://yade-dev.gitlab.io/trunk/tutorial-data-mining.html#local-
data

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to