[Yade-users] [Question #404328]: contact position at the end of the simulation

2016-11-23 Thread Yor1
New question #404328 on Yade: https://answers.launchpad.net/yade/+question/404328 Hello ! I want to export a text file in which i put the coordinates of the contact in the end of the simulation. I put below the loop with which i want to export the text file : ## Recording contact position at th

Re: [Yade-users] [Question #404328]: contact position at the end of the simulation

2016-11-23 Thread Bruno Chareyre
Question #404328 on Yade changed: https://answers.launchpad.net/yade/+question/404328 Status: Open => Answered Bruno Chareyre proposed the following answer: Hi, The test is obviously false in your script: iterMax=5000 O.step(); if O.iter==iterMax: #then nothing. Why do you expect a

Re: [Yade-users] [Question #404328]: contact position at the end of the simulation

2016-11-23 Thread Jan Stránský
Question #404328 on Yade changed: https://answers.launchpad.net/yade/+question/404328 Jan Stránský proposed the following answer: Hi Jabrane,​ I don't understand why the condition prohibit the exportation well, simply because the condition is not fulfilled :-) you can put print O.iter, iterMax

Re: [Yade-users] [Question #404328]: contact position at the end of the simulation

2016-11-23 Thread Yor1
Question #404328 on Yade changed: https://answers.launchpad.net/yade/+question/404328 Yor1 posted a new comment: Hello Jan and Bruno, Thank you for your answers. To resolve the problem, i put a loop with the condition inside a function with pyrunner like this : O.engines=[ ForceResetter

Re: [Yade-users] [Question #404328]: contact position at the end of the simulation

2016-11-23 Thread Jan Stránský
Question #404328 on Yade changed: https://answers.launchpad.net/yade/+question/404328 Jan Stránský proposed the following answer: Hi Jabrane, I could not reproduce your problem. I have tried the script and it saves the data ok containing ~65000 x y z entries (exactly the same number as there is i

Re: [Yade-users] [Question #404328]: contact position at the end of the simulation

2016-11-24 Thread Bruno Chareyre
Question #404328 on Yade changed: https://answers.launchpad.net/yade/+question/404328 Bruno Chareyre proposed the following answer: Hi, Another quick comment. Using a PyRunner is a bit overkill for this particular need. If you want to run 5000 then export (Jan suggested that already but it you m

Re: [Yade-users] [Question #404328]: contact position at the end of the simulation

2016-11-25 Thread Yor1
Question #404328 on Yade changed: https://answers.launchpad.net/yade/+question/404328 Status: Answered => Solved Yor1 confirmed that the question is solved: Hello Jan and Bruno, In your comments i get the solution of my problem. Thank you a lot ! Best regards. Jabrane. -- You received thi