Re: [Yade-users] [Question #691584]: About periodic simple shear

2021-01-12 Thread Jan Stránský
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Jan Stránský posted a new comment: The compression stage is not necessary, of course. It depends on what you want to simulate. The original script probably simulated some experiment with prestress and one

Re: [Yade-users] [Question #691584]: About periodic simple shear

2021-01-11 Thread Kieran Fung
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Kieran Fung posted a new comment: Hi Jan, Thank you for the explanations! Let's see how I can reword my question above. > Does this step ultimately cause the periodic boundary condition to be flush with the

Re: [Yade-users] [Question #691584]: About periodic simple shear

2021-01-11 Thread Jan Stránský
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Jan Stránský posted a new comment: Hello, > why does the code first simulate a constant isotropic compression of > O.cell.velGrad=Matrix3(-.1,0,0, 0,-.1,0, 0,0,-.1)? > Is isotropic compression necessary prior

Re: [Yade-users] [Question #691584]: About periodic simple shear

2021-01-11 Thread Kieran Fung
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Kieran Fung posted a new comment: Hi Jan Stránský! I'm hoping to hi-jack this question thread and expand upon the amazing discussion you and Lei Hang have had above. Seriously, the above conversation was an

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-07-02 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Lei Hang 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 #691584]: About periodic simple shear

2020-07-02 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Answered => Solved Lei Hang confirmed that the question is solved: Thank you very much Jan! -- You received this question notification because your team yade-users is an answer contact for Yade.

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-07-02 Thread Jan Stránský
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Open => Answered Jan Stránský proposed the following answer: > How to associate the non-zero term with the index? The Matrix3 is (xx, xy, xz, yx, yy, yz, zx, zy, zz), "one row" of the form: xx

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-07-02 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Lei Hang gave more information on the question: If the O.cell.velGrad=Matrix3(.1,0,0, 0,0,0, 0,0,0), Which is the shear plane? -- You received this question notification because your team yade-users is an

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-07-01 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Solved => Open Lei Hang is still having a problem: Hello Excuse me. I find I don't understand the non-zero term is at index(0,2) in the answer. How to associate the non-zero term with the index?

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-30 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Answered => Solved Lei Hang 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

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-30 Thread Jan Stránský
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > O.cell [1] > hSize [2] > "Base cell vectors (columns of the matrix)" [2]. > O.cell [1] > hSize [3] > components of velocity

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-30 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Answered => Open Lei Hang is still having a problem: Thank you for your answer! I have some other questions. 1. What is the meaning of the numbers(2,3,4,5) in "hsize[2]","hsize[3]","velocity

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-30 Thread Jan Stránský
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Open => Answered Jan Stránský proposed the following answer: Hello, first of all, I am not sure if periodic simulations are a good very first starting point to learn Yade.. The previous scripts

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-29 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Solved => Open Lei Hang is still having a problem: Hello, When I study the yade script about periodic simple shear test, I don't understand some places. The periodic simple shear script link is

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-29 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Answered => Solved Lei Hang 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

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-29 Thread Jan Stránský
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Open => Answered Jan Stránský proposed the following answer: Because you can easily choose one scenario or the other just by replacing 0 with 1 or vice versa. The value "0" or "1" is not hardcoded,

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-29 Thread Lei Hang
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Answered => Open Lei Hang is still having a problem: Thanks for your quick help Jan! But I still don't understand (as the "if 0:" block is never executed and therefore "else" is always executed).

Re: [Yade-users] [Question #691584]: About periodic simple shear

2020-06-29 Thread Jan Stránský
Question #691584 on Yade changed: https://answers.launchpad.net/yade/+question/691584 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > I am a new user for yade welcome :-) next time please provide also a link to the script This pattern is to easy switch

[Yade-users] [Question #691584]: About periodic simple shear

2020-06-28 Thread Lei Hang
New question #691584 on Yade: https://answers.launchpad.net/yade/+question/691584 Hello, I am a new user for yade. When I study the yade documentation about periodic simple shear, I don't understand the meaning of "if 0:..., else:...". The detailed code is following: from yade import pack,plot