← Back to team overview

yade-users team mailing list archive

[Question #237895]: Get the velocity of a facetcyliner in one point

 

New question #237895 on Yade:
https://answers.launchpad.net/yade/+question/237895

Hi,

I try to get the velocity of a facetcylinder in any point I want. Right now I am useing the following commands:

zylinder=O.bodies.append(geom.facetCylinder((0.0,0.0,1.0),radius=2.0,height=2.0,segmentsNumber=20,wallMask=6,**kwMeshes))

O.engines=[

    ...

    PyRunner(iterPeriod = 1, command = 'func()', dead = False),
]

def func():
    global velocity
    velocity=O.bodies[0].state.vel

What I get is the velocity of the first facet of the cylinder, but I don't really know which point on the facet got this velocity.

What I would like to have is a way to get the velocity (or position or acceleration) at any point of the cyliner (or in the cyliner).

Has anyone an idea how this could work?


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