← Back to team overview

yade-users team mailing list archive

Re: [Question #245957]: BicyclePedalEngine not defined

 

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

Carrie posted a new comment:
To Bruno

Thanks for your advice and I will try to install a trunk version.
I am not clear about the motion of this engine .So i would like to run the corresponding example and see how it works :)

And do you think it is workable using the combination of RotationEngine
and TranslationEngine to simulate the rolling?

I use RotationEngine and set the argument below.
--RotationEngine(rotateAroundZero=False,angularVelocity=100,rotationAxis=[1,0,0]),

According to the engine, the cylinder should rotate around its centroid. But the cylinder does not rotate at all.
Should I give a centroid to the cylinder? Or change a way to creat the cylinder, or other ways?

Thanks again!

Carrie

_____________________________________________________________________________________________________
Here is the relative code

pred = pack.inCylinder((-groundLength/2,0,0),(groundLength/2,0,0),cylRd)
	sp=SpherePack()
	sp = pack.randomDensePack(pred,spheresInCell=2000,radius=.02,memoizeDb='/tmp/triaxTestOnCylinder.sqlite',returnSpherePack=True)
	spheres=sp.toSimulation(color=(0,1,1),material=concMat)
	cylIds=spheres
~~~~~~~~~~some  omit~~~~~~~~~~~~~~~~~~~

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()],
	),
	CombinedKinematicEngine(ids=cylIds,comb=[RotationEngine(rotateAroundZero=False,angularVelocity=100,rotationAxis=[1,0,0]),TranslationEngine(translationAxis=[0,1,0],velocity=25)],label='rotor'),
	NewtonIntegrator(damping=.3,gravity=(0,0,-1e4)), 
]

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