Re: [Yade-users] [Question #705031]: Poly import core dumped
Question #705031 on Yade changed: https://answers.launchpad.net/yade/+question/705031 velimier posted a new comment: Thanks Jerome, I will check those. I am using yade 2020.01a version, not sure about cgal. Also, part of those that I was able to import resulted in complete mess, nothing as it should be. I used same code with some earlier version of yade and it was flawless, so I will try with some oleder versions. Regards 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
[Yade-users] [Question #705031]: Poly import core dumped
New question #705031 on Yade: https://answers.launchpad.net/yade/+question/705031 Hi there, I am trying to import large number of polyhedra in my model by importing vertices of each poly. Following script works until ~17k of polys is imported, then I receive Segmentation fault. Any thoughts? Here is link for poly file, where vertex coordinates are written in each line; last point of each file line is polys centroid: https://drive.google.com/file/d/13lm7qvKHbHxteFKUB5tZejohU7jAjgCj/view?usp=share_link model script: from yade import polyhedra_utils import ast m = PolyhedraMat() m.density = 2700 m.Ks = 10E8 m.Kn = 10E8 m.frictionAngle = radians(30) file = open("Fragments") for line in file: vertex=[] vertex.append(ast.literal_eval(line)) t = polyhedra_utils.polyhedra(material=m, size=0, seed=0, color= polyhedra_utils.randomColor(), v=vertex[0][0:(len(vertex)-3)]) t.state.pos=vertex[0][len(vertex)-2] O.bodies.append(t) del vertex[:] Thanks 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 #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 #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
Re: [Yade-users] [Question #291529]: Polyhedra longest edge to vtk
Question #291529 on Yade changed: https://answers.launchpad.net/yade/+question/291529 Status: Answered => Solved velimier confirmed that the question is solved: Will buy you a beer once! Thanks again! -- 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 #291529]: Polyhedra longest edge to vtk
Question #291529 on Yade changed: https://answers.launchpad.net/yade/+question/291529 velimier posted a new comment: Well, thank you very much! If I understood you well, this aproach can used for Sphere (or any shape) as well to create attribute that I need for certain simulation? -- 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 #291529]: Polyhedra longest edge to vtk
Question #291529 on Yade changed: https://answers.launchpad.net/yade/+question/291529 velimier posted a new comment: Hi Jan, maybe "assign" is the better term. I meant to create each polyhedron and to asign parameter to it so I can access the parameter during the simulation. Or is there option to get max edge length of each polyhedron in yade? -- 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 #291529]: Polyhedra longest edge to vtk
New question #291529 on Yade: https://answers.launchpad.net/yade/+question/291529 Hi, I am creating simulation by importing voronoi cells to yade as polyhedra. Along with the computation of the voronoi cells I can determine the longest edge of each cell/polhedra. My goal is to export the polhedrons as .vtk and to be able to postprocess them using their longest edge as parameter. Questions are: 1. How to prescribe the longest edge to each polyhedron prior the creation of polyhedrons as "custom" parameter and use it during the simulation? 2. How to export the longest edge of each polyhedron to .vtk to be able to postprocess it in paraview? -- 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 #265693]: Change sphere material for specific number of iterations and then restore previous one
Question #265693 on Yade changed: https://answers.launchpad.net/yade/+question/265693 velimier posted a new comment: Jan, thank you for this answer. At first I tried to avoid calling pyrunner for each iteration, but in this manner it doesn't slow simulation much. -- You received this question notification because you are a member of yade-users, which 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 #265693]: Change sphere material for specific number of iterations and then restore previous one
Question #265693 on Yade changed: https://answers.launchpad.net/yade/+question/265693 velimier posted a new comment: Thanks for your answers, could it be done using pyRunner somehow? To call function changeMaterial(), run for 50 iters, call changeMaterialBack() and continue untill pyRunner calls function again. I forgot to mention that I used similar approach, but my problem is that I don’t know for how long my simulation is going to run, since I need to iterate until stop criterion isn’t met. -- You received this question notification because you are a member of yade-users, which 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 #265693]: Change sphere material for specific number of iterations and then restore previous one
New question #265693 on Yade: https://answers.launchpad.net/yade/+question/265693 Hi, here is my problem. I want to change sphere material in my simulation (lets say) after every 1000 iterations, then to run simulation with new material for 50 iterations and finally to restore previous material and continue simulation for another 1000 iterations and so on. It's not how to change material, but how to achieve this 'timing ratio'. Any suggestions? Veljko -- You received this question notification because you are a member of yade-users, which 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 #263847]: name 'Law2_PolyhedraGeom_PolyhedraPhys_Volumetric' is not defined
Question #263847 on Yade changed: https://answers.launchpad.net/yade/+question/263847 Status: Answered => Solved velimier confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- You received this question notification because you are a member of yade-users, which 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 #263847]: name 'Law2_PolyhedraGeom_PolyhedraPhys_Volumetric' is not defined
New question #263847 on Yade: https://answers.launchpad.net/yade/+question/263847 Hi, I tried to run examples from trunk/examples/polyhedra/ but whenever I run scripts I recieve following error >> NameError: name 'Law2_PolyhedraGeom_PolyhedraPhys_Volumetric' is not defined. I am using Yade 1.11.1 under Kubuntu 14.10. Is this some kind of bug or I am missing something? Veljko -- You received this question notification because you are a member of yade-users, which 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 #263072]: Manipulating blocks created using jointedCohesiveFrictionalPM
Question #263072 on Yade changed: https://answers.launchpad.net/yade/+question/263072 velimier posted a new comment: Luc, thank you for your answer. I'll try to use your suggestion to solve thi problem. Regarding my objective, all I want to do is to reduce number of particles in some larger subblocks in order to optimize simulation. Once again, than you for answering! Veljko -- You received this question notification because you are a member of yade-users, which 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 #263072]: Manipulating blocks created using jointedCohesiveFrictionalPM
Question #263072 on Yade changed: https://answers.launchpad.net/yade/+question/263072 velimier posted a new comment: Jerome, thank you for your answer. I forgot to mention that I already saw example in ~/testingJoint.py. Here I have a lot more complicated situation since I have thousands of intersecting joints. Obviously I'll have to work on this. Thank you once again! -- You received this question notification because you are a member of yade-users, which 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 #263072]: Manipulating blocks created using jointedCohesiveFrictionalPM
New question #263072 on Yade: https://answers.launchpad.net/yade/+question/263072 Hi, I want to create model that represent highly jointed rock mass using jointedCohesiveFrictionalPM. At first I want to create rock block and then to add joints into that block. Since I have dense fracture network that I want to add I need to use spheres with small radii in order to be able to create even smallest subblocks that are created by joint intersections. But before i proceed to simulation I would like to rationalize whole model and to reduce overall number of spheres but to keep all subblocks. And here comes my question: Is it possible to determine what spheres belong to each subblock? Or to transform subblocks into clumps and then replace spheres with small radii with ones with larger radii? I'd appreciate any suggestions. Veljko -- You received this question notification because you are a member of yade-users, which 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 #262000]: determine whether particle lies within predicate
Question #262000 on Yade changed: https://answers.launchpad.net/yade/+question/262000 Status: Answered => Solved velimier confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- You received this question notification because you are a member of yade-users, which 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 #262000]: determine whether particle lies within predicate
New question #262000 on Yade: https://answers.launchpad.net/yade/+question/262000 Hi, is there method to determine whether sphere lies within given predicate? Thanks, Veljko -- You received this question notification because you are a member of yade-users, which 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