Re: [Yade-users] [Question #628632]: Modeling particle breakage in YADE

2017-04-28 Thread Jan Stránský
Question #628632 on Yade changed: https://answers.launchpad.net/yade/+question/628632 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, I am not very familiar with CohFrictMat, but one solution is to set proper unp value of existing interacti

Re: [Yade-users] [Question #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-09 Thread Jan Stránský
Question #655455 on Yade changed: https://answers.launchpad.net/yade/+question/655455 Jan Stránský proposed the following answer: > Now I am trying to apply a force to this group of spheres: you have to assign force to each sphere: for sphere in spheres: O.forces.setPermF(sphere.id,(1,

Re: [Yade-users] [Question #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-09 Thread Jan Stránský
Question #655455 on Yade changed: https://answers.launchpad.net/yade/+question/655455 Jan Stránský posted a new comment: Hello, if you apply the same force to all (equal) particles, they just accelerate equally as a rigid body, so no interaction is expected behavior. cheers Jan -- You received

[Yade-users] [Question #654435]: Yade breaks terminal

2017-08-01 Thread Jan Stránský
New question #654435 on Yade: https://answers.launchpad.net/yade/+question/654435 Hello, on Ubuntu 16.04 I have installed Yade packaged version (1.20.0) by sudo apt-get install yade When I run it without script, it works as expected. When I run a script (even an empty one), the terminal is

Re: [Yade-users] [Question #655455]: Apply compressive or tensile force to a packed geometry of spheres

2017-08-08 Thread Jan Stránský
Question #655455 on Yade changed: https://answers.launchpad.net/yade/+question/655455 Status: Open => Answered Jan Stránský proposed the following answer: Hello concerning setPermF, see [1] or give more info [2] > I am not sure how we get the ID of this body. What command do we have

Re: [Yade-users] [Question #656524]: Get results

2017-08-19 Thread Jan Stránský
Question #656524 on Yade changed: https://answers.launchpad.net/yade/+question/656524 Status: Open => Needs information Jan Stránský requested more information: Hello Sam, please read [1] and specify (by link or code) which "the simple triaxial model from YADE website" y

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

2017-08-19 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, 1,2,3) to get force on one body, use O.forces.f(id) to get sum from several bodies, use sum((O.forces.f(id) for id in

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

2017-08-22 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: Hello, > PeriTriaxController no longer runs (periodic spheres are added but spheres are not compressed). always try to get num

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

2017-08-23 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský requested more information: Hello, take care of errors: > IOError: [Errno 2] No such file or directory: 'script1.py' i.e. the script.py is not in terminals' current directory. Where did you s

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

2017-08-18 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský proposed the following answer: Hello, writing the code to a script [1] and running it by yade nameOfTheScript.py should solve it [2] Alternatively you can use a (not preferable) workaround

Re: [Yade-users] [Question #631016]: How to make clumps from spheres

2017-05-03 Thread Jan Stránský
Question #631016 on Yade changed: https://answers.launchpad.net/yade/+question/631016 Status: Open => Answered Jan Stránský proposed the following answer: Would appreciate some more info. Thanks. O.bodies.appendClumped((sphere1,sphere2)) Jan [1] https://yade-dem.org/wiki/Howtoask --

Re: [Yade-users] [Question #629486]: Particle Cylinder

2017-05-03 Thread Jan Stránský
Question #629486 on Yade changed: https://answers.launchpad.net/yade/+question/629486 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > I'm new to Yade welcome :-) Unfortunately, there is not (yet) cylindrical particle (meaning "sharp" cylin

Re: [Yade-users] [Question #632229]: Triaxial test for concrete specimen

2017-05-12 Thread Jan Stránský
Question #632229 on Yade changed: https://answers.launchpad.net/yade/+question/632229 Status: Open => Answered Jan Stránský proposed the following answer: Hi Mike, I see the biggest difference, that the approach with facets can be applied to more general shapes (like cylinder). On

Re: [Yade-users] [Question #632015]: gravity for certain material instance

2017-05-12 Thread Jan Stránský
Question #632015 on Yade changed: https://answers.launchpad.net/yade/+question/632015 Jan Stránský proposed the following answer: sure: ## vaporMat = FrictMat(...) ... b = ... O.bodies.append(b) if b.mat == vaporMat: O.forces.addF(b.id,f,permanent=True

Re: [Yade-users] [Question #631788]: Flow of sphere clump.

2017-05-11 Thread Jan Stránský
Question #631788 on Yade changed: https://answers.launchpad.net/yade/+question/631788 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > it did not work. > Injection does not work. please always provide a reason why it does not work (there is this and t

Re: [Yade-users] [Question #632015]: gravity for certain material instance

2017-05-11 Thread Jan Stránský
Question #632015 on Yade changed: https://answers.launchpad.net/yade/+question/632015 Status: Open => Answered Jan Stránský proposed the following answer: Hi Behzad, you can mimic (anti)gravity by prescribin permanent force on certain bodies.

Re: [Yade-users] [Question #631788]: Flow of sphere clump.

2017-05-11 Thread Jan Stránský
Question #631788 on Yade changed: https://answers.launchpad.net/yade/+question/631788 Status: Open => Answered Jan Stránský proposed the following answer: O.bodies.appendClumped returns (clumpID,listOfMemberIds), so "for i in ss2" is wrong here. O.bodies[cid]... is the correct

Re: [Yade-users] [Question #632015]: gravity for certain material instance

2017-05-13 Thread Jan Stránský
Question #632015 on Yade changed: https://answers.launchpad.net/yade/+question/632015 Jan Stránský posted a new comment: > I need to repeat this command Is it a problem? from source code point of view, you can of course wrap all it into one function # def myOBodiesAppend(b): O.bodies.app

Re: [Yade-users] [Question #632229]: Triaxial test for concrete specimen

2017-05-13 Thread Jan Stránský
Question #632229 on Yade changed: https://answers.launchpad.net/yade/+question/632229 Jan Stránský posted a new comment: > Is that a good idea? Sounds reasonable. But before an idea is tested and proved to be good, it is better not to guarantee it :-) cheers Jan -- You received this quest

Re: [Yade-users] [Question #632670]: a problem about approxSectionArea

2017-05-16 Thread Jan Stránský
Question #632670 on Yade changed: https://answers.launchpad.net/yade/+question/632670 Status: Open => Answered Jan Stránský proposed the following answer: Hello, coord_25 = mm+.25*(mx-mm) # mx - mm = length of the sample along given axis # mm + .25*(mx-mm) = mm+.25*length # coord

Re: [Yade-users] [Question #632670]: a problem about approxSectionArea

2017-05-16 Thread Jan Stránský
Question #632670 on Yade changed: https://answers.launchpad.net/yade/+question/632670 Status: Open => Answered Jan Stránský proposed the following answer: > If the sample is cube, does it use coord_100? what does "it" mean? If the sample is cubic, the choice of coord s

Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-09 Thread Jan Stránský
Question #631650 on Yade changed: https://answers.launchpad.net/yade/+question/631650 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > the export format is STL,but I can't find the effective way to export it Why do you want/need to export your model to

Re: [Yade-users] [Question #631723]: Add Force every iterPeriod

2017-05-09 Thread Jan Stránský
Question #631723 on Yade changed: https://answers.launchpad.net/yade/+question/631723 Status: Open => Answered Jan Stránský proposed the following answer: Hello, 1) yes, the approach is correct 2) def addForce(): O.forces.addF(0,Vector3(0,0,5*O.iterPeriod)) O.forces.addF(1,Vector3(

Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-09 Thread Jan Stránský
Question #631650 on Yade changed: https://answers.launchpad.net/yade/+question/631650 Jan Stránský proposed the following answer: Thanks for more info. I think a good approach is to export spheres in a standard way and then convert this file to STL. Than the question would become &quo

Re: [Yade-users] [Question #631788]: Flow of sphere clump.

2017-05-09 Thread Jan Stránský
Question #631788 on Yade changed: https://answers.launchpad.net/yade/+question/631788 Status: Open => Answered Jan Stránský proposed the following answer: Something like this? # r = 1 O.bodies.append(wall(6*r,2)) def inject(): ss1 = ( sphere((0,0*2**r,0*r

Re: [Yade-users] [Question #626814]: Calculate the particle size distribution after particle crushing

2017-05-09 Thread Jan Stránský
Question #626814 on Yade changed: https://answers.launchpad.net/yade/+question/626814 Status: Open => Answered Jan Stránský proposed the following answer: Yes, you get IDs of spheres forming individual macro-grains. I think your question should be split: - how to get individual standal

Re: [Yade-users] [Question #633674]: How you move a wall or facet?

2017-05-23 Thread Jan Stránský
Question #633674 on Yade changed: https://answers.launchpad.net/yade/+question/633674 Status: Open => Answered Jan Stránský proposed the following answer: Hello, you need to assign pos as full Vector3 at once: O.bodies[3].state.pos[1]=1.5 # does not work pos = O.bodies[3].state.pos # c

Re: [Yade-users] [Question #630997]: SnapshotEngines timeout error!

2017-05-22 Thread Jan Stránský
Question #630997 on Yade changed: https://answers.launchpad.net/yade/+question/630997 Jan Stránský posted a new comment: Hi Seti, try to run it with just O.run(N) # without ",True" cheers Jan -- You received this question notification because your team yade-users is an answer contac

Re: [Yade-users] [Question #633480]: CohFrictPhys model, setCohesionNow orsetCohesionOnNewContacts=True crashes simulation

2017-05-22 Thread Jan Stránský
Question #633480 on Yade changed: https://answers.launchpad.net/yade/+question/633480 Status: Open => Needs information Jan Stránský requested more information: Hello, what operation system and yade version do you and your fried use? Thanks Jan -- You received this question notificat

Re: [Yade-users] [Question #631147]: fail to check the permF I applied

2017-05-24 Thread Jan Stránský
Question #631147 on Yade changed: https://answers.launchpad.net/yade/+question/631147 Jan Stránský proposed the following answer: with current implementation, you only can read permanent forces before adding new permanent forces and after O.step()/O.run() if it is a problem, you can: - modify

Re: [Yade-users] [Question #634452]: A question about the function

2017-05-28 Thread Jan Stránský
Question #634452 on Yade changed: https://answers.launchpad.net/yade/+question/634452 Jan Stránský proposed the following answer: Hi, e.g.: czmax = max(b.state.pos[2] for b in O.bodies if isinstance(b.shape,Spheres)) or similarly on more lines: czmax = -1e20 for b in O.bodies

Re: [Yade-users] [Question #634446]: A problem about simulation breaking

2017-05-28 Thread Jan Stránský
Question #634446 on Yade changed: https://answers.launchpad.net/yade/+question/634446 Status: Open => Answered Jan Stránský proposed the following answer: Hello, this happen when some important values becomes NaN. Here sigmaN, which is probably a consequence that position of some bod

Re: [Yade-users] [Question #632475]: How to measure the void ratio for a select range?

2017-05-30 Thread Jan Stránský
Question #632475 on Yade changed: https://answers.launchpad.net/yade/+question/632475 Jan Stránský posted a new comment: Hello, please be more specific where the problem is. How to do it theoretically? How to code it? Also a minimum working example would be nice, describing where you don't know

Re: [Yade-users] [Question #636692]: soil-tire contact by FEM-DEM coupling

2017-05-30 Thread Jan Stránský
Question #636692 on Yade changed: https://answers.launchpad.net/yade/+question/636692 Jan Stránský proposed the following answer: Hi Ryota, I will put my codes to github soon cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade

Re: [Yade-users] [Question #632453]: Growing radius in randomDensePack

2017-05-30 Thread Jan Stránský
Question #632453 on Yade changed: https://answers.launchpad.net/yade/+question/632453 Jan Stránský posted a new comment: Hi Xavier, you can grow radius until they touch a surrounding particle A specific implementation could be something like this (not tested): # class

Re: [Yade-users] [Question #636678]: Jupyter notebook support

2017-05-30 Thread Jan Stránský
Question #636678 on Yade changed: https://answers.launchpad.net/yade/+question/636678 Status: Open => Answered Jan Stránský proposed the following answer: Hello, I am sorry, but this message seems to me like an (actually not very good) advertisement.. Put here by "Ask a question

Re: [Yade-users] [Question #635935]: creating a cloud of cuboids

2017-05-30 Thread Jan Stránský
Question #635935 on Yade changed: https://answers.launchpad.net/yade/+question/635935 Status: Open => Answered Jan Stránský proposed the following answer: Hi Jesse, yes, periodicity might be the reason, but it is difficult to say without the code. Try for b O.bodies: b.state.

Re: [Yade-users] [Question #636678]: Jupyter notebook support

2017-05-31 Thread Jan Stránský
Question #636678 on Yade changed: https://answers.launchpad.net/yade/+question/636678 Jan Stránský proposed the following answer: Hello, you used "Ask a question" interface, wrote already two comments and there is not a single question. > But I think supporting jupyter would he

Re: [Yade-users] [Question #636678]: Jupyter notebook support

2017-06-03 Thread Jan Stránský
Question #636678 on Yade changed: https://answers.launchpad.net/yade/+question/636678 Jan Stránský proposed the following answer: Hello, > Not really, I'm not affiliated with jupyter at all :) then I am sorry, it really looked like you are :-) To use yade in python, install python-yade pack

Re: [Yade-users] [Question #640434]: check if the model is right

2017-06-03 Thread Jan Stránský
Question #640434 on Yade changed: https://answers.launchpad.net/yade/+question/640434 Status: Open => Answered Jan Stránský proposed the following answer: Hello Wang, > I am new here welcome :-) > I don't know what is wrong actually nothing is wrong, your code works as expect

Re: [Yade-users] [Question #636678]: Jupyter notebook support

2017-06-05 Thread Jan Stránský
Question #636678 on Yade changed: https://answers.launchpad.net/yade/+question/636678 Jan Stránský proposed the following answer: Just a note, you can have installed both yadedaily and yade alongside Concerning the import error, I got completely different error :-) as a workaround, try to use

Re: [Yade-users] [Question #643878]: Uniaxial strainer source

2017-06-15 Thread Jan Stránský
Question #643878 on Yade changed: https://answers.launchpad.net/yade/+question/643878 Status: Open => Answered Jan Stránský proposed the following answer: Hi Manon, see [1,2] positiveids and negativeids are ids of bodies of one or the other side, whose displacement/velocity along strain

Re: [Yade-users] [Question #641561]: Hinge constraint between facets

2017-06-17 Thread Jan Stránský
Question #641561 on Yade changed: https://answers.launchpad.net/yade/+question/641561 Status: Open => Answered Jan Stránský proposed the following answer: Hello Alessandro, > 1) Is it possible to add an hinge constraint between the lower edge of the fin and the side of the cy

Re: [Yade-users] [Question #274036]: I can't open Inspector in Ubuntu 15.10 with yadedaily.

2017-06-17 Thread Jan Stránský
Question #274036 on Yade changed: https://answers.launchpad.net/yade/+question/274036 Jan Stránský posted a new comment: Hi Jason, i'm wondering where I can do the modification in the script, where something.setMargin(...) is used. cheers Jan -- You received this question notification

Re: [Yade-users] [Question #643878]: Uniaxial strainer source

2017-06-17 Thread Jan Stránský
Question #643878 on Yade changed: https://answers.launchpad.net/yade/+question/643878 Jan Stránský proposed the following answer: Hi Manon, have a look at [1], figure 3.8 (page 49). Red particles are posids and green particles are negids (or vice versa, you can easily test it). Their velocity

Re: [Yade-users] [Question #643823]: Transforming a stl in gts surface

2017-06-14 Thread Jan Stránský
Question #643823 on Yade changed: https://answers.launchpad.net/yade/+question/643823 Status: Open => Answered Jan Stránský proposed the following answer: Hello Abimael, https://answers.launchpad.net/yade/+question/406791 cheers Jan -- You received this question notification because y

Re: [Yade-users] [Question #641619]: strain - stress curve of three point bending test

2017-06-15 Thread Jan Stránský
Question #641619 on Yade changed: https://answers.launchpad.net/yade/+question/641619 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, it strongly depends on the context. In uniaxial test, it is simply strain = enlargement / original length stress = force / a

Re: [Yade-users] [Question #643878]: Uniaxial strainer source

2017-06-19 Thread Jan Stránský
Question #643878 on Yade changed: https://answers.launchpad.net/yade/+question/643878 Status: Open => Answered Jan Stránský proposed the following answer: Hi Manon, > I have another question related to the calculation of average stress : is it possible to obtain the cross sectio

Re: [Yade-users] [Question #644156]: Deformation Record

2017-06-18 Thread Jan Stránský
Question #644156 on Yade changed: https://answers.launchpad.net/yade/+question/644156 Status: Open => Answered Jan Stránský proposed the following answer: Hi Seti, https://github.com/yade/trunk/blob/master/examples/tesselationwrapper/tesselationWrapper.py cheers Jan PS: google.com ->

Re: [Yade-users] [Question #644156]: Deformation Record

2017-06-18 Thread Jan Stránský
Question #644156 on Yade changed: https://answers.launchpad.net/yade/+question/644156 Status: Open => Answered Jan Stránský proposed the following answer: > My understanding was this script has been written for Triaxial test The description of the script says "Ex

Re: [Yade-users] [Question #630281]: randomDensePack explodes because of penetrationDepth

2017-05-03 Thread Jan Stránský
Question #630281 on Yade changed: https://answers.launchpad.net/yade/+question/630281 Jan Stránský posted a new comment: sorry, the reference for previous post :-) [1] https://answers.launchpad.net/yade/+question/266828 -- You received this question notification because your team yade-users

Re: [Yade-users] [Question #630281]: randomDensePack explodes because of penetrationDepth

2017-05-03 Thread Jan Stránský
Question #630281 on Yade changed: https://answers.launchpad.net/yade/+question/630281 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, see [1], Jerome's answer #4. The problem is that after InteractionLoop, the particles are moved by NewtonIntegrator,

Re: [Yade-users] [Question #630910]: Uniaxial test with CohFrictMat

2017-05-03 Thread Jan Stránský
Question #630910 on Yade changed: https://answers.launchpad.net/yade/+question/630910 Status: Open => Answered Jan Stránský proposed the following answer: Hi Manon, see my answer at [1] and and Jerome's answer #4 at [2]. The solution is to use O.dt=0 for the first O.s

Re: [Yade-users] [Question #630281]: randomDensePack explodes because of penetrationDepth

2017-05-03 Thread Jan Stránský
Question #630281 on Yade changed: https://answers.launchpad.net/yade/+question/630281 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, you need O.step() before setting unp: ### O.dt = 0 O.step() # here for i in O.interactions: i.phys.

Re: [Yade-users] [Question #631147]: fail to check the permF I applied

2017-05-05 Thread Jan Stránský
Question #631147 on Yade changed: https://answers.launchpad.net/yade/+question/631147 Status: Open => Answered Jan Stránský proposed the following answer: Hello, I have tried it on a minimal example and worked for me without problem. Please provide (as small as possible) script, wh

Re: [Yade-users] [Question #630468]: CPMMat Stiffness formulation versus other cohesive laws

2017-05-02 Thread Jan Stránský
Question #630468 on Yade changed: https://answers.launchpad.net/yade/+question/630468 Jan Stránský posted a new comment: Hello, as Manon said, CPM was designed for particles with the same radius (because particles was just artificial discretization and not representing physical grains). So

Re: [Yade-users] [Question #658514]: plot of surface displacement, total displacement and force at left of box

2017-09-22 Thread Jan Stránský
Question #658514 on Yade changed: https://answers.launchpad.net/yade/+question/658514 Jan Stránský proposed the following answer: Hello, > import numpy.linalg as la > tDispl = la.norm(O.bodies[1].state.displ()) just O.bodies[1].state.displ().norm() is also ok to use multiple grap

Re: [Yade-users] [Question #466546]: Problem installing yadedaily

2017-09-22 Thread Jan Stránský
Question #466546 on Yade changed: https://answers.launchpad.net/yade/+question/466546 Jan Stránský posted a new comment: Hello, for completely new question, please open a new thread (especially if the answer is closed already) cheers Jan -- You received this question notification because your

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

2017-10-05 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský posted a new comment: It is one option. Another (perhaps "more physical") is to play with time step. Jan -- You received this question notification because your team yade-users is

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

2017-10-05 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský posted a new comment: Sorry, in the case of a plate, probably playing with mass is ok also from "physical point of view" :-) good luck Jan -- You received this question notification be

Re: [Yade-users] [Question #658887]: Compression of a packing created using RegularOrtho

2017-10-04 Thread Jan Stránský
Question #658887 on Yade changed: https://answers.launchpad.net/yade/+question/658887 Status: Open => Answered Jan Stránský proposed the following answer: Hi Xavier, repeating Robert, please be more specific when the explosion occurs. I have tried your script, running it 1 time st

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 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > NameError: global name 'facet' is not defined if you use standalone yade, it imports a lot of stuff (like function

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

2017-10-04 Thread Jan Stránský
Question #658629 on Yade changed: https://answers.launchpad.net/yade/+question/658629 Jan Stránský proposed the following answer: > the box at the top (upper_plate) would have a default mass. Right? depending on "default". It has mass equal to its material density times its volume

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ý proposed the following answer: Similar to facet, use either from yade import Vector3 or yade.Vector3 cheers Jan -- You received this question notification because your team yade-users is an answer

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: Sorry, have not checked your code in detail, there you have indeed Vector3.. Does the error really says 'vector' is not defined? According to the error, it considered

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: >NameError: global name 'rect' is not defined > ... > from yade.utils import facet > but it shows: > ImportError: cannot import name rect rect is n

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ý proposed the following answer: Ok, I have read the previous pssages in detail > I would like to generate a beam by FEM and falling down on the Polyhedra particles layers which I generated by Y

Re: [Yade-users] [Question #659211]: Fixing spheres

2017-10-10 Thread Jan Stránský
Question #659211 on Yade changed: https://answers.launchpad.net/yade/+question/659211 Status: Open => Answered Jan Stránský proposed the following answer: b.state.vel instead of b.vel, same for angVel Jan -- You received this question notification because your team yade-users is an ans

Re: [Yade-users] [Question #652261]: at the beginning steps, the stresses are the same when i use different young of balls

2017-10-15 Thread Jan Stránský
Question #652261 on Yade changed: https://answers.launchpad.net/yade/+question/652261 Status: Open => Answered Jan Stránský proposed the following answer: > is there any parameters related to tanFrictionAngle i forgot to write? what is "everything necessary" you said i

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

2017-10-16 Thread Jan Stránský
Question #659526 on Yade changed: https://answers.launchpad.net/yade/+question/659526 Status: Open => Answered Jan Stránský proposed the following answer: 2) triax.stress is a function [1], so as the error says, it has no __getitem__ (you cannot do triax.stress[0]) Jan [1] https://y

Re: [Yade-users] [Question #658946]: Controller is not working

2017-10-05 Thread Jan Stránský
Question #658946 on Yade changed: https://answers.launchpad.net/yade/+question/658946 Status: Open => Answered Jan Stránský proposed the following answer: Hi Mohsen, > -DUSE_QT5=0 this means that you compiled yade without qt5, i.e without the GUI. Changing it to =1 could solve the p

Re: [Yade-users] [Question #658971]: trapdoor movements

2017-10-05 Thread Jan Stránský
Question #658971 on Yade changed: https://answers.launchpad.net/yade/+question/658971 Status: Open => Answered Jan Stránský proposed the following answer: https://answers.launchpad.net/yade/+question/656538 -- You received this question notification because your team yade-us

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

2017-10-05 Thread Jan Stránský
Question #658909 on Yade changed: https://answers.launchpad.net/yade/+question/658909 Jan Stránský requested more information: Hi Kun, so there must be some inconsistency. In the last code you posted there is ### def rect(vs,**kw): v1,v2,v3,v4 = vs return [ yade.utils.facet((v1,v2,v3),**kw

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

2017-10-05 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, the trapdoor motion is done by moveBottom function, which is called in checker() function, which is not used in your script. J

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

2017-10-17 Thread Jan Stránský
Question #659526 on Yade changed: https://answers.launchpad.net/yade/+question/659526 Jan Stránský proposed the following answer: Hello, > The problem still persists again, triax.stress is a function and you cannot do triax.stress[...], first you have to call it with (...), so I guess

Re: [Yade-users] [Question #659211]: Fixing spheres

2017-10-11 Thread Jan Stránský
Question #659211 on Yade changed: https://answers.launchpad.net/yade/+question/659211 Jan Stránský posted a new comment: Hi Mihsen, > if isinstance(b.shape,Clump): yes, I guess this condition could be important :-) next time, please post complete code, this could have been guessed direc

Re: [Yade-users] [Question #658994]: the bugs in my scripts of layer sample pareparing code

2017-10-11 Thread Jan Stránský
Question #658994 on Yade changed: https://answers.launchpad.net/yade/+question/658994 Status: Open => Needs information Jan Stránský requested more information: Hello, I have tried your code, but there is a syntax error: compFricDegree = 0.85*compFricDegree IndentationError: expec

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

2017-10-11 Thread Jan Stránský
Question #658909 on Yade changed: https://answers.launchpad.net/yade/+question/658909 Jan Stránský proposed the following answer: (1) yes, the two pieces of code are equivalent, but still you use rect(...), so I see no reason why this eorks and the previous did not :-D (2) as FEM part

Re: [Yade-users] [Question #659352]: best bodies for massonry brick

2017-10-12 Thread Jan Stránský
Question #659352 on Yade changed: https://answers.launchpad.net/yade/+question/659352 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > what is the "best" bodie to use in order to simulaire a massonry rectancular brick assembly ? it depends on m

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 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > Can this be performed? yes > or do I create another spherical body and try it with that? You can use spherical bo

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

2017-08-30 Thread Jan Stránský
Question #655866 on Yade changed: https://answers.launchpad.net/yade/+question/655866 Jan Stránský proposed the following answer: Always specify your problem, what it does, what you expect it should do and does not etc. "it does not work" has no informative value. Furthermore, with

Re: [Yade-users] [Question #657848]: a tension test on a grid

2017-09-11 Thread Jan Stránský
Question #657848 on Yade changed: https://answers.launchpad.net/yade/+question/657848 Status: Open => Answered Jan Stránský proposed the following answer: Hello, https://answers.launchpad.net/yade/+question/656657 cheers Jan -- You received this question notification because your team y

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

2017-09-11 Thread Jan Stránský
Question #657637 on Yade changed: https://answers.launchpad.net/yade/+question/657637 Jan Stránský posted a new comment: Yes, it should be fine Jan -- You received this question notification because your team yade-users is an answer contact for Yade

Re: [Yade-users] [Question #654435]: Yade breaks terminal

2017-09-11 Thread Jan Stránský
Question #654435 on Yade changed: https://answers.launchpad.net/yade/+question/654435 Jan Stránský posted a new comment: Hi Robert, the old laptop was stolen, it was ASUS K55A sx198, bought in 10/2012. current laptop: Gallium 0.4 on AMD MULLINS (DRM 2.49.0 / 4.10.0-33-generic, LLVM 3.8.0) cheers

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

2017-09-11 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: Hello, once again, please take care of errors. Unless you have really strange file structure, it should give "IOError: [Errno 2] No such file or directory: 'ho

Re: [Yade-users] [Question #657677]: How to export and import a irregular shape particles model.

2017-09-11 Thread Jan Stránský
Question #657677 on Yade changed: https://answers.launchpad.net/yade/+question/657677 Jan Stránský proposed the following answer: Hello, concerning the error, you can either follow Bruno's suggestion, or just leave it as it is (with the risk of "suboptimal performance", wh

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

2017-09-06 Thread Jan Stránský
Question #657637 on Yade changed: https://answers.launchpad.net/yade/+question/657637 Status: Open => Answered Jan Stránský proposed the following answer: Hello, you can use walls or facets or boxes. See e.g. [1] for static boundary or [2] for active boundary applying lateral confin

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

2017-09-06 Thread Jan Stránský
Question #657126 on Yade changed: https://answers.launchpad.net/yade/+question/657126 Jan Stránský proposed the following answer: > Also, how does one reach the file where the data is stored? after the simulation, you can save data with plot.saveDataTxt(fileName) then you simply re

Re: [Yade-users] [Question #657560]: Plotting force & displacement of impactor in a penetration test

2017-09-06 Thread Jan Stránský
Question #657560 on Yade changed: https://answers.launchpad.net/yade/+question/657560 Jan Stránský proposed the following answer: This time the question is completely unrelated to Plotting force & displacement, so next time please open a new question. https://github.com/yade/trunk/blob/ma

Re: [Yade-users] [Question #657560]: Plotting force & displacement of impactor in a penetration test

2017-09-06 Thread Jan Stránský
Question #657560 on Yade changed: https://answers.launchpad.net/yade/+question/657560 Jan Stránský proposed the following answer: Once again, take care of errors :-) I got: TypeError ... ---> 14 Dz=hammer.state.displ[2] should be Dz=hammer.state.displ()[2] # state.displ() is a fanct

Re: [Yade-users] [Question #657564]: continuous creation and destruction of bodies

2017-09-06 Thread Jan Stránský
Question #657564 on Yade changed: https://answers.launchpad.net/yade/+question/657564 Jan Stránský posted a new comment: Hi guys, just a theoretical comment concerning O.bodies.erase,. The memory of erased body is freed, but the space in BodyContainer remains (O.bodies.append does not reuse ids

Re: [Yade-users] [Question #656657]: tension test on grids

2017-09-06 Thread Jan Stránský
Question #656657 on Yade changed: https://answers.launchpad.net/yade/+question/656657 Jan Stránský posted a new comment: Hello, I have tried your script. The "instant" velocity you see is due to gravity. You don't see the effect of the "permanent" velocity, because for some r

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

2017-09-06 Thread Jan Stránský
Question #657637 on Yade changed: https://answers.launchpad.net/yade/+question/657637 Jan Stránský proposed the following answer: Hi, > O.forces.addF(f.id,preStress*a*n) --> I am confused about the application of forces using the facetcylinder as a whole. The (f.id,Prestress*a*n) use

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

2017-09-06 Thread Jan Stránský
Question #657637 on Yade changed: https://answers.launchpad.net/yade/+question/657637 Jan Stránský proposed the following answer: > I do not want the spheres to move out of the boundary in both cases, you will have to use different engines, namely Bo1_Facet, Ig2_Facet_Sphere, see [2] > Us

Re: [Yade-users] [Question #657564]: continuous creation and destruction of bodies

2017-09-06 Thread Jan Stránský
Question #657564 on Yade changed: https://answers.launchpad.net/yade/+question/657564 Jan Stránský posted a new comment: Hello, > "b->id=-1;//else it sits in the python scope without a chance to be inserted again" this is just that you can re-append erased body if you have i

Re: [Yade-users] [Question #654642]: installation of Yade in Mac OS X

2017-09-07 Thread Jan Stránský
Question #654642 on Yade changed: https://answers.launchpad.net/yade/+question/654642 Status: Open => Answered Jan Stránský proposed the following answer: Hello, for specific problems or errors, please post the code (ideally MWE [1]) you use. > Yade is working very slow please b

Re: [Yade-users] [Question #657677]: How to export and import a irregular shape particles model.

2017-09-06 Thread Jan Stránský
Question #657677 on Yade changed: https://answers.launchpad.net/yade/+question/657677 Status: Open => Answered Jan Stránský proposed the following answer: Hello, this is correct approach. Before export.textPolyhedra, there should probably be some running, in the script e.g. O.run(N,T

Re: [Yade-users] [Question #657943]: load and displacement

2017-09-13 Thread Jan Stránský
Question #657943 on Yade changed: https://answers.launchpad.net/yade/+question/657943 Status: Open => Answered Jan Stránský proposed the following answer: Hi Sam, take case of errors. Running your script, I got "SyntaxError: invalid syntax", because you have yade

Re: [Yade-users] [Question #657943]: load and displacement

2017-09-13 Thread Jan Stránský
Question #657943 on Yade changed: https://answers.launchpad.net/yade/+question/657943 Jan Stránský proposed the following answer: 3) either you know it from the time you created it using pack.inCylinder, or you can guess it from aabbDim() function -- You received this question notification

Re: [Yade-users] [Question #657911]: saving the data after simulation

2017-09-12 Thread Jan Stránský
Question #657911 on Yade changed: https://answers.launchpad.net/yade/+question/657911 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > print os.path.abspath("/home/zg/scriptf/representary1.dat") no need to print it, it was just to show the di

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