← Back to team overview

yade-users team mailing list archive

[Question #269513]: Interaction between Polyhedra and Facets

 

New question #269513 on Yade:
https://answers.launchpad.net/yade/+question/269513

Hello everyone!

I want to make collide a Polyhedra with a facetbox, but when the polyhedra impact the facetbox  i obtain the following error:

python: /tmp/buildd/yadedaily-1.14.0-57-77e7f1d~trusty/pkg/dem/FrictPhys.cpp:17: virtual void Ip2_FrictMat_FrictMat_FrictPhys::go(const boost::shared_ptr<Material>&, const boost::shared_ptr<Material>&, const boost::shared_ptr<Interaction>&): La declaración `dynamic_cast<GenericSpheresContact*>(interaction->geom.get())' no se cumple.
Abortado (`core' generado)

The script is:

from yade import polyhedra_utils
import random

polyMat  = PolyhedraMat(density=3000,young=1e10,poisson=.5,frictionAngle=atan(0.8))
frictMat = FrictMat(density=8000,young=1e9,poisson=.5,frictionAngle=atan(0.8))

O.materials.append((polyMat,frictMat))

t=polyhedra_utils.polyhedra(polyMat,(2,2,2),v=[])
t.state.pos = (0,0,5)
O.bodies.append(t)

O.bodies.append(geom.facetBox((0,0,-2),(5,5,10)))
	
O.engines=[
   ForceResetter(),
   InsertionSortCollider([Bo1_Polyhedra_Aabb(),Bo1_Facet_Aabb()],verletDist=0.5),
   InteractionLoop(
      [Ig2_Facet_Polyhedra_PolyhedraGeom()], 
      [Ip2_FrictMat_PolyhedraMat_FrictPhys()],
      [Law2_ScGeom_FrictPhys_CundallStrack()],
   ),
    NewtonIntegrator(damping=0.5,gravity=(0,0,-9.81))
]

O.dt=0.025*polyhedra_utils.PWaveTimeStep()

from yade import qt
v=qt.View()
v.axes=True



-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.