Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-08 Thread Robert Caulk
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Robert Caulk posted a new comment: Turns out, Yade might have a nice built in function for this[1]. I haven't used it myself, but it could be worth trying. [1]https://yade- dem.org/doc/yade.utils.html?highlight=

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-07 Thread yangjunjie
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 yangjunjie posted a new comment: Sorry, that's my fault. -- You received this question notification because your team yade-users is an answer contact for Yade. ___ M

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-07 Thread yangjunjie
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Description changed to: Hi , This is my last question about particle crushing https://answers.launchpad.net/yade/+question/675477. I use fragment replace method to simulate particle breaking (the new generati

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-07 Thread Bruno Chareyre
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Bruno Chareyre posted a new comment: Yes, please, yangjunjie, don't re-write the history of discussions. I'm also curious why the first part of the question was removed: "This is my last question about particle

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-07 Thread Robert Caulk
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Robert Caulk posted a new comment: I'm sorry, I disagree with your choice to edit the thread after you received help from the community. It may come as a surprise to you, but others will want to use this thread i

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-07 Thread yangjunjie
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Description changed to: Hi , I use fragment replace method to simulate particle breaking (the new generation of smaller particles that replace the disappearing broken particle), but I must to observe the evol

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-06 Thread yangjunjie
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Status: Answered => Solved yangjunjie confirmed that the question is solved: Thanks Robert Caulk, that solved my question. -- You received this question notification because your team yade-users is an answ

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-06 Thread Robert Caulk
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Robert Caulk proposed the following answer: This is a good python teaching moment. Good luck ;-) Le mar. 6 nov. 2018 à 04:43, yangjunjie < question675...@answers.launchpad.net> a écrit : > Question #675926 on Y

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-05 Thread yangjunjie
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 yangjunjie posted a new comment: Hi Robert: Thank you for your reply !! But I meet some problems: I added the code you provided to mine, there seems to be some conflict between plt.show() and plot.plot(), Or

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-05 Thread Robert Caulk
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Robert Caulk posted a new comment: **noticed it was missing some stuff** def getRadiusArray(): return radii radii = getRadiusArray() values,base=np.histogram(radii,bins=40) -- You received this ques

Re: [Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-05 Thread Robert Caulk
Question #675926 on Yade changed: https://answers.launchpad.net/yade/+question/675926 Status: Open => Answered Robert Caulk proposed the following answer: Hello, I guess you want something like this: def getRadiusArray(): radii=[] for b in O.bodies: if isinstance(b.shape,Sph

[Yade-users] [Question #675926]: Particle size distribution curve after particle breaking

2018-11-04 Thread yangjunjie
New question #675926 on Yade: https://answers.launchpad.net/yade/+question/675926 Hi , This is my last question about particle crushing, https://answers.launchpad.net/yade/+question/675477. I use fragment replace method to simulate particle breaking (the new generation of smaller particles t