yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #15769
Re: [Question #658491]: variable properties
Question #658491 on Yade changed:
https://answers.launchpad.net/yade/+question/658491
Status: Open => Answered
Jérôme Duriez proposed the following answer:
Hello,
You understood correctly the problem, the solution is classical (even
though I understand you ask the question !):
you have to perform yourself, from the Python interface, the loop over
interactions to update interaction properties.
Updating obviously according to the corresponding equations that apply
to new interactions, which you can always find in the code source [1] in
case they are not included in the doc. See in particular this line [2]
for the normal stiffness from "young" material parameter.
Let us know if you need further help,
Jerome
[1] https://github.com/yade/trunk/blob/e4e757f2e98a620e3177b7a36a1d10f69f6a6a28/pkg/dem/CohesiveFrictionalContactLaw.cpp#L254 and below
[2] https://github.com/yade/trunk/blob/e4e757f2e98a620e3177b7a36a1d10f69f6a6a28/pkg/dem/CohesiveFrictionalContactLaw.cpp#L265
--
You received this question notification because your team yade-users is
an answer contact for Yade.