Re: [Yade-users] [Question #697432]: Why doesn't the strain equal to zero

2021-06-07 Thread Zhicheng Gao
Question #697432 on Yade changed: https://answers.launchpad.net/yade/+question/697432 Status: Answered => Solved Zhicheng Gao 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 an

Re: [Yade-users] [Question #697432]: Why doesn't the strain equal to zero

2021-06-07 Thread Jan Stránský
Question #697432 on Yade changed: https://answers.launchpad.net/yade/+question/697432 Status: Open => Answered Jan Stránský proposed the following answer: a) "modifying the position directly is likely to break Yade’s algorithms" [2]. O.cell.trsf is similar as setting position directly. b) So

Re: [Yade-users] [Question #697432]: Why doesn't the strain equal to zero

2021-06-06 Thread Zhicheng Gao
Question #697432 on Yade changed: https://answers.launchpad.net/yade/+question/697432 Status: Needs information => Open Zhicheng Gao gave more information on the question: I'm sorry to provide a lot of useless code, the key code is : O.cell.trsf=Matrix3.Identity print(O.cell.trsf, triax.strai

Re: [Yade-users] [Question #697432]: Why doesn't the strain equal to zero

2021-06-06 Thread Jan Stránský
Question #697432 on Yade changed: https://answers.launchpad.net/yade/+question/697432 Status: Open => Needs information Jan Stránský requested more information: Hello, please read [1] and try to provide code in the form of MWE M = minimal. This code is far from minimal, vast majority of the

[Yade-users] [Question #697432]: Why doesn't the strain equal to zero

2021-06-06 Thread Zhicheng Gao
New question #697432 on Yade: https://answers.launchpad.net/yade/+question/697432 I use the O.cell.trsf=Matrix3.Identity to set the current cell configuration to be the reference one, but when I use print(O.cell.trsf, triax.strain) to print the current strain, the strain matrix is not equal to