← Back to team overview

yade-users team mailing list archive

Re: Box or facet

 


pp={'se3':[center[0],center[1],center[2],1,0,0,0],'refSe3':[center[0],center[1],center[2],1,0,0,0],'young':young,'poisson':poisson,'frictionAngle':frictionAngle,'inertia':[0,0,0], 'velocity':[velocity[0],velocity[1],velocity[2]]}
You have to use TranslationEngine and subscribe facets to it. That's what I do. See e.g. scripts/test/Dem3DofGeom.py for an example. The sphere is moved that way. Facet ids are returned by O.bodies.append.

ids=O.bodies.append([utils.facet(...),utils.facet(...)])

print ids ## [0,1,2,3,4]
O.engines=[...,TranslationEngine(subscribedBodies=ids,translationAxis=[0,0,1],velocity=1),...]

HTH, Vaclav




Follow ups

References