How to set the value of cutoff in Utica.avgNumInteractions

Asked by Xin Li

I have some problems in understanding cutoff-cut some relative part of the sample’s bounding box away. It is the AaBb wall?How to set its value.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hello,

> It is the AaBb wall

Just curious, why AaBb (with this upper/lower case)? It is abbreviation of Axis Aligned Bounding Box, so AABB is more appropriate. Not important at all, thought :-)

Not literally wall, but it is cutoff from AABB.

In these cases, the source code [1] might help.
Here, cutoff argument is passed to aabbExtrema [2,3].
If documentation of aabbExtrema [3] is not enough, we can dig deeper in the code.

> How to set its value.

Like what value to choose?
Or where in the code to specify it?
Or...?
Please be more specific.
The value should be between 0 and 1, you can test yourself on a simple artificial example where you know the expected result.

If you feel the documentation should be improved, you can open an issue on Yade gitlab pages.
Alternatively, if you are interested, you can contribute yourself with the improved documentation :-)

Cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/blob/master/py/utils.py#L483
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/py/utils.py#L502
[3] https://yade-dem.org/doc/yade.utils.html#yade._utils.aabbExtrema

Revision history for this message
Xin Li (portal3) said :
#2

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