← Back to team overview

yade-users team mailing list archive

Re: [Question #237548]: YADE stops when click [Show 3D] button

 

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

Jan Stránský posted a new comment:
Hi Alsidqi,

sorry for very late answer again. With the script you sent, I have no
problem with graphics. What system do you use and what version of Yade do
you have and how did you install it (from packeges or from source)?


>
> I have one more question:
> How I change the properties of the spheres that I already created using
> makecloud.
>

 you can modify properties by:

sp=pack.SpherePack()
sp.makeCloud((0.15,0.15,2),(0.85,0.85,6.5),rMean=.02)##,rRelFuzz=0.)
spheresIDs = sp.toSimulation()
for i in spheresIDs:
  b = O.bodies[i]
  b.state.whatever = whatever # [3], velocity, position...
  b.shape.whatever = whatever # [1,2], radius, color...

cheers
Jan

[1] https://yade-dem.org/doc/yade.wrapper.html#shape
[2] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Sphere
[3] https://yade-dem.org/doc/yade.wrapper.html#state


...

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


References