← Back to team overview

yade-users team mailing list archive

Re: [Question #693817]: The error about defining a CohFrictPhys bond between two different materials?

 

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

Jingchi Yu posted a new comment:
Thanks for your answer, Jan!

I did as your advice ,and I got a further error,:

terminate called after throwing an instance of 'std::invalid_argument'
  what():  MatchMaker: no match for (2,0), and values required for algo computation 'avg' not specified.

My code is here:
O.engines=[
	ForceResetter(),
	InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=1.25,label='Aabb'),Bo1_Box_Aabb()]),
	InteractionLoop(
		[Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.25,label='IntFactor'),Ig2_Box_Sphere_ScGeom6D()],
		[Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(
										normalCohesion=MatchMaker(matches=((rockId,mortarId,6.0e6),)),
										shearCohesion=MatchMaker(matches=((rockId,mortarId,12e6),)))],
		[Law2_ScGeom6D_CohFrictPhys_CohesionMoment()]
	),
	VTKRecorder(fileName='post/uniCom-',recorders=['all'],iterPeriod=1000),
	GlobalStiffnessTimeStepper(active=1,timeStepUpdateInterval=5,timestepSafetyCoefficient=0.8,defaultDt=PWaveTimeStep()),
	NewtonIntegrator(damping=0.3,gravity=(0,-9.81,0)),
	PyRunner(command='addPlotData()',iterPeriod=500),
	PyRunner(command='damageRatio()',iterPeriod=500),
	PyRunner(command='writeData()',iterPeriod=500),
	PyRunner(command='stopSimu()',iterPeriod=500),
#	inter

]

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