Re: [Yade-users] [Question #657637]: Applying confinement (rigid boundary) to a cylindrical sample

2017-09-12 Thread Jan Stránský
Question #657637 on Yade changed: https://answers.launchpad.net/yade/+question/657637 Jan Stránský proposed the following answer: Hello, in this case, try to find the problem step by step. I.e. do not run directly (remove O.run() form the script) and have a look what is hapenning. You would see

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-09-12 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský posted a new comment: Hello, the os.path.abspath was just to show the difference between home/.. and /home.. So again with print: ## import os print os.path.abspath("home/zg/scriptf/represen

Re: [Yade-users] [Question #657905]: Tensile test

2017-09-12 Thread Jan Stránský
Question #657905 on Yade changed: https://answers.launchpad.net/yade/+question/657905 Status: Open => Answered Jan Stránský proposed the following answer: Hello, 1) some comments a) O.bodies.append(facets) #add facets to the body global plate # name a new geometry &qu

Re: [Yade-users] [Question #657893]: Creating an animation of interactions using VTKExporter and Paraview

2017-09-12 Thread Jan Stránský
Question #657893 on Yade changed: https://answers.launchpad.net/yade/+question/657893 Status: Open => Answered Jan Stránský proposed the following answer: Hello, 1) the idea of VTKExporter is that one instance remembers how many times it did the export, saves the data using that i

Re: [Yade-users] [Question #658749]: Mesh convergence - Determining sphere radius

2017-09-28 Thread Jan Stránský
Question #658749 on Yade changed: https://answers.launchpad.net/yade/+question/658749 Status: Open => Answered Jan Stránský proposed the following answer: Hello Justin, > I am moving a tool down into a box of balls and then rotating the tool. I am > having the Torquerecord

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-26 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský proposed the following answer: > whether due to its square geometry it would move into the cylinder upon loading or not? it would move as it was circular, because there would be no box-

Re: [Yade-users] [Question #658861]: What are the package necessary for the generator (F9) and the 3D view (F11)

2017-10-02 Thread Jan Stránský
Question #658861 on Yade changed: https://answers.launchpad.net/yade/+question/658861 Jan Stránský requested more information: before make, there is cmake step where you define compilation parameters. If you go to YADE/sources/build, what is the output of grep QT CMakeCache.txt ? Jan -- You

Re: [Yade-users] [Question #658861]: What are the package necessary for the generator (F9) and the 3D view (F11)

2017-10-02 Thread Jan Stránský
Question #658861 on Yade changed: https://answers.launchpad.net/yade/+question/658861 Jan Stránský requested more information: This seems like the executable you use was not compiled with qt enabled. What system and version of yade do you use? and how did you launch it? How did you compile

Re: [Yade-users] [Question #658861]: What are the package necessary for the generator (F9) and the 3D view (F11)

2017-10-02 Thread Jan Stránský
Question #658861 on Yade changed: https://answers.launchpad.net/yade/+question/658861 Jan Stránský requested more information: sorry, for your version it should have been grep ENABLE_GUI CMakeCache.txt thanks Jan -- You received this question notification because your team yade-users

Re: [Yade-users] [Question #658861]: What are the package necessary for the generator (F9) and the 3D view (F11)

2017-10-02 Thread Jan Stránský
Question #658861 on Yade changed: https://answers.launchpad.net/yade/+question/658861 Jan Stránský requested more information: hmm, it seems it is cmaked ok.. just to be sure, please try in yade from yade import qt Jan -- You received this question notification because your team yade-users

Re: [Yade-users] [Question #658870]: Export and import facets

2017-10-02 Thread Jan Stránský
Question #658870 on Yade changed: https://answers.launchpad.net/yade/+question/658870 Status: Open => Answered Jan Stránský proposed the following answer: Hello Alessandro, one possible solution is to create your own functions saving / loading facets, see below. cheers Jan #

Re: [Yade-users] [Question #658861]: What are the package necessary for the generator (F9) and the 3D view (F11)

2017-10-02 Thread Jan Stránský
Question #658861 on Yade changed: https://answers.launchpad.net/yade/+question/658861 Jan Stránský requested more information: There is another problem. Yade has yade.runtime.hasDisplay, which should be True for any GUI. In your case, it is not set to True, see [1]. Instead, the "Warning:

Re: [Yade-users] [Question #658861]: What are the package necessary for the generator (F9) and the 3D view (F11)

2017-10-02 Thread Jan Stránský
Question #658861 on Yade changed: https://answers.launchpad.net/yade/+question/658861 Jan Stránský requested more information: ok, so it is something with Xauthority file. What is the output of (everything in terminal): echo $XAUTHORITY cat `echo $XAUTHORITY` cat ~/.Xauthority Jan -- You

Re: [Yade-users] [Question #658861]: What are the package necessary for the generator (F9) and the 3D view (F11)

2017-10-02 Thread Jan Stránský
Question #658861 on Yade changed: https://answers.launchpad.net/yade/+question/658861 Jan Stránský requested more information: Just a question, how do you use the computer? as laptop/desktop, or as a remote machine? What happens, if you do in terminal (deletes content of ~/.Xauthority file

Re: [Yade-users] [Question #658861]: What are the package necessary for the generator (F9) and the 3D view (F11)

2017-10-02 Thread Jan Stránský
Question #658861 on Yade changed: https://answers.launchpad.net/yade/+question/658861 Jan Stránský posted a new comment: Ok :-D -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-29 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský posted a new comment: Hello, please post a complete code, the segment you gave should be a syntax error.. thanks Jan -- You received this question notification because your team yade-users

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-26 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský proposed the following answer: (6) you can use this or similar function to create a cylindrical surface. Top and bottom box is easy. Have a look at [1] for engines to use ### from math import sin

Re: [Yade-users] [Question #658639]: Loading (Forces) application in YADE

2017-09-26 Thread Jan Stránský
Question #658639 on Yade changed: https://answers.launchpad.net/yade/+question/658639 Status: Open => Answered Jan Stránský proposed the following answer: If you mean output e.g. a text file, then yes. Python is very user- friendly concerning files manipulation I haven't used Matlab mys

Re: [Yade-users] [Question #658639]: Loading (Forces) application in YADE

2017-09-25 Thread Jan Stránský
Question #658639 on Yade changed: https://answers.launchpad.net/yade/+question/658639 Status: Open => Answered Jan Stránský proposed the following answer: Hello Yahia, welcome to Yade :-) 1) you can prescribe both force and displacement (i.e. either one or the other, of course) 2)

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-26 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský proposed the following answer: ### def cylSurf(center,radius,height,nSegments=12,thick=0,**kw): """creates cylinder made of boxes. Axis is parallel with z+ center ... center

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-26 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský proposed the following answer: Boxes are just boxes, cuboids. The point is that you do not need circular top and bottom, the enlarged "square" box is just fine, the overhangs do not matt

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-25 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Status: Open => Answered Jan Stránský proposed the following answer: Hello, (5) depends where and how you want to use it (6) An alternative is to use facets only for the cylinderical (non-flat) surf

Re: [Yade-users] [Question #658699]: Deleting the desired interactions

2017-09-28 Thread Jan Stránský
Question #658699 on Yade changed: https://answers.launchpad.net/yade/+question/658699 Status: Open => Answered Jan Stránský proposed the following answer: Hello Xavier, please try the following code. In the GUI on display tab, I checked intrAllWire and do not see any bonds between the

Re: [Yade-users] [Question #656538]: Measuring Force, Trapdoor displacement and Surface displacement

2017-08-24 Thread Jan Stránský
Question #656538 on Yade changed: https://answers.launchpad.net/yade/+question/656538 Status: Open => Needs information Jan Stránský requested more information: please post your code here and also the errors you get thanks Jan -- You received this question notification because your t

Re: [Yade-users] [Question #656538]: Measuring Force, Trapdoor displacement and Surface displacement

2017-08-24 Thread Jan Stránský
Question #656538 on Yade changed: https://answers.launchpad.net/yade/+question/656538 Status: Open => Answered Jan Stránský proposed the following answer: I meant complete code.. > Yade [1]: ERROR > /build/yade-iRsyM_/yade-2016.06a/pkg/common/InsertionSortCollider.cpp:240

Re: [Yade-users] [Question #655866]: Rel. to Uniaxial test

2017-08-22 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský proposed the following answer: Hello, read [1] You can start yade simply by "yade", opening yade prompt and allowing you to type commands Or you can pass a script name as an command lin

Re: [Yade-users] [Question #656614]: Sphere size Distribution

2017-08-21 Thread Jan Stránský
Question #656614 on Yade changed: https://answers.launchpad.net/yade/+question/656614 Status: Open => Answered Jan Stránský proposed the following answer: Hi Seti, > sp.makeCloud(...) > ... > spheres.toSimulation() try sp.toSimulation :-) cheers Jan -- You received t

Re: [Yade-users] [Question #655866]: Rel. to Uniaxial test

2017-08-21 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský requested more information: well, as the error says, the syntax in the file is invalid :-) the error also specifies the problem position. please post here the code or put the file to the internet

Re: [Yade-users] [Question #656214]: problem replacing TriaxialStressController with PeriTriaxController

2017-08-21 Thread Jan Stránský
Question #656214 on Yade changed: https://answers.launchpad.net/yade/+question/656214 Status: Open => Answered Jan Stránský proposed the following answer: Hi Jesse, > sigmaIso = -1e-10 have you tried some higher values, like -1e+6? > On another note: as usual, please prov

Re: [Yade-users] [Question #656214]: problem replacing TriaxialStressController with PeriTriaxController

2017-08-21 Thread Jan Stránský
Question #656214 on Yade changed: https://answers.launchpad.net/yade/+question/656214 Jan Stránský posted a new comment: @Jesse: I meant MWE for this: "If possible I would like to import the geometry to be compressed, that will allow me to always import the same geometry. If I gen

Re: [Yade-users] [Question #656538]: Measuring Force, Trapdoor displacement and Surface displacement

2017-08-26 Thread Jan Stránský
Question #656538 on Yade changed: https://answers.launchpad.net/yade/+question/656538 Status: Open => Answered Jan Stránský proposed the following answer: Hello, what is written in the script directly (not in function etc) is executed and never called again (like O.bodies[1].state.di

Re: [Yade-users] [Question #655866]: Rel. to Uniaxial test

2017-08-28 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský proposed the following answer: Ok, than in terminal you need to change directory (cd) [1] cd scriptf and then yade script1.py cheers Jan [1] https://yade-dem.org/doc/tutorial-hands-on.html

Re: [Yade-users] [Question #655866]: Rel. to Uniaxial test

2017-08-28 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský proposed the following answer: Hello, again, just read the errors :-) it says that there is IndentationError at line 12 (yade.plot...) in file "script1.py" and that an indented block i

Re: [Yade-users] [Question #655866]: Rel. to Uniaxial test

2017-08-28 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský proposed the following answer: Hello, errors thrown by Python are (usually) relatively easy to read. It also tells you what kind of error it is and where the problematic code is located. In your

Re: [Yade-users] [Question #657061]: Compression strength

2017-08-28 Thread Jan Stránský
Question #657061 on Yade changed: https://answers.launchpad.net/yade/+question/657061 Status: Open => Answered Jan Stránský proposed the following answer: Hi Sam, define a function which records the data ### def plotAddData(): plot.addData( dspl = O.bodies[3].state.displ(

Re: [Yade-users] [Question #655866]: Rel. to Uniaxial test

2017-08-29 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský proposed the following answer: it should be enough Jan -- You received this question notification because your team yade-users is an answer contact for Yade

Re: [Yade-users] [Question #655866]: Rel. to Uniaxial test

2017-08-29 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský proposed the following answer: Concerning the bug, you need to delete/comment a line in yade executable to get its name, run 'which yade' to terminal (should be something like /usr/bin/yade

Re: [Yade-users] [Question #657061]: Compression strength

2017-08-29 Thread Jan Stránský
Question #657061 on Yade changed: https://answers.launchpad.net/yade/+question/657061 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > How can I change force to load in my script? to change a label, just change force to load: ### ... plot.a

Re: [Yade-users] [Question #657061]: Compression strength

2017-08-31 Thread Jan Stránský
Question #657061 on Yade changed: https://answers.launchpad.net/yade/+question/657061 Jan Stránský proposed the following answer: Hello, > YADE gives me an error. please always be as specific as possible, e.g. what kind of error, ideally copying it from terminal here. In this case I exp

Re: [Yade-users] [Question #657156]: triaxial test based PSD

2017-08-31 Thread Jan Stránský
Question #657156 on Yade changed: https://answers.launchpad.net/yade/+question/657156 Status: Open => Answered Jan Stránský proposed the following answer: Hi Sam, > I tried to modified the trixial script bsed on PSD if you use a "reference" script, please give more

Re: [Yade-users] [Question #657225]: Intraction between particles

2017-09-01 Thread Jan Stránský
Question #657225 on Yade changed: https://answers.launchpad.net/yade/+question/657225 Jan Stránský posted a new comment: Hi Sam, Bruno's answer is perfect, it answered your question 100%, but as I knew your previous problem, you actually asked something totally different.. If you want to get

Re: [Yade-users] [Question #657114]: Computing lateral strains in uniaxial tension tests

2017-09-01 Thread Jan Stránský
Question #657114 on Yade changed: https://answers.launchpad.net/yade/+question/657114 Status: Open => Answered Jan Stránský proposed the following answer: Hi Luc, I don't know about such function. I did it some time ago. I just used average strain over "suitable" particles,

Re: [Yade-users] [Question #657232]: Need suggestions on the computer server for YADE computation.

2017-09-01 Thread Jan Stránský
Question #657232 on Yade changed: https://answers.launchpad.net/yade/+question/657232 Jan Stránský proposed the following answer: Hello, it depends, as usually, on many factors. If you have independent simulations, the most efficient from CPU point of view is to run as many simulations

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-09-04 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: > the hammer does not appear to move at all but it does :-) you can easily check by O.engines += [PyRunner(iterPeriod=100,command="print hammer.sta

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-09-04 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: Hi Sam, > hammer= sphere((0,0,0.30),0.04,material=idSteel)) this invalid syntax is easy to solve, just count left and right parentheses on the line :-) otherw

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-09-04 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: > When the body is alloted a velocity it should be seen moving depends on "seen moving" :-) but yes, if you set nonzero velocity to the "dlo

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-09-04 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: [1] https://answers.launchpad.net/yade/+question/655866/#comment-0 [2] https://answers.launchpad.net/yade/+question/655866/#comment-2 -- You received this question

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-09-04 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: Oh, sorry, my fault.. calm() sets velocity of all particles to zero, including the hammer. If you put hammer.state.vel=Vector3(0,0,-0.005) after caml(), it does move

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-09-04 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský posted a new comment: > How do I access the output data of the simulation? read [1], especially [2]. During simulation, you have access to any relevant quantity (positions, velcoties, for

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-09-04 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: Ok, then we comes back to the definition of "seen moving" :-) you can clearly see from text output that the displacement is continuously increasing (in it

Re: [Yade-users] [Question #657126]: Performing a penetration test

2017-08-30 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: > But when you run it using the script , you do not know the ID of the sphere of course you (can) know it :-) id is returned by O.bodies.append and you can acc

Re: [Yade-users] [Question #657061]: Compression strength

2017-08-29 Thread Jan Stránský
Question #657061 on Yade changed: https://answers.launchpad.net/yade/+question/657061 Jan Stránský proposed the following answer: Concerning load, just do ### def plotAddData(): f = O.forces.f(3)[1] d = 2*rayon_g load = f/pow(d,2) plot.addData( dspl = O.bodies[3

Re: [Yade-users] [Question #657322]: graphs plotting (?)

2017-09-03 Thread Jan Stránský
Question #657322 on Yade changed: https://answers.launchpad.net/yade/+question/657322 Status: Open => Needs information Jan Stránský requested more information: Hi Sam, once again, please try more effort on the question formulation: e.g. please, make the title and actual question consist

Re: [Yade-users] [Question #658909]: Question about FEM and DEM coupling

2017-10-04 Thread Jan Stránský
Question #658909 on Yade changed: https://answers.launchpad.net/yade/+question/658909 Jan Stránský requested more information: Thanks for the files, what is the problem now (I did not face any)? Jan -- You received this question notification because your team yade-users is an answer contact

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-27 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský proposed the following answer: use pack.inCylinder(...) as a predicate for randomDensePack, not surf (list of boxes) Jan -- You received this question notification because your team yade-users

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-27 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský proposed the following answer: very roughly: you have volume with dimensions 8x8x5, trying to fill there particles with 0.02 diameter, i.e. 400x400x250=40M particles.. probably that is the reason

Re: [Yade-users] [Question #658629]: Oedometric consolidation test

2017-09-27 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský proposed the following answer: a) use surf = cylSurf( ..., wire=True) to have transparent boxes to see what is hapenning inside. In this case, the shape is strange and spheres are overlapping

Re: [Yade-users] [Question #658699]: Deleting the desired interactions

2017-09-27 Thread Jan Stránský
Question #658699 on Yade changed: https://answers.launchpad.net/yade/+question/658699 Status: Open => Answered Jan Stránský proposed the following answer: Hello Xavier, O.interactions.erase [1] is what you are looking for. The deletion will be applied after O.step() cheers Jan [1] ht

Re: [Yade-users] [Question #658699]: Deleting the desired interactions

2017-09-27 Thread Jan Stránský
Question #658699 on Yade changed: https://answers.launchpad.net/yade/+question/658699 Status: Open => Answered Jan Stránský proposed the following answer: Have you run O.step() afterwards? If yes, please put here a MWE [1] thanks Jan [1] https://yade-dem.org/wiki/Howtoask -- You recei

Re: [Yade-users] [Question #658699]: Deleting the desired interactions

2017-09-27 Thread Jan Stránský
Question #658699 on Yade changed: https://answers.launchpad.net/yade/+question/658699 Status: Open => Answered Jan Stránský proposed the following answer: Thanks for the code, it is much clearer now :-) you have to cancel the enlargements after the first O.step: ### O.engi

Re: [Yade-users] [Question #658909]: Question about FEM and DEM coupling

2017-10-09 Thread Jan Stránský
Question #658909 on Yade changed: https://answers.launchpad.net/yade/+question/658909 Jan Stránský requested more information: As I wrote, I have tried your code and had no problem and I don't see where this NameError could come from, since rect is defined in the code.. please post here once

Re: [Yade-users] [Question #659620]: How to generate a hollow steel cylindrical pipe which is connected to a steel rod at the middle?

2017-10-18 Thread Jan Stránský
Question #659620 on Yade changed: https://answers.launchpad.net/yade/+question/659620 Status: Open => Needs information Jan Stránský requested more information: Hello Hashir, it very much depends on what you want to simulate. Some particle flow inside the pipe? Outside the pipe? Is the p

Re: [Yade-users] [Question #659526]: Triaxial test on dry granular material

2017-10-18 Thread Jan Stránský
Question #659526 on Yade changed: https://answers.launchpad.net/yade/+question/659526 Jan Stránský proposed the following answer: > I ran the plot but it does not update. It updates, but the values of Dz ans Sz are 0 or NaN. You can check by print plot.data >I also ran the example

Re: [Yade-users] [Question #659526]: Triaxial test on dry granular material

2017-10-23 Thread Jan Stránský
Question #659526 on Yade changed: https://answers.launchpad.net/yade/+question/659526 Jan Stránský proposed the following answer: > could you please check this script > mn,mx=Vector3(0,0,0),Vector3(0.1,0.1,0.1) > pred=pack.inAlignedBox(mn,mx) > sp=pack.randomDensePack(pred,radius=0.5

Re: [Yade-users] [Question #659526]: Triaxial test on dry granular material

2017-10-23 Thread Jan Stránský
Question #659526 on Yade changed: https://answers.launchpad.net/yade/+question/659526 Jan Stránský proposed the following answer: > My only trouble is with the stress-strain plot. It has a lot of fluctuations. Perhaps I need to find better set of data for my case. Any suggesti

Re: [Yade-users] [Question #659526]: Triaxial test on dry granular material

2017-10-23 Thread Jan Stránský
Question #659526 on Yade changed: https://answers.launchpad.net/yade/+question/659526 Jan Stránský requested more information: > please try running to cross-check to be sure I am trying the same code, please put here the current version > Is it possible to see the plot produced by the or

Re: [Yade-users] [Question #659526]: Triaxial test on dry granular material

2017-10-23 Thread Jan Stránský
Question #659526 on Yade changed: https://answers.launchpad.net/yade/+question/659526 Jan Stránský proposed the following answer: There is zero stress because there are no interactions in your model. You can try aabbExtrema() and compare it to O.bodies[triax.wall_right_id].state.pos

Re: [Yade-users] [Question #659526]: Triaxial test on dry granular material

2017-10-23 Thread Jan Stránský
Question #659526 on Yade changed: https://answers.launchpad.net/yade/+question/659526 Jan Stránský proposed the following answer: I have no idea, try [1,2], googling or ask a separate question if nothing helps.. Jan [1] https://stackoverflow.com/questions/20621070/ice-default-io-error-handler

Re: [Yade-users] [Question #661215]: Record the rotation of polyhedra by VTK and plot the i vs rot

2017-11-28 Thread Jan Stránský
Question #661215 on Yade changed: https://answers.launchpad.net/yade/+question/661215 Status: Open => Answered Jan Stránský proposed the following answer: Hello, thanks for the code, but please next time try to post a working example.. > but I got nothing because there are errors i

Re: [Yade-users] [Question #661063]: repeat scripts cause the problem? how to solve

2017-11-26 Thread Jan Stránský
Question #661063 on Yade changed: https://answers.launchpad.net/yade/+question/661063 Jan Stránský proposed the following answer: > line3 W=loadingplate.state.pos[2]-loadingplate.state.refPos[2] loadingplate.state.pos is current position of loadingplate loadingplate.state.refPos is init

Re: [Yade-users] [Question #661118]: "unable to activate the qt5 interface" yade 2017.01a

2017-11-26 Thread Jan Stránský
Question #661118 on Yade changed: https://answers.launchpad.net/yade/+question/661118 Status: Open => Needs information Jan Stránský requested more information: Hello, please specify how you installed yade (apt-get install, yade from source, yadedaily ..) and version of your operat

Re: [Yade-users] [Question #660999]: How to fill inside a gts file with spheres

2017-11-22 Thread Jan Stránský
Question #660999 on Yade changed: https://answers.launchpad.net/yade/+question/660999 Status: Open => Needs information Jan Stránský requested more information: Hi Felipe, > Hope i have provided all information yes, thanks, the info provided is very good. Please add one more

Re: [Yade-users] [Question #661017]: call a class from yade

2017-11-29 Thread Jan Stránský
Question #661017 on Yade changed: https://answers.launchpad.net/yade/+question/661017 Jan Stránský requested more information: Hi John, do you need GUI from Python? if not, do not try it :-) if yes, there are some workaraounds.. cheers Jan -- You received this question notification because

Re: [Yade-users] [Question #661242]: NameError: global name 'inGtsSurface' is not defined

2017-11-29 Thread Jan Stránský
Question #661242 on Yade changed: https://answers.launchpad.net/yade/+question/661242 Status: Open => Answered Jan Stránský proposed the following answer: would from yade import pack pack.inGtsSurface or import yade yade.pack.inGtsSurface help? Jan -- You received this quest

Re: [Yade-users] [Question #661262]: How to record the rotation angle of polyhedra?

2017-11-30 Thread Jan Stránský
Question #661262 on Yade changed: https://answers.launchpad.net/yade/+question/661262 Jan Stránský proposed the following answer: > I want to record the rotation angle of one or more polyhedra around x axis. thanks, it makes it much more clear :-) o = b.state.ori v = o.toRotationVector()

Re: [Yade-users] [Question #661262]: How to record the rotation angle of polyhedra?

2017-11-30 Thread Jan Stránský
Question #661262 on Yade changed: https://answers.launchpad.net/yade/+question/661262 Status: Open => Needs information Jan Stránský requested more information: Hello, see my comment in [1]. The problem here is the definition of "the rotation angle". I think in 3D

Re: [Yade-users] [Question #661063]: repeat scripts cause the problem? how to solve

2017-11-26 Thread Jan Stránský
Question #661063 on Yade changed: https://answers.launchpad.net/yade/+question/661063 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > O.forces.setPermF(O.bodies[0].id,(0,0,(0,0,-200-100*sin((15/pi)*O.time > ... > ForceContainer.setPermF(ForceCo

Re: [Yade-users] [Question #661063]: repeat scripts cause the problem? how to solve

2017-11-25 Thread Jan Stránský
Question #661063 on Yade changed: https://answers.launchpad.net/yade/+question/661063 Status: Open => Needs information Jan Stránský requested more information: Hello, as the error says, there is a syntax error in your script > script is same as before but some parameters were chang

Re: [Yade-users] [Question #661017]: call a class from yade

2017-11-22 Thread Jan Stránský
Question #661017 on Yade changed: https://answers.launchpad.net/yade/+question/661017 Jan Stránský proposed the following answer: Hello, > ImportError: No module named myclass it means that your main script ("another file") does not know where to look for myclass.py . Wha

Re: [Yade-users] [Question #660999]: How to fill inside a gts file with spheres

2017-11-22 Thread Jan Stránský
Question #660999 on Yade changed: https://answers.launchpad.net/yade/+question/660999 Status: Open => Answered Jan Stránský proposed the following answer: Hi Felipe, thanks for the gts file. The surface has wrong orientation. Just change it by reversing order of edges of faces (i.e. swi

Re: [Yade-users] [Question #660999]: How to fill inside a gts file with spheres

2017-11-22 Thread Jan Stránský
Question #660999 on Yade changed: https://answers.launchpad.net/yade/+question/660999 Jan Stránský proposed the following answer: Hi Felipe, thanks for the gts file. The surface has wrong orientation. Just change it by reversing order of edges of faces (i.e. switch 2nd and 3rd number lines 1340

Re: [Yade-users] [Question #660999]: How to fill inside a gts file with spheres

2017-11-23 Thread Jan Stránský
Question #660999 on Yade changed: https://answers.launchpad.net/yade/+question/660999 Jan Stránský posted a new comment: Hi Felipe, the problem is the gts file. You can fix it either manually, or use the script I provided. the code is a standalone script (run by 'python scriptName.py') which

Re: [Yade-users] [Question #661630]: maximum or mean velocity

2017-12-13 Thread Jan Stránský
Question #661630 on Yade changed: https://answers.launchpad.net/yade/+question/661630 Jan Stránský proposed the following answer: Mean (average) velocity of all particles can be computed similarly: avgVel = sum(b.state.vel.norm() for b in O.bodies) / len(O.bodies) "mean velocity d

Re: [Yade-users] [Question #661829]: 1755677907837305

2017-12-15 Thread Jan Stránský
Question #661829 on Yade changed: https://answers.launchpad.net/yade/+question/661829 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #661832]: 452478258

2017-12-15 Thread Jan Stránský
Question #661832 on Yade changed: https://answers.launchpad.net/yade/+question/661832 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #661833]: 52858548857

2017-12-15 Thread Jan Stránský
Question #661833 on Yade changed: https://answers.launchpad.net/yade/+question/661833 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #661831]: 43.6543.647

2017-12-15 Thread Jan Stránský
Question #661831 on Yade changed: https://answers.launchpad.net/yade/+question/661831 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #661826]: 192156631339109

2017-12-15 Thread Jan Stránský
Question #661826 on Yade changed: https://answers.launchpad.net/yade/+question/661826 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #661828]: 309703966202494

2017-12-15 Thread Jan Stránský
Question #661828 on Yade changed: https://answers.launchpad.net/yade/+question/661828 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #661827]: 1840062869617446

2017-12-15 Thread Jan Stránský
Question #661827 on Yade changed: https://answers.launchpad.net/yade/+question/661827 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #661825]: 910340565797560

2017-12-15 Thread Jan Stránský
Question #661825 on Yade changed: https://answers.launchpad.net/yade/+question/661825 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #661749]: Number of neighbouring sphere particles

2017-12-14 Thread Jan Stránský
Question #661749 on Yade changed: https://answers.launchpad.net/yade/+question/661749 Status: Open => Answered Jan Stránský proposed the following answer: Hi John, it pretty much depends on the definition of " immediate neighbours (or neighbours within a distance)". Below ther

Re: [Yade-users] [Question #661630]: maximum or mean velocity

2017-12-12 Thread Jan Stránský
Question #661630 on Yade changed: https://answers.launchpad.net/yade/+question/661630 Status: Open => Answered Jan Stránský proposed the following answer: Hi John, something like this? maxVel = max(b.state.vel.norm() for b in O.bodies) cheers Jan -- You received this quest

Re: [Yade-users] [Question #661754]: Force on a clump member

2017-12-17 Thread Jan Stránský
Question #661754 on Yade changed: https://answers.launchpad.net/yade/+question/661754 Status: Open => Answered Jan Stránský proposed the following answer: Hi Nishant, have a look at [1] ### pseudo code F,T = (0,0,0), (0,0,0) for each clump member: f = force of member t = tor

Re: [Yade-users] [Question #660871]: run a script in background

2017-11-17 Thread Jan Stránský
Question #660871 on Yade changed: https://answers.launchpad.net/yade/+question/660871 Status: Open => Answered Jan Stránský proposed the following answer: yade -n -x script.py & Jan -- You received this question notification because your team yade-users is an answer contact f

Re: [Yade-users] [Question #660874]: In the week of his first anniversary, here's how people on Google are searching for President Trump.

2017-11-17 Thread Jan Stránský
Question #660874 on Yade changed: https://answers.launchpad.net/yade/+question/660874 Status: Open => Invalid Jan Stránský rejected the question: spam -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #660861]: Length of O.bodies after erasing a body

2017-11-20 Thread Jan Stránský
Question #660861 on Yade changed: https://answers.launchpad.net/yade/+question/660861 Jan Stránský posted a new comment: Hi Nishant, > Is there a particular reason that the simulation continues with empty body fields? There are several reasons, e.g.: 1) performacne. O.bodies is internally

Re: [Yade-users] [Question #660590]: Loading and manipulating a saving file

2017-11-20 Thread Jan Stránský
Question #660590 on Yade changed: https://answers.launchpad.net/yade/+question/660590 Status: Open => Answered Jan Stránský proposed the following answer: Hi Amir, > Is it possible to remove (clear) a specific number of bodies (not erasing) in Yade? please specify more the diff

Re: [Yade-users] [Question #660940]: Whether the yade model can be imported into ansys software for further analysis

2017-11-21 Thread Jan Stránský
Question #660940 on Yade changed: https://answers.launchpad.net/yade/+question/660940 Status: Open => Answered Jan Stránský proposed the following answer: yes -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #660590]: Loading and manipulating a saving file

2017-11-21 Thread Jan Stránský
Question #660590 on Yade changed: https://answers.launchpad.net/yade/+question/660590 Jan Stránský posted a new comment: > It cannot be done just once at the beginning of the simulation? yes, it can be.. How it is done is completely up to you and your script.. If you request to delete t

<    8   9   10   11   12   13   14   15   16   17   >