← Back to team overview

yade-users team mailing list archive

Re: [Question #691771]: Contact forces of Polyhedra

 

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

    Status: Open => Needs information

Jan Stránský requested more information:
Hello,

please read [1] and try to provide a MWE.

W = working.
I have tried your code with:
O.bodies[48].dynamic=False
IndexError: Body id out of range.

M=minimal.
In this case two (or three if you want to have more than one interaction) polyhedrons is enough.
Furthermore they can be much simpler, e.g. tetrahedrons or cubes or something like that should be enough to demonstrate the problem (which does not seem to be related to polyhedron shape).

> 1. How to Compute the contact forces between 2 polyhedras [i choose].

What does "compute" mean?
- the theory what equations are used for force computation?
- how to get the value already computed by Yade?

> 2. How to display and save these outcome results

What does "display" mean? print the values? graphical output?
How you want to use the saved value?
What does "these outcome results" mean? the values of contact forces?

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.InteractionContainer

PS: a few notes to the script (and its relation to MWE)

> from __future__ import print_function
> from builtins import range
> from numpy import arange
> import numpy as np
> import random

print, range, arange, np and random are not used in the script

> for i in O.interactions:
>   if not i.isReal: continue

Interactions in "for i in O.interactions" are always real [2]

> waitIfBatch()

also probably not needed in the MWE

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.