Question #686136 on Yade changed:
https://answers.launchpad.net/yade/+question/686136
Status: Open => Answered
Robert Caulk proposed the following answer:
You can achieve this by looping on interaction physics and modifying the
values of interest [1]. Maybe it is obvious, but worth noting that you
need to do this *after* the interaction is created in yade.
for i in O.interactions:
i.phys.normalAdhesion = randomlyDistributedVariable
It is also worth mentioning that JCFpmPhys (a type of cohesive model) already
has this functionality for a weibull distribution of contact strengths [2].
Cheers,
Robert
[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.CohFrictPhys
[2]https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Ip2_JCFpmMat_JCFpmMat_JCFpmPhys.xSectionWeibullShapeParameter
--
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