add displacement according to their coordinate

Asked by 张文卿

At the begining of each time step, I want to add displacement to every particle according to their center coordinate.
just like this:for x direction,Displacement=a*x*timestep.
a is just a coefficient.
But I only find 'addMove'.Is there any way solve this problem.Thanks: )

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

You can prescribe velocity such that during next time step the particle
gets to desired position

b.state.vel = (desiredPos - b.state.pos) / O.dt

cheers
Jan

2016-10-01 14:53 GMT+02:00 张文卿 <email address hidden>:

> New question #402658 on Yade:
> https://answers.launchpad.net/yade/+question/402658
>
> At the begining of each time step, I want to add displacement to every
> particle according to their center coordinate.
> just like this:for x direction,Displacement=a*x*timestep.
> a is just a coefficient.
> But I only find 'addMove'.Is there any way solve this problem.Thanks: )
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
张文卿 (sandedadi) said :
#2

Thanks Jan Stránský, that solved my question.