Re: [Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-07 Thread hafsa
Question #678308 on Yade changed: https://answers.launchpad.net/yade/+question/678308 Status: Open => Solved hafsa confirmed that the question is solved: thank you Jan -- You received this question notification because your team yade-users is an answer contact for Yade.

Re: [Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-07 Thread hafsa
Question #678308 on Yade changed: https://answers.launchpad.net/yade/+question/678308 hafsa posted a new comment: thank Jan my problem is solved for the person who wont saved properties of spheres in cylinder there's my code : from yade import pack,plot,export,wrapper #material of cylinder

Re: [Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-07 Thread Jan Stránský
Question #678308 on Yade changed: https://answers.launchpad.net/yade/+question/678308 Jan Stránský posted a new comment: > ( id ) start with 192 not by zero > Cylinder=O.bodies.append(geom.facetCylinder(... because the first 192 bodies are facets created by the facetCylinder command. cheers Jan

Re: [Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-04 Thread hafsa
Question #678308 on Yade changed: https://answers.launchpad.net/yade/+question/678308 Status: Answered => Open hafsa is still having a problem: hi Robert , thank you for answer me , i changed O.bodies like you said and it's work so thank you a obtain file (vibration.txt) contains properties

Re: [Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-04 Thread Robert Caulk
Question #678308 on Yade changed: https://answers.launchpad.net/yade/+question/678308 Status: Open => Answered Robert Caulk proposed the following answer: O.bodies contains all bodies, including any walls (Facet) you might have appended. I guess walls don't have radii :-) You can use a

Re: [Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-03 Thread hafsa
Question #678308 on Yade changed: https://answers.launchpad.net/yade/+question/678308 Status: Answered => Open hafsa is still having a problem: hi Bruno , thank you for answer me , i changed the script like you advise me to : #saving parameters of spheres in file def myaddData(): for b

Re: [Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-03 Thread Bruno Chareyre
Question #678308 on Yade changed: https://answers.launchpad.net/yade/+question/678308 Bruno Chareyre proposed the following answer: Ah... and in O.bodies[b] 'b' should be an integer, not a body. Else it is a bit like O.bodies[O.bodies[O.bodies[O.bodies[ Bb] -- You received

Re: [Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-03 Thread Bruno Chareyre
Question #678308 on Yade changed: https://answers.launchpad.net/yade/+question/678308 Status: Open => Answered Bruno Chareyre proposed the following answer: Hi, O.bodies[b].radius does not exist. It should be O.bodies[b].shape.radius (if O.bodies[b] is a sphere). Regards Bruno -- You

[Yade-users] [Question #678308]: save spheres coordinates to a file

2019-02-03 Thread hafsa
New question #678308 on Yade: https://answers.launchpad.net/yade/+question/678308 hi every one , i am trying to save properties of spheres (id,x,y,z,r,force) in file during simulation each second (period=1 s) and add iteration number to base name each 1s. the simulation is about filling a