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

Jan Stránský proposed the following answer:
Hi Jabrane,

you can (just some brainstorming):
1) hard code some values to the code :-) not very good solution, but if you
know it in advance, it would make its job
2) create another member of the Law2, probably being a predicate and there
would be another computed value (apart from the global value, also "local"
value satisfying the predicate condition would be computed
3) The values of dissipated energy would not be only added to some global
value, but stored individually for each interaction.
4) From python, you can somehow store values from previous step and with
the values from the current step, you can perform computation according to
the same equations, but only at certain location.

Reading it again, I think 3) is the most clean and general approach.

cheers
Jan

-- 
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     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to