Problems encountered in using FrictMat for polyhedron.

Asked by weijie on 2021-05-17

Dear all,

I want to use polyhedra and spheres to make concrete,see[1].When I create a loose packing with spheres and polyhedrons with FrictMat and then compress them,I found that when I use Ig2_Polyhedra_Polyhedra_ScGeom()、Ip2_FrictMat_FrictMat_FrictPhys()、Law2_ScGeom_FrictPhys_CundallStrack(),when polyhedron contact with polyhedron,it will fly out or directly through the bottom.Here is a MWE,see[2].I think it might be ig2_ Polyhedra_ Polyhedra_ Scgeom() is not working properly.

Thanks in advance.

from yade import polyhedra_utils,pack,utils,qt
import numpy as np

m= FrictMat(density=4800,young=24e9,poisson=0.2,frictionAngle=radians(38.65))
meanSize = 0.05
wallThickness = 0.5*meanSize
length = 0.150
b1 = polyhedra_utils.polyhedra(material=m,v=v1,fixed=True,color=color) # you can set wire at
b1.state.pos = [0,0,0]
###Generate polyhedron
for center,radius in sp:
    if radius > 0.015:
        t.state.pos = center # sets polyhedron position according to sphere position

O.engines = [
from yade import qt

Question information

English Edit question
Yade Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :


yes, for this case Ig2_ Polyhedra_ Polyhedra_ ScGeom is not working correctly.
penetrationDepth is computed as radius1 + radius2 - norm.
So it is correct only if the interaction is "concentric" - true contact point lies between centers of the particles.
The more excentric the interaction is (the more center-branches are "tirangular"), the bigger is the error.
true contact point ... i.geom.contactPoint is set between the centers, so using the value as it is now would not help much
Probably it is worth to create an issue on Yade gitlab pages.

You can:
- use something like Ig2_ Wall Polyhedra_ ScGeom (which you would have to implement)
- adjust Ig2_ Polyhedra_ Polyhedra_ ScGeom
both cases needs change of the source code :-(



Revision history for this message
weijie (amandajoe) said :

Hi Jan, and thank you again.

>adjust Ig2_ Polyhedra_ Polyhedra_ ScGeom

I have an idea, I don't know whether it's feasible.In Ig2_ Polyhedra_ Polyhedra_ ScGeom,use contactPoint and equivalentPenetrationDepth from Ig2_Polyhedra_Polyhedra_PolyhedraGeom(see[1]).I don't know whether geom->radius1 and geom->radius2 are still needed in this case,if they are needed, is it appropriate to use the previous value(see[2]).

>use something like Ig2_ Wall Polyhedra_ ScGeom (which you would have to implement)

For Ig2_ Wall Polyhedra_ ScGeom,use contactPoint and equivalentPenetrationDepth from Ig2_Wall_Polyhedra_PolyhedraGeom(see[3]).But ,for ws->radius1 and ws->radius2(see [4]) is it necessary?If so,how to get it.

Best regards


Revision history for this message
Jan Stránský (honzik) said :

Thinking about it, I also had the idea to use Ig2_Polyhedra under the hood to compute Ig2_ScGeom.

I did not have time to think about all details (and will not in the near future..).
The main problem I see is the need of Interaction isntance and Interaction::geom to be something for the Ig2::go. Maybe you can just use the code/logic, or copy the code outside Ig2::go to some separate function and use it in both your Ig2..


Can you help with this problem?

Provide an answer of your own, or ask weijie for more information if necessary.

To post a message you must log in.