[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 #291529]: Polyhedra longest edge to vtk
Question #291529 on Yade changed: https://answers.launchpad.net/yade/+question/291529 Status: Open => Answered Jan Stránský proposed the following answer: Hello, I don't understand the question 1 at all, sorry :-) Could you specify it bit? What do you mean by "prescribe", "parameter" and how would you use it in simulation? Why do you want something to prescribe before creation if you import the polyhedra? Thanks for answers. Otherwise it should be easy. cheers Jan 2016-04-20 11:52 GMT+02:00 velimier : > 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 > -- 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
Re: [Yade-users] [Question #291529]: Polyhedra longest edge to vtk
Question #291529 on Yade changed: https://answers.launchpad.net/yade/+question/291529 Jan Stránský proposed the following answer: Hello, thanks for explanation, now it makes more sense :-) just another terminology point, in this case you would probably assign attribute or member, parameter is what you give to a function as input. to your question: from yade import export,polyhedra_utils polyhedrons = [polyhedra_utils.polyhedra(defaultMaterial(),size=(.5,.5,.5)) for i in xrange(3)] for i,b in enumerate(polyhedrons): b.state.pos = (i,0,0) O.bodies.append(polyhedrons) maxEdgeLengths = (1,2,3) # polyhedrons and maxEdgeLengths would be obtained differently in your case for poly,maxLen in zip(polyhedrons,maxEdgeLengths): poly.maxEdgeLength = maxLen # you can assign whatever like this, you only need not to conflict existing names. E.g. poly.state=1 would give error vtk = export.VTKExporter('/tmp/p.vtk') vtk.exportPolyhedra(what=[('maxLen','b.maxEdgeLength')]) # maxLen is paraview name, b.maxEdgeLength is ours assigned value cheers Jan 2016-04-20 12:58 GMT+02:00 velimier : > 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 > -- 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 Jan Stránský proposed the following answer: > > > 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? > exactly :-) 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 #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
[Yade-users] [Question #291538]: triaxial test:Law2_ScGeom_FrictPhys_CundallStrack
New question #291538 on Yade: https://answers.launchpad.net/yade/+question/291538 Hi all, I have some question about the young modulus in triaxial test using Law2_ScGeom_FrictPhys_CundallStrack. When I increase the particles' young modulus from MPa to GPa, the particle cross the wall and the number of particles decrease. I use the script session-1 to simulate the test and the internalCompaction=false. This is my second time to ask it. So I just describe it simply. This is the original link: https://answers.launchpad.net/yade/+question/291177. Waiting your answers! Thank you! hjz -- 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 #291725]: Yade undefined symbol
New question #291725 on Yade: https://answers.launchpad.net/yade/+question/291725 Dear Group, I am trying to build yade on a Centos7 Box. I compiled the code but when I run it I get this error yade-1.20.0 Welcome to Yade 1.20.0 Traceback (most recent call last): File "/usr/local/yade/1.20.0/bin/yade-1.20.0", line 129, in import yade File "/usr/local/yade/1.20.0/lib64/yade-1.20.0/py/yade/__init__.py", line 65, in import boot ImportError: /usr/local/yade/1.20.0/lib64/yade-1.20.0/libyade.so: undefined symbol: _ZN4CGAL14assertion_failEPKcS1_iS1_ Could anyone please assist me with what went wrong? I am using the following prerequisites (using modules) 1) gcc/4.9.13) libQGLViewer/2.6.3 5) cgal/4.8 7) gts/0.7.6 2) anaconda/2.1.0 4) gmp/6.0.06) loki/0.1.7 My cmake command was cmake -v -DQGLVIEWER_INCLUDE_DIR=/usr/local/libQGLViewer/2.6.3/include -DQGLVIEWER_LIBRARIES=/usr/local/libQGLViewer/2.6.3/lib -DLOKI_INCLUDE_DIR=$LOKI_INCLUDE_DIR -DLOKI_LIBRARY=$LOKI_LIBRARY -DCMAKE_INSTALL_PREFIX=/usr/local/yade/1.20.0 -DCMAKE_PREFIX_PATH=/usr/local/cgal/4.8:/usr/include/vtk -DVTK_INCLUDE_DIRS=/usr/include/vtk -DCGAL_INCLUDE_DIR=/usr/local/cgal/4.8/include -DCGAL_LIBRARIES=/usr/local/cgal/4.8/lib ../trunk-1.20.0/ Despite the command, I found that an incorrect path to vtk was generated (-I//include/vtk) to I edited CMakeFiles/boot.dir/flags.make and CMakeFiles/yade.dir/flags.make to fix this. (I have no experience in CMAKE so was unclear on how to fix this via the command line options) regards Simon Michnowicz -- 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