Re: [Yade-users] [Question #294519]: Forcing InsertionSortCollider execution
Question #294519 on Yade changed: https://answers.launchpad.net/yade/+question/294519 Jérôme Duriez posted a new comment: Thank you for the comment, but it seems it is not possible to actually update verletDist during the simulation, no ? In the above script, adding O.engines[1].verletDist=0 before the O.step() does not lead to any new interaction. (Whereas defining O.engines[1].verletDist=0 from the start would indeed do the trick.) As for runEngine(), I confirm adding O.runEngine(O.engines[1]) before O.step() is enough to have a new interaction after the O.step() However, I finally faced difficulties with this runEngine method in my actual script (the not minimal one), the particles bounds being therein not updated after a runEngine()... (In the end, my problem is still solved with another method, but everything is not 100% clear yet, as you see) -- 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 #294741]: Adding resulting pictures of 3D view and plot.plots on a video
Question #294741 on Yade changed: https://answers.launchpad.net/yade/+question/294741 Status: Open => Answered Jérôme Duriez proposed the following answer: Hi, As for saving a classical image file from your plot window (the one obtained in Yade using plot.plot() ), it is quite easy using the noShow attribute of plot.plot() function, see the doc at https://yade-dem.org/doc/yade.plot.html#yade.plot.plot (the example here is about .pdf, it is exactely the same for .png for instance) -- 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 #294958]: meniscus fusion
Question #294958 on Yade changed: https://answers.launchpad.net/yade/+question/294958 Seungcheol Yeom confirmed that the question is solved: Thanks Bruno Chareyre, that solved my question. -- 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 #294958]: meniscus fusion
Question #294958 on Yade changed: https://answers.launchpad.net/yade/+question/294958 Status: Answered => Solved Seungcheol Yeom confirmed that the question is solved: Thanks for the confirmation 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 #294958]: meniscus fusion
Question #294958 on Yade changed: https://answers.launchpad.net/yade/+question/294958 Status: Open => Answered Bruno Chareyre proposed the following answer: Yes you are right. However, the maximum saturation is more around 5% if I remember correctly. 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
[Yade-users] [Question #294958]: meniscus fusion
New question #294958 on Yade: https://answers.launchpad.net/yade/+question/294958 Hello all, It seem like a capillary model is only limited to the degree of saturation about 15% due to the meniscus overlapping. It means that if my configuration detects the fusion (due to the high degree of saturation (e.,g the degree of saturation is greater than 15%)), then my capillary model is not applicable. Am I right? Please, let me know. Thank you. Seungcheol -- 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 #294908]: Remove Spheres Randomicaly from Pack
Question #294908 on Yade changed: https://answers.launchpad.net/yade/+question/294908 Jan Stránský proposed the following answer: Hi Luis, I like the approach of Veljko. Aternativally you can implement something like removeRandom() method, but it would need some c++ coding (as the core of SpherePack is implemented in c++) cheers Jan 2016-06-06 12:58 GMT+02:00 velimier : > Question #294908 on Yade changed: > https://answers.launchpad.net/yade/+question/294908 > > Status: Open => Answered > > velimier proposed the following answer: > Hi, > maybe you can randomly append spheres from packing but excluding certain > number of spheres. > > from yade import pack > import random > > sp = SpherePack() > sp = pack.regularOrtho(pack.inAlignedBox((0,0,0),(1,1,1)),radius=.05,gap=0) > > n=350 #number of spheres to exclude > > #randomly append spheres from packing > for i in range(0, len(sp)-n): > b = sp[random.randint(0,len(sp)-1)] > O.bodies.append(b) > sp.remove(b) > > Hope it suits your need, > Veljko > > -- > 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 > -- 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 #294908]: Remove Spheres Randomicaly from Pack
Question #294908 on Yade changed: https://answers.launchpad.net/yade/+question/294908 Status: Open => Answered velimier proposed the following answer: Hi, maybe you can randomly append spheres from packing but excluding certain number of spheres. from yade import pack import random sp = SpherePack() sp = pack.regularOrtho(pack.inAlignedBox((0,0,0),(1,1,1)),radius=.05,gap=0) n=350 #number of spheres to exclude #randomly append spheres from packing for i in range(0, len(sp)-n): b = sp[random.randint(0,len(sp)-1)] O.bodies.append(b) sp.remove(b) Hope it suits your need, Veljko -- 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 #294845]: Multicore Yade
Question #294845 on Yade changed: https://answers.launchpad.net/yade/+question/294845 Bruno Chareyre proposed the following answer: Hi Pavel, Yade has profiling features which should be useful in your case. Please see https://yade-dem.org/doc/prog.html#timing Until now I would follow Anton. If you did not implement parallel versions of the following functions then of course giving more cores is not magically parallelizing them : PyRunner(command='SaveData()',virtPeriod=1./1000), ForceResetter(), VppNeighbours(), VppPressureForce(), PyRunner(command='ChangeMask()',iterPeriod=1), PyRunner(command='ChangePos()',iterPeriod=1), PyRunner(command='ChangePosFoil()',iterPeriod=1), PyRunner(command='PreChangePos()',iterPeriod=1), PyRunner(command='PressureOn()',iterPeriod=1), PyRunner(command='PressureTimeOn()',iterPeriod=1), -- 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 #294932]: passing grains
Question #294932 on Yade changed: https://answers.launchpad.net/yade/+question/294932 Status: Open => Answered velimier proposed the following answer: 1st: you should increase the young values and that will solve the problem with passing grains. 2nd: you may import the ground as surface and present it as facets. It is something like this: surf=gts.read(open('yourSurf.gts')) O.bodies.append(pack.gtsSurface2Facets(surf,wire=True)) [see gts-horse example] if you are using CAD to draw the ground you can export that surface to the .gts format directly (depends on software, Rhinoceros has that option), or you can export the surface to .stl format and convert it to .gts using stl2gts tool. Hope it helps, Veljko -- 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