[Yade-users] [Question #271685]: Defining Restitution with matchmaker

2015-09-22 Thread ipemath
New question #271685 on Yade:
https://answers.launchpad.net/yade/+question/271685

I am doing projectile impact studies on a bed of spheres bounded by walls. I am 
assiging the same material for all the bodies(walls and spheres). How will I 
use MatchMaker to assign coefficient of restitution between bodies. The code 
snippet is given below

 
steelId=O.materials.append(FrictMat(young=193e6,poisson=.3,density=8000e-9,frictionAngle=.42285,label='steel'))

O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Wall_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(),Ig2_Wall_Sphere_ScGeom()],

[Ip2_FrictMat_FrictMat_MindlinPhys(en=MatchMaker(matches=((steelId,steelId,1.0))),es=MatchMaker(matches=((steelId,steelId,1.0],
[Law2_ScGeom_MindlinPhys_Mindlin()],
),
NewtonIntegrator(),
PyRunner(iterPeriod=50,command='trial()')
]

If I run this script I get the following error

[Ip2_FrictMat_FrictMat_MindlinPhys(en=MatchMaker(matches=(steelId,steelId,1.0)),es=MatchMaker(matches=(steelId,steelId,1.0)))],
TypeError: No registered converter was able to produce a C++ rvalue of type 
Eigen::Matrix from this Python object of type int


Please help


-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #271685]: Defining Restitution with matchmaker

2015-09-22 Thread Klaus Thoeni
Question #271685 on Yade changed:
https://answers.launchpad.net/yade/+question/271685

Status: Open => Answered

Klaus Thoeni proposed the following answer:
Hi,

you have two possibilities. As you are only using one material there is
no need to define a matchmaker, i.e. en=1, es=1. If you still want to
use matchmaker define two materials with the same material parameters,
i.e. en=MatchMaker(matches=(mat1,mat2,1.0)).

Klaus

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp