← Back to team overview

yade-users team mailing list archive

Re: [Question #678987]: error in applying constant displacement using state.vel.


Question #678987 on Yade changed:

    Status: Answered => Solved

Othman Alshareedah confirmed that the question is solved:
Thank you Jérôme,

I made the code as below and that solved my problem.

#creating disks 


disk1IDs= O.bodies.append(d1)
disk2IDs= O.bodies.append(d2)

for i in disk1IDs:
	body= O.bodies[i]
	body.state.vel = (0,0,-10)

for n in disk2IDs:
	body= O.bodies[n]
	body.state.vel = (0,0,10)

You received this question notification because your team yade-users is
an answer contact for Yade.