← Back to team overview

yade-users team mailing list archive

[Question #254316]: Cohesion Friction model

 

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

Is the cohesion friction model working in Yade?  I tried to run the following code:

from yade import *
import sys, time, random, os, gts, math
from yade import ymport
from yade import pack
from yade import qt
from yade import bodiesHandling


s = utils.sphere(center=[0,0,0],radius=1)
p = utils.sphere(center=[0,0,1.99],radius=1)

O.bodies.append(s)
O.bodies.append(p)
O.bodies[0].state.vel=(0,0,1.0)
O.bodies[1].state.vel=(0,0,-1.0)


O.engines=[
    ForceResetter(),
    InsertionSortCollider([Bo1_Sphere_Aabb()]),
    InteractionLoop(
        [Ig2_Sphere_Sphere_ScGeom6D()],
        [Ip2_CohFrictMat_CohFrictMat_CohFrictPhys()],
        [Law2_ScGeom6D_CohFrictPhys_CohesionMoment()]),
    NewtonIntegrator(damping=0.2),
    VTKRecorder(fileName='test_cohfrict', recorders=['spheres'], iterPeriod=1)
]


O.dt = utils.PWaveTimeStep()
O.run(400)
#O.stopAtIter=300
#O.wait()


But received the following error message:

Yade [6]: terminate called after throwing an instance of 'std::runtime_error'
  what():  Undefined or ambiguous IPhys dispatch for types FrictMat and FrictMat.
Aborted (core dumped)

As added info:  I'm using the latest version of Ubuntu (14.04), and yadedaily.



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