← Back to team overview

yade-users team mailing list archive

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

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello Felix,

facets are by default non-dynamic. Do you have in your script something to
move them (perhaps some kinematic engines)?

In such case, I would write a function, that would compute velocity (or any
other quantity) at given position from the attributes of those kinematic
engines.

Otherwise you could somehow interpolate between values from individual
facets, but I think that the previous approach I suggested would be both
easier and more accurate.

If I guessed your approach wrong, than I am sorry for spamming and would
ask you for more information :-)
cheers
Jan



2013/10/23 Felix Niewienda <question237895@xxxxxxxxxxxxxxxxxxxxx>

> 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.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

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