Re: [Yade-users] [Question #478785]: Export VTK files to txt files

2017-02-28 Thread Yor1
Question #478785 on Yade changed: https://answers.launchpad.net/yade/+question/478785 Yor1 posted a new comment: Hello Jan and Bruno, Finally i use these lines in the recorder to obtain the text files peridically : if (O.iter%1000==302): f = open(str(O.iter)+'_data_spheres', 'w')

Re: [Yade-users] [Question #478785]: Export VTK files to txt files

2017-02-27 Thread Bruno Chareyre
Question #478785 on Yade changed: https://answers.launchpad.net/yade/+question/478785 Bruno Chareyre posted a new comment: Not sure it will answer the real question but for the sake of completeness, a quick remark: the vtk files are already text files. I think the .vtu have some kind of binary

Re: [Yade-users] [Question #478785]: Export VTK files to txt files

2017-02-27 Thread Jan Stránský
Question #478785 on Yade changed: https://answers.launchpad.net/yade/+question/478785 Jan Stránský proposed the following answer: Hi Jabrane, using PyRunner: ## def saveMyDate(): ... # code creating a file and writing your desired data into it O.engines = [ ...

Re: [Yade-users] [Question #478785]: Export VTK files to txt files

2017-02-25 Thread Yor1
Question #478785 on Yade changed: https://answers.launchpad.net/yade/+question/478785 Yor1 posted a new comment: Hello Jérôme and Hicham, Thank you for your response. So i have to export my results in txt files directly. In this case, i want to export my variables in txt files every 1

Re: [Yade-users] [Question #478785]: Export VTK files to txt files

2017-02-23 Thread Hicham BENNIOU
Question #478785 on Yade changed: https://answers.launchpad.net/yade/+question/478785 Hicham BENNIOU proposed the following answer: Hi, Jérôme is right, you can export all the relevant variables directly from Python by writing them into a text file. If you still need to write your vtk files in

[Yade-users] [Question #478785]: Export VTK files to txt files

2017-02-23 Thread Yor1
New question #478785 on Yade: https://answers.launchpad.net/yade/+question/478785 Hello Yade users, I want to obtain the data saved in the sphere's vtk files (velocity, forces, stress field in the spheres) as a text file (.txt). So i want to know if it is possible to export the vtk files to