← Back to team overview

yade-users team mailing list archive

Re: [Question #244498]: matchmaker

 

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

Seungcheol Yeom posted a new comment:
Hello Klaus,

I did what you exactly said.

I set the three materials by following:

rainId=O.materials.append(FrictMat(young=1e5,poisson=0.5,frictionAngle=radians(30),density=1000.0,label='water'))
soilId=O.materials.append(FrictMat(young=young,poisson=0.4,frictionAngle=radians(30),density=2650.0,label='soil'))
wallId=O.materials.append(FrictMat(young=young,poisson=0.4,frictionAngle=radians(0),density=0.0,label='wall'))


and put the matchmaker ni the Ip2 functor as shown below:

O.engines=[
	ForceResetter(),
	InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb(),Bo1_Facet_Aabb(),Bo1_Wall_Aabb()]),
	InteractionLoop(
		[Ig2_Sphere_Sphere_ScGeom(),Ig2_Box_Sphere_ScGeom(),Ig2_Wall_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom()],
		#[Ip2_FrictMat_FrictMat_FrictPhys()],
		[Ip2_FrictMat_FrictMat_MindlinPhys(
			en=MatchMaker(matches=((soilId,rainId,0.5),(soilId,soilId,0.5),(soilId,wallId,0.5))),
			es=MatchMaker(matches=((soilId,rainId,0.5),(soilId,soilId,0.5),(soilId,wallId,0.5))))],
		[Law2_ScGeom_MindlinPhys_Mindlin(label='contactLaw')]

Any suggetions would be appreciated.

Seungcheol

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