Re: [Yade-users] [Question #702750]: How to detect the coordinates of each particle?

2022-08-15 Thread Jan Stránský
Question #702750 on Yade changed: https://answers.launchpad.net/yade/+question/702750 Status: Open => Answered Jan Stránský proposed the following answer: > ... coordinates of each particle? > ... the z-value of the uppermost particle? > ... the z-value of each particle in the uppermost layer

Re: [Yade-users] [Question #702750]: How to detect the coordinates of each particle?

2022-08-15 Thread 孙灿
Question #702750 on Yade changed: https://answers.launchpad.net/yade/+question/702750 Status: Answered => Open 孙灿 is still having a problem: Yes, I added zMax = max(b.state.pos[2] for b in O.body if isinstance(b.shape, Sphere)) to the checkUnbalanced() function, z-values can get the output, b

Re: [Yade-users] [Question #702750]: How to detect the coordinates of each particle?

2022-08-15 Thread Jan Stránský
Question #702750 on Yade changed: https://answers.launchpad.net/yade/+question/702750 Status: Open => Answered Jan Stránský proposed the following answer: Thanks for the MWE. > But the zMax = max(b.state.pos[2] for b in O.bodies) string of code didn't solve my problem. It can only get the z-

Re: [Yade-users] [Question #702750]: How to detect the coordinates of each particle?

2022-08-15 Thread 孙灿
Question #702750 on Yade changed: https://answers.launchpad.net/yade/+question/702750 Status: Answered => Open 孙灿 is still having a problem: My code is as follows: from yade import pack,plot O.bodies.append(geom.facetBox((0.05, 9, 10), (0.1, 9, 10), wallMask=63)) sp = pack.SpherePack() sp.ma

Re: [Yade-users] [Question #702750]: How to detect the coordinates of each particle?

2022-08-15 Thread Jan Stránský
Question #702750 on Yade changed: https://answers.launchpad.net/yade/+question/702750 Jan Stránský requested more information: Hello, > My code is as follows: please make your code MWE [1]: W = working. This code throw IndentationError: unexpected indent M = minimal. For the problem, there is n

Re: [Yade-users] [Question #702750]: How to detect the coordinates of each particle?

2022-08-15 Thread 孙灿
Question #702750 on Yade changed: https://answers.launchpad.net/yade/+question/702750 孙灿 posted a new comment: I tried it and found that the code had no errors, but no z-value output for the uppermost particles. My code is as follows: from yade import pack,plot O.bodies.append(geom.facetBox((0.

Re: [Yade-users] [Question #702751]: periodic boundary in the direction of the length of a rotating drum (cylinder )

2022-08-15 Thread Jan Stránský
Question #702751 on Yade changed: https://answers.launchpad.net/yade/+question/702751 Status: Open => Answered Jan Stránský proposed the following answer: It depends on definition. In Yade, if you enable periodicity, it is applied in 3 direction, no matter what. But enlarging the periodic ce

Re: [Yade-users] [Question #702751]: periodic boundary in the direction of the length of a rotating drum (cylinder )

2022-08-15 Thread Roxana Saghafian Larijani
Question #702751 on Yade changed: https://answers.launchpad.net/yade/+question/702751 Status: Answered => Open Roxana Saghafian Larijani is still having a problem: Isn’t it the case that the periodic boundary is being implemented in all three directions? Is there any way I can avoid periodic

Re: [Yade-users] [Question #702751]: periodic boundary in the direction of the length of a rotating drum (cylinder )

2022-08-15 Thread Jan Stránský
Question #702751 on Yade changed: https://answers.launchpad.net/yade/+question/702751 Status: Open => Answered Jan Stránský proposed the following answer: > I have also attached the Drum.stl attachments are not possible here in launchpad questions.. Please either provide the content of the f

Re: [Yade-users] [Question #702751]: periodic boundary in the direction of the length of a rotating drum (cylinder )

2022-08-15 Thread Roxana Saghafian Larijani
Question #702751 on Yade changed: https://answers.launchpad.net/yade/+question/702751 Status: Needs information => Open Roxana Saghafian Larijani gave more information on the question: Hello Jan, The problem is that I think the periodic boundary is being applied in all directions (but I only

Re: [Yade-users] [Question #702773]: can't get uniform radius distribution

2022-08-15 Thread Jan Stránský
Question #702773 on Yade changed: https://answers.launchpad.net/yade/+question/702773 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > my code is please provide the code as a MWE [1], W = working, complete. In this case, if you just run the code, you get "NameEr

Re: [Yade-users] [Question #702773]: can't get uniform radius distribution

2022-08-15 Thread Jinziyu
Question #702773 on Yade changed: https://answers.launchpad.net/yade/+question/702773 Jinziyu gave more information on the question: N_particles=1 -- You received this question notification because your team yade-users is an answer contact for Yade. _

[Yade-users] [Question #702773]: can't get uniform radius distribution

2022-08-15 Thread Jinziyu
New question #702773 on Yade: https://answers.launchpad.net/yade/+question/702773 my code is sp.makeCloud(Vector3(0,0,0.02),Vector3(1.5,1.5,0.02),rMean=0.008,rRelFuzz=0.33,num=N_particles) but the result is uniform radius distribute in [0.0107511,0.0132688], so rMean is about 0.01200995, not 0

Re: [Yade-users] [Question #702751]: periodic boundary in the direction of the length of a rotating drum (cylinder )

2022-08-15 Thread Jan Stránský
Question #702751 on Yade changed: https://answers.launchpad.net/yade/+question/702751 Status: Open => Needs information Jan Stránský requested more information: Hello, > But I get a very weird simulation. please be (much) more specific. > Is the center of the created box using O.cell.setBo

Re: [Yade-users] [Question #702743]: Sensitivity testing: Results seem random

2022-08-15 Thread Jan Stránský
Question #702743 on Yade changed: https://answers.launchpad.net/yade/+question/702743 Status: Open => Needs information Jan Stránský requested more information: Hello, > y-axis (vertical axis) although it does not really matter, I prefer z to be vertical > I don't see a place to post them

Re: [Yade-users] [Question #702750]: How to detect the coordinates of each particle?

2022-08-15 Thread Jan Stránský
Question #702750 on Yade changed: https://answers.launchpad.net/yade/+question/702750 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > How do I get the coordinates of each particle? it depends on the definition of "get". You can print them in a for loop: for b