← Back to team overview

yade-users team mailing list archive

Re: [Question #245923]: RotationEngine not work SpherePack()

 

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

Description changed to:
Hi,
I am trying to simulate  the rotation of a cylinder.
I use 
         SpherePack() to creat a cylinder
         RotationEngine to rotate this cylinder
but the animation shows there is no rotation at all. 
 What should i do? Thank you for your any suggestions.

Here is the some paragraph of my code——

pred = pack.inCylinder((-groundLength/2,0,0),(groundLength/2,0,0),cylRd)
	sp1=SpherePack()
	sp1 = pack.randomDensePack(pred,spheresInCell=2000,radius=.02,returnSpherePack=True)
	spheres=sp1.toSimulation(color=(0,1,1),material=concMat)
	cylIds=spheres

O.engines=[
	ForceResetter(),
	InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb(),Bo1_Box_Aabb(),]),
	InteractionLoop(
		[Ig2_Sphere_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom(),Ig2_Box_Sphere_ScGeom6D()],
		[Ip2_FrictMat_FrictMat_FrictPhys()],
		[Law2_ScGeom_FrictPhys_CundallStrack()],
	),
	RotationEngine(rotateAroundZero=True,zeroPoint=(0,0,0),rotationAxis=(1,0,0),angularVelocity=30*(2*pi/60),ids=cylIds,label='rotor'),
	NewtonIntegrator(damping=.3,gravity=(0,0,-1e4)), # gravity artificially high, to make it faster going ;-)
]

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