← Back to team overview

yade-users team mailing list archive

[Question #271685]: Defining Restitution with matchmaker

 

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<double, 3, 1, 0, 3, 1> 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.