← Back to team overview

yade-users team mailing list archive

Re: [Question #254316]: Cohesion Friction model

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello Robert,
you have to define your CohFrictMat before you want to use it, see e.g. [1]
cheers
Jan

[1]
http://bazaar.launchpad.net/~yade-pkg/yade/git-trunk/view/head:/examples/simple-scene/simple-scene-energy-tracking.py#L23


2014-09-10 19:42 GMT+02:00 Robert Sarracino <
question254316@xxxxxxxxxxxxxxxxxxxxx>:

> 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.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

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