fabricTensor

Asked by Leonard on 2020-09-16

Hi,

I'd like to confirm that when calculate fabricTensor in yade [1], it mentions "for all interactions", so I think this involves not only sphere-sphere interactions, but also sphere-wall interactions. Am I right?

If so, can we get fabricTensor for only sphere-sphere interactions directly in yade? By the way, where can I find the source code for calculating fabricTensor?

Thanks
Leonard
[1]https://yade-dem.org/doc/yade.utils.html?highlight=fabrictensor#yade._utils.fabricTensor

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
2020-09-16
Last query:
2020-09-16
Last reply:
2020-09-16
Best Jan Stránský (honzik) said : #1

Hi Leonard,

the source code is [1].
As you guessed, all interactions are considered. To compute only fabric tensor of sphere-sphere interactions, you can:
- adjust the C++ source code
- "rewrite" the function to python and add the sphere-sphere condition there

cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/Shop_02.cpp#L339

Leonard (z2521899293) said : #2

Thanks Jan Stránský, that solved my question.