How to get the informations of interaction between polyhedras?
Hi,
During the simulation of the interactions between two polyhedrons or one polyhedron and wall, I want to detect the equivalent CrossSection, penetration Volume and depth, contact point between them. I tried wrapper of PolyhedraGeom() such as contactPoint, equivalentCross
Following are the simple example for two polyhedrons contact:
#######
from yade import pack,export
from yade import polyhedra_utils
from yade import geom,utils,ymport
from yade import qt
from yade import *
matP = PolyhedraMat()
matP.density = 2500 #kg/m^3
matP.young = 3e8
matP.poisson = 0.21 # real 0.21
matP.frictionAngle = 0.65
O.materials.
matW = PolyhedraMat()
matW.density = 1950 #kg/m^3
matW.young = 6e7
matW.poisson = 0.33 # real 0.21
matW.frictionAngle = 0.23
O.materials.
b1 = polyhedra_
b1.state.
O.bodies.append(b1)
b2=polyhedra_
O.bodies.append(b2)
O.bodies[
O.forces.
O.engines =[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
#PyRunner(
]
O.dt = 0.000001
O.pause()
qt.Controller()
V = qt.View()
V.screenSize = (550,450)
V.sceneRadius = 1
V.eyePosition = (0.7,0.5,0.1)
V.upVector = (0,0,1)
V.lookAt = (0.15,0.15,0.1)
#######
Thanks a lot
best regard!
Dez
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: