Re: [Yade-users] [Question #688690]: pack.SpherePack.save() function saved particles data format

2020-02-17 Thread gaoxuesong
Question #688690 on Yade changed: https://answers.launchpad.net/yade/+question/688690 Status: Answered => Solved gaoxuesong confirmed that the question is solved: I have tried and removed the '\r' following your method. Thanks Jan. Your instructions are really helpful. --

Re: [Yade-users] [Question #688789]: How to restart a simulation from a saved point with restoring geometry movement?

2020-02-17 Thread gaoxuesong
Question #688789 on Yade changed: https://answers.launchpad.net/yade/+question/688789 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Hi Jan, Thank you very much. Yes, you are right. The simulation will proceed if i use the original O.engines. I've

Re: [Yade-users] [Question #688690]: pack.SpherePack.save() function saved particles data format

2020-02-17 Thread gaoxuesong
Question #688690 on Yade changed: https://answers.launchpad.net/yade/+question/688690 gaoxuesong posted a new comment: Which editor can show the carriage return symbols, such as '^M'? I have opened the translated file using the Ubuntu default editor but there is no format error

Re: [Yade-users] [Question #688690]: pack.SpherePack.save() function saved particles data format

2020-02-17 Thread gaoxuesong
Question #688690 on Yade changed: https://answers.launchpad.net/yade/+question/688690 gaoxuesong posted a new comment: Hi Jan, I use a Spyder editor integrated in Anaconda on Windows 10 to conduct the translation code. By the way, what does the '/\r//' mean in your command? Thanks

Re: [Yade-users] [Question #688690]: pack.SpherePack.save() function saved particles data format

2020-02-14 Thread gaoxuesong
Question #688690 on Yade changed: https://answers.launchpad.net/yade/+question/688690 Status: Needs information => Open gaoxuesong gave more information on the question: Sorry for that. Below is my MWE. 1. the initial particles set saved by sp = pack.SpherePack() sp.s

[Yade-users] [Question #688789]: How to restart a simulation from a saved point with restoring geometry movement?

2020-02-14 Thread gaoxuesong
New question #688789 on Yade: https://answers.launchpad.net/yade/+question/688789 Hi. I want to try some parameters that come into play at a late time point, like 1.0s. So i save the simulation at 0.9s and then restart it by O.load() method, followed by trying new parameters. I have a roller c

Re: [Yade-users] [Question #688690]: pack.SpherePack.save() function saved particles data format

2020-02-12 Thread gaoxuesong
Question #688690 on Yade changed: https://answers.launchpad.net/yade/+question/688690 Status: Needs information => Open gaoxuesong gave more information on the question: The error is shown as, RuntimeError: bad lexical cast: source type value could not be interpreted as target Tha

[Yade-users] [Question #688690]: pack.SpherePack.save() function saved particles data format

2020-02-11 Thread gaoxuesong
New question #688690 on Yade: https://answers.launchpad.net/yade/+question/688690 Hi. I have a file of spherical particles saved by function of pack.SpherePack().save(). It has the format as follows, 0.000919246 0.000859971 0.000602774 1.20067e-05 -1 0.000959836 0.00055149 0.000975021 2.11065e-

Re: [Yade-users] [Question #688343]: Slow calculation speed with a large number of facets imported from stl mesh

2020-01-30 Thread gaoxuesong
Question #688343 on Yade changed: https://answers.launchpad.net/yade/+question/688343 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Thanks, Jan. I cut off some parts of the mesh and get a total number of 93,011. The calculation speed is 60 iter/s. i think t

[Yade-users] [Question #688343]: Slow calculation speed with a large number of facets imported from stl mesh

2020-01-29 Thread gaoxuesong
New question #688343 on Yade: https://answers.launchpad.net/yade/+question/688343 Hi. Now i am simulating a case where spherical particles are spreading on a substrate imported from a stl mesh. The number of the spherical particles is 6,000 and the number of the facets from stl mesh is 447,262.

Re: [Yade-users] [Question #684115]: Some basic concepts in FrictPhys.cpp

2019-10-01 Thread gaoxuesong
Question #684115 on Yade changed: https://answers.launchpad.net/yade/+question/684115 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Thanks very much for your answers. Helps me a lot. -- You received this question notification because your team yade-users

Re: [Yade-users] [Question #684115]: Some basic concepts in FrictPhys.cpp

2019-09-22 Thread gaoxuesong
Question #684115 on Yade changed: https://answers.launchpad.net/yade/+question/684115 Status: Solved => Open gaoxuesong is still having a problem: Can i change the status of this question? I make a mistake to set it as solved. :( -- You received this question notification because your t

Re: [Yade-users] [Question #684115]: Some basic concepts in FrictPhys.cpp

2019-09-22 Thread gaoxuesong
Question #684115 on Yade changed: https://answers.launchpad.net/yade/+question/684115 Status: Open => Solved gaoxuesong confirmed that the question is solved: The source code website is: https://gitlab.com/yade-dev/trunk/blob/master/pkg/dem/FrictPhys.cpp -- You received this quest

[Yade-users] [Question #684115]: Some basic concepts in FrictPhys.cpp

2019-09-22 Thread gaoxuesong
New question #684115 on Yade: https://answers.launchpad.net/yade/+question/684115 Hi. Now i am studying the source code of FrictPhys.cpp. I am confused about some concepts even after i check the programmer manual. My questions are mainly about these codes, 1. const shared_ptr& mat1 = YADE_PTR

Re: [Yade-users] [Question #683109]: Why my iteration speed is so low?

2019-08-22 Thread gaoxuesong
Question #683109 on Yade changed: https://answers.launchpad.net/yade/+question/683109 gaoxuesong posted a new comment: Hi Robert, thanks for your test. When i try to use -j8, i have warn, like ### WARN /build/yade-fDuCoe/yade-2018.02b/pkg/common/InsertionSortCollider.cpp:76

Re: [Yade-users] [Question #683109]: Why my iteration speed is so low?

2019-08-21 Thread gaoxuesong
Question #683109 on Yade changed: https://answers.launchpad.net/yade/+question/683109 gaoxuesong posted a new comment: Hi Robert, i have sphere and facet particles in my model. The total sphere is 6691, facet is 2020. So with this number of bodies, is it necessary to use multiple cores, like -j

Re: [Yade-users] [Question #683109]: Why my iteration speed is so low?

2019-08-21 Thread gaoxuesong
Question #683109 on Yade changed: https://answers.launchpad.net/yade/+question/683109 gaoxuesong posted a new comment: Hi, Duriez. You are right. I know the capability is limited. However, i post the performance test of Yade on my computer and want to make sure the problem of slow speed is not

[Yade-users] [Question #683109]: Why my iteration speed is so low?

2019-08-20 Thread gaoxuesong
New question #683109 on Yade: https://answers.launchpad.net/yade/+question/683109 Hi, i try to do some simulation about particle packing behavior in a rotating drum. However the iteration speed is so low as about 30 iterations per second. Nevertheless, at the beginning when the particles are far

Re: [Yade-users] [Question #682916]: The number of threads or cores to used running yade?

2019-08-19 Thread gaoxuesong
Question #682916 on Yade changed: https://answers.launchpad.net/yade/+question/682916 Status: Answered => Solved gaoxuesong confirmed that the question is solved: So i think i will ask a new question about why my simulation speed is so low. I will supply a MSW example. -- You received t

Re: [Yade-users] [Question #682898]: Which model is used to calculate the cohesive force?

2019-08-19 Thread gaoxuesong
Question #682898 on Yade changed: https://answers.launchpad.net/yade/+question/682898 gaoxuesong posted a new comment: Thanks. Now i understand the adhesion attribute in the CohFricPhys material and it is a adhesion strength. Sorry i don't understand the c++ code. Is there any papers to

Re: [Yade-users] [Question #682916]: The number of threads or cores to used running yade?

2019-08-19 Thread gaoxuesong
Question #682916 on Yade changed: https://answers.launchpad.net/yade/+question/682916 gaoxuesong posted a new comment: Thank. The last question is that i want to know the meaning of some item on the graphical controller. As shown in the picture below, https://drive.google.com/open?id

[Yade-users] [Question #682916]: The number of threads or cores to used running yade?

2019-08-15 Thread gaoxuesong
New question #682916 on Yade: https://answers.launchpad.net/yade/+question/682916 Hi, I have some questions about the cores and threads in parallel mode. 1. What's the difference between the --cores and -j ? In the documentation, they almost have the same defination. --cores Set number o

Re: [Yade-users] [Question #682883]: calculate mass content of a group of particles through something like label

2019-08-15 Thread gaoxuesong
Question #682883 on Yade changed: https://answers.launchpad.net/yade/+question/682883 gaoxuesong posted a new comment: You are welcome. However, in the way as you said, ### -->>s1=O.bodies.append(sphere((x1,y1,z1),radius=radius1)) -->>list1=[] -->>list1.append(s1) ### list1

Re: [Yade-users] [Question #682883]: calculate mass content of a group of particles through something like label

2019-08-14 Thread gaoxuesong
Question #682883 on Yade changed: https://answers.launchpad.net/yade/+question/682883 Status: Open => Answered gaoxuesong proposed the following answer: Hi, The possible way i think is that using different lists to save the sphere's id of different groups and do loop in e

Re: [Yade-users] [Question #682898]: Which model is used to calculate the cohesive force?

2019-08-14 Thread gaoxuesong
Question #682898 on Yade changed: https://answers.launchpad.net/yade/+question/682898 gaoxuesong posted a new comment: I have checked the definition of CohFrictMat. So the normalCohesion and shearCohesion is the an and as appeared in the documentation of

[Yade-users] [Question #682898]: Which model is used to calculate the cohesive force?

2019-08-14 Thread gaoxuesong
New question #682898 on Yade: https://answers.launchpad.net/yade/+question/682898 Hi. I have looked through the document for Law2_ScGeom6D_CohFrictPhys_CohesionMoment. It gives the formula to calculate the contact force. Fn=min(kn∗(un−upn),an). an is the cohesive force. But is there any m

Re: [Yade-users] [Question #682159]: output picture from saved results using saveSnapshot

2019-07-20 Thread gaoxuesong
Question #682159 on Yade changed: https://answers.launchpad.net/yade/+question/682159 Status: Needs information => Open gaoxuesong gave more information on the question: I find that there is a delay for the window to render the image. So maybe the codes are not executed by the origi

Re: [Yade-users] [Question #682159]: output picture from saved results using saveSnapshot

2019-07-19 Thread gaoxuesong
Question #682159 on Yade changed: https://answers.launchpad.net/yade/+question/682159 gaoxuesong posted a new comment: Yes. The errors are, "Secondary views not supported. " This is the screenshot, https://drive.google.com/file/d/1O4bQeGykuW9xMnZiEX_0RG-XyqcfHGZP/view?usp=sharin

[Yade-users] [Question #682159]: output picture from saved results using saveSnapshot

2019-07-18 Thread gaoxuesong
New question #682159 on Yade: https://answers.launchpad.net/yade/+question/682159 I have saved a list of results by using O.save during the calculation. Now i want to load each result and output a picture. The function i use is saveSnapshot(). The following codes work, O.load(file) qtr =

Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration

2019-06-17 Thread gaoxuesong
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Thanks, my question has been solved. -- You received this question notification because your team yade-users is an ans

Re: [Yade-users] [Question #681343]: import stl format file into yade

2019-06-17 Thread gaoxuesong
Question #681343 on Yade changed: https://answers.launchpad.net/yade/+question/681343 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Thanks, it works. -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #681341]: Move or scale a facet

2019-06-12 Thread gaoxuesong
Question #681341 on Yade changed: https://answers.launchpad.net/yade/+question/681341 gaoxuesong posted a new comment: Yes, you are right. Much thanks. -- You received this question notification because your team yade-users is an answer contact for Yade

Re: [Yade-users] [Question #681343]: import stl format file into yade

2019-06-12 Thread gaoxuesong
Question #681343 on Yade changed: https://answers.launchpad.net/yade/+question/681343 gaoxuesong posted a new comment: Thanks. I will try it and reply later. -- You received this question notification because your team yade-users is an answer contact for Yade

Re: [Yade-users] [Question #681341]: Move or scale a facet

2019-06-12 Thread gaoxuesong
Question #681341 on Yade changed: https://answers.launchpad.net/yade/+question/681341 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Thanks. I have tried to move and scale a facet. For moving a facet, just changing the position is feasible. But for scalin

[Yade-users] [Question #681343]: import stl format file into yade

2019-06-11 Thread gaoxuesong
New question #681343 on Yade: https://answers.launchpad.net/yade/+question/681343 We can use the ymport.stl function to import facet from stl format file. I want to ask if the coding of the file must be binary or not? In my case, i need to do some modifications to the geometry, such as move and

[Yade-users] [Question #681341]: Move or scale a facet

2019-06-11 Thread gaoxuesong
New question #681341 on Yade: https://answers.launchpad.net/yade/+question/681341 How to move or scale a facet? In my opinion, 1. get the 3 vertices of the facet. 2. give a increment to x coordinate of the 3 vertices (e.g., move in x direction). 3. the facet move automatically, if not, use the n

Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration

2019-06-07 Thread gaoxuesong
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 gaoxuesong posted a new comment: > the time step The PWaveTimeStep is 1.02e-08. By the way, the default option of Yade is in parallel and uses all of the available cores? In the tutorial, it says,

Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration

2019-06-06 Thread gaoxuesong
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 gaoxuesong posted a new comment: >the problem is that with rMean=rRelFuzz, the radius may be arbitrarily small (you can print the minimal value), making the PWaveTimeStep very small, too. Actually i run

Re: [Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration

2019-06-05 Thread gaoxuesong
Question #681232 on Yade changed: https://answers.launchpad.net/yade/+question/681232 gaoxuesong posted a new comment: Hi Jan, Thanks for your answers. For the density magnification, in my case, the diameter of the sphere is around 80 um. If i use the normal density, it costs about 4 hours to

Re: [Yade-users] [Question #681014]: How to calculate the surface roughness of sphere particle packing?

2019-06-04 Thread gaoxuesong
Question #681014 on Yade changed: https://answers.launchpad.net/yade/+question/681014 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Hi. Sorry for late test. Based on my experiments about this method, i find the parameter 'factor' is very i

[Yade-users] [Question #681232]: Sphere goes through the facet wall in Harmonic vibration

2019-06-04 Thread gaoxuesong
New question #681232 on Yade: https://answers.launchpad.net/yade/+question/681232 Hi, in my case there are lots of spheres in one box and a piston in the bottom of the box. Then the piston does harmonic vibration. I find when the vibration amplitude goes to high, the spheres go through the pisto

Re: [Yade-users] [Question #681014]: How to calculate the surface roughness of sphere particle packing?

2019-05-23 Thread gaoxuesong
Question #681014 on Yade changed: https://answers.launchpad.net/yade/+question/681014 gaoxuesong posted a new comment: Hi, Jan, Much thanks. Your method as well as code reallys works. I am very impressed by this method. Could you tell me more about it? Like the math behind it. I am a

[Yade-users] [Question #681014]: How to calculate the surface roughness of sphere particle packing?

2019-05-22 Thread gaoxuesong
New question #681014 on Yade: https://answers.launchpad.net/yade/+question/681014 I have got the sphere particle packing using Yade. I want to get the top surface roughness which is the height deviation to an mean value of the particle on the surface. The definition is shown in the picture a

Re: [Yade-users] [Question #680907]: Yade Class not find in a user defined python class

2019-05-20 Thread gaoxuesong
Question #680907 on Yade changed: https://answers.launchpad.net/yade/+question/680907 Status: Answered => Solved gaoxuesong confirmed that the question is solved: It works. Thanks. -- You received this question notification because your team yade-users is an answer contact for Y

Re: [Yade-users] [Question #680907]: Yade Class not find in a user defined python class

2019-05-20 Thread gaoxuesong
Question #680907 on Yade changed: https://answers.launchpad.net/yade/+question/680907 gaoxuesong posted a new comment: Sorry, Jan. I make it confucius. I want to write a class for data post- process. In my defined class, the Sphere class from yade is used. When i invoke my class from yade

Re: [Yade-users] [Question #680907]: Yade Class not find in a user defined python class

2019-05-17 Thread gaoxuesong
Question #680907 on Yade changed: https://answers.launchpad.net/yade/+question/680907 gaoxuesong gave more information on the question: The line i used to create symbolic link is, ln -s /usr/bin/yade yadeimport.py -- You received this question notification because your team yade-users is an

[Yade-users] [Question #680907]: Yade Class not find in a user defined python class

2019-05-17 Thread gaoxuesong
New question #680907 on Yade: https://answers.launchpad.net/yade/+question/680907 I want to write a data-post class for the result from yade. In my class i used the Sphere class. But when i invoke my class in yade console, the Sphere class is not recognised. I have looked up the information abo

Re: [Yade-users] [Question #680662]: Small density sphere in micron size makes segment fault (core dumped)

2019-05-08 Thread gaoxuesong
Question #680662 on Yade changed: https://answers.launchpad.net/yade/+question/680662 gaoxuesong confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- You received this question notification because your team yade-users is an answer contact for Yade

Re: [Yade-users] [Question #680662]: Small density sphere in micron size makes segment fault (core dumped)

2019-05-08 Thread gaoxuesong
Question #680662 on Yade changed: https://answers.launchpad.net/yade/+question/680662 Status: Answered => Solved gaoxuesong confirmed that the question is solved: Thanks. Jan. The adapted code runs well. I think the problem is the increasing length of O.engines. -- You received t

Re: [Yade-users] [Question #680662]: Small density sphere in micron size makes segment fault (core dumped)

2019-05-06 Thread gaoxuesong
Question #680662 on Yade changed: https://answers.launchpad.net/yade/+question/680662 gaoxuesong posted a new comment: Sorry to add the ubuntu and yade version used. The ubuntu is Ubuntu 18.04.1 LTS, and the yade is 2018.02b. Much thanks. -- You received this question notification because

Re: [Yade-users] [Question #680662]: Small density sphere in micron size makes segment fault (core dumped)

2019-05-06 Thread gaoxuesong
Question #680662 on Yade changed: https://answers.launchpad.net/yade/+question/680662 gaoxuesong posted a new comment: Hi, Jan. Yes, you are right. I have tried the above code and no segment fault occurred. Then I add some lines which i thought were unimportant in the past and the problems

[Yade-users] [Question #680662]: Small density sphere in micron size makes segment fault (core dumped)

2019-05-06 Thread gaoxuesong
New question #680662 on Yade: https://answers.launchpad.net/yade/+question/680662 In my case, the sphere used is in micron size. When i use the real material property, especially the density, the calculation crashes after some time(Segment fault (core dumped)). Then i try to magnify the density

Re: [Yade-users] [Question #677084]: manipulate the spheres during running

2018-12-27 Thread gaoxuesong
Question #677084 on Yade changed: https://answers.launchpad.net/yade/+question/677084 Status: Answered => Open gaoxuesong is still having a problem: Hi. The thing i want is with the yade-batch mode, when i finish 5000 iters, i want to reload some previous state which has been saved bef

Re: [Yade-users] [Question #677084]: manipulate the spheres during running

2018-12-27 Thread gaoxuesong
Question #677084 on Yade changed: https://answers.launchpad.net/yade/+question/677084 gaoxuesong gave more information on the question: I have just found that just put the functional code into a function runned by pyRunner, it works well in yade-batch mode. So my question becomes that if it is

[Yade-users] [Question #677084]: manipulate the spheres during running

2018-12-27 Thread gaoxuesong
New question #677084 on Yade: https://answers.launchpad.net/yade/+question/677084 I want to get the information of some specific spheres during the calculation when it meets some condition, like the time larger than some point. i have used two run mode of yade, one is just normal mode, the other

[Yade-users] [Question #675797]: gridnode interaction with sphere cannot display the grid

2018-10-30 Thread gaoxuesong
New question #675797 on Yade: https://answers.launchpad.net/yade/+question/675797 I have learned examples in the folder of trunk/examples/grids/ on github. The example of "CohesiveGridConnectionSphere" deal with a line of girds interacting with a sphere. The example of Simple_Grid_Falling deals