yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #19177
Re: [Question #678987]: error in applying constant displacement using state.vel.
Question #678987 on Yade changed:
https://answers.launchpad.net/yade/+question/678987
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
d1=geom.facetCylinder((.2,.2,.6),.145,0,segmentsNumber=50,wallMask=1)
d2=geom.facetCylinder((.2,.2,0),.145,0,segmentsNumber=50,wallMask=1)
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.