Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Thanks, my question has been solved. -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 Jan Stránský posted a new comment: > The PWaveTimeStep is 1.02e-08. > time step is set as 1e7 1e7 or 1e-7? in any case, it is > PWaveTimeStep and most likely makes the simulation unstable with the consequences you see > By the way, the default option of Yade is in parallel and uses all of the > available cores? In the tutorial, it says, "By default, each job uses all > available cores for itself, which causes jobs to be effectively run in > parallel. Number of cores per job can be globally changed via the > --job-threads option" > If i just start a job by "yade pyname.py", is it executed in parallel and > uses the available cores? If so, how many cores does it use when i start a > new job without designating the cores to use? To grab some cores from the > first job? This is unrelated to the original problem, next time please open a new question for a new question [1] Also next time please refer "the tutorial" etc. I see it in User's manual, being a different part of documentation than tutorial. "all available cores" you are referring holds for batch execution (yade-batch). yade pyname.py runs by default using 1 core. cheers Jan [1] https://yade-dem.org/wiki/Howtoask -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 gaoxuesong posted a new comment: > the time step The PWaveTimeStep is 1.02e-08. By the way, the default option of Yade is in parallel and uses all of the available cores? In the tutorial, it says, "By default, each job uses all available cores for itself, which causes jobs to be effectively run in parallel. Number of cores per job can be globally changed via the --job-threads option" If i just start a job by "yade pyname.py", is it executed in parallel and uses the available cores? If so, how many cores does it use when i start a new job without designating the cores to use? To grab some cores from the first job? > the meaning of the mass reduction For my case, the packing density is an important factor to affect the following process. Larger mass makes denser packing. So this is the meaning of the step. Yes. I agree with you the mass modification changes the physical process. But if we actually care about the random feature of particle packing not the exact the particle distribution. Thanks, Xuesong -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 Jan Stránský requested more information: > time step is set as 1e7. As soon as the simulation starts, the particles explode and flow out. it seems like the simulation is unstable = has too large time step. What is the value of PWaveTimeStep? Concerning mass reduction, what does "last step" in "the last step is mass shrinking" mean? At the end of simulation? Now I understand what you mean, but don't see the point / advantage fro its usage.. As said, any material parameters modifications "to make the simulation faster" changes the physics. If it is suitable is very individual and there is no general answer if it is good or bad. cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 Bruno Chareyre proposed the following answer: Hi >the density is amplified by a factor of 1e9 to increase the calculation speed It will not work. With such mass the particles will be nearly immobile on short time scale, and that's probably why the piston goes through. Or you would have to scale down frequency by the sqrt of this multiplier, hence exactly the same number of time iterations in total. Bruno -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 gaoxuesong posted a new comment: >the problem is that with rMean=rRelFuzz, the radius may be arbitrarily small (you can print the minimal value), making the PWaveTimeStep very small, too. Actually i run an example case where all the particles have the same diameter of 100 um and the time step is set as 1e7. As soon as the simulation starts, the particles explode and flow out. > the last step is mass shrinking, where the mass of all the particles is gradually decreased to the 1/1000 of the used value. Does it make sense or do you have good advice? Sorry for confusing words used. The following is an example, ### a function to reduce the mass gradually redt = 0.5 ### how long for one mass reduction retime = 1.0 ### the time when mass reduction happens mrecof = 0.1 ## the mass reduction cofficient def mass_relaxation(): global redt global retime if O.time > retime: retime = retime + redt for eb in O.bodies: if isinstance(eb.shape, Sphere): eb.state.mass = eb.state.mass*mrecof print('change mass', O.time) Then the function of mass_relaxation() is invoked by pyRunner Engine periodically. Thanks. -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 Jan Stránský posted a new comment: > it is very time-consuming yes, sometimes / usually DEM is like that :-) > the diameter of the sphere is around 80 um > sp.makeCloud((0,0,0.35e-3), (1.0e-3,1.0e-3,1.2e-3), rMean=40e-6, > rRelFuzz=40e-6) the problem is that with rMean=rRelFuzz, the radius may be arbitrarily small (you can print the minimal value), making the PWaveTimeStep very small, too. Thereofore I suggested to change mass only by the smallest particles (but with manually modified mass, you cannot use PWaveTimeStep but a "hand made" estimation) > the last step is mass shrinking, where the mass of all the particles is gradually decreased to the 1/1000 of the used value. Does it make sense or do you have good advice? sorry, I did not get this point at all.. cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 gaoxuesong posted a new comment: Hi Jan, Thanks for your answers. For the density magnification, in my case, the diameter of the sphere is around 80 um. If i use the normal density, it costs about 4 hours to simulate virtual time of 55 ms. The total time i need is 3s, so it is very time-consuming. In my method, the last step is mass shrinking, where the mass of all the particles is gradually decreased to the 1/1000 of the used value. Does it make sense or do you have good advice? -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > Then the piston does harmonic vibration. I find when the vibration amplitude goes to high, the spheres go through the piston, which is constructed by facet. I want to know the reason and fix it. There might be several issues: a) the piston period is to short w.r.t O.dt that the piston simply "overjumps" the particles, not interacting with them at all b) the stiffness/mass/timestep combination is such that the repulsive force acts so little time, has so liitle magnitude etc. that the piston is not able to "push away" the particles. c) Linear contact law also does not help b) as for really high penetration, the force is "too low" > In addition, the density is amplified by a factor of 1e9 to increase the calculation speed. by increasing density, you can get higher critical time step. BUT you also change the physics of the system (see point b above). It always depends if and which values are acceptable. 1e9 * density sounds really too much.. If you want to get "realistic" results of a dynamic system, **in my opinion** this is not the way to go.. Somewhat less drastic scenario is to increase mass of some fraction (e.g. 5% of mass) of the smallest particles. It increases time step (determined by the smallest particles), but preserves dynamic properties of the "most" of the system. > And also I want to know how to define the word of "rigid" in yade. In my > case, the box is rigid and the spheres are relatively soft. > Does it make sense if i set the young's modulus of the box material as 100 > times of that of the sphere material? the stiffness of interaction is computed as a harmonic average of stiffness of individual bodies, something like E=2*E1*E2/(E1+E2) The limit for E2->infinity is E=2*E1. For E2=100*E1, E=1.98, so it could be "close enough" to rigid. cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp