Hi all, <br><br> For each timestep, I would like to extract in a file values on a point (or a line) generated from Ensight transient data. I think that a Python script is the only solution. Plot Point Over Time on Binary Ensight crashes with PV
3.0.1<br><br>
So I started with this script :
<br><br>import paraview<br>paraview.ActiveConnection = paraview.Connect()<br><br># Read Ensight File<br>reader = paraview.CreateProxy("sources", "ensight", "sources")<br># Set Little Endian as ByteOrder
<br>reader.SetByteOrder(1)<br><br>reader.SetCaseFileName("mycasename.case")<br><br># o2 is the scalar I would like to export in a file<br>reader.SetPointArrayStatus('o2','1')<br><br>reader.UpdateVTKObjects
()<br><br># Extract DataSet # 7 (necessary to make available the Plot Over Line filter)
<br>extractgroup = paraview.CreateProxy("filters", "ExtractLevel", "sources", "ExtractLevel1")<br>extractgroup.SetInput( reader )<br>extractgroup.SetGroupRange(7,7)<br><br>Everything seems OK but then I am stuck.
<br>- I do not know how the Plot Over Line filter is called with a Python script<br>- I do not know how to create a loop on the timestep so that I can export results for each timestep value in a file<br>- extracting data from PlotOverLine filter in a file is OK (see message from
Olivier Ricou on June 13th)<br><br>Can anybody help me with a small example ?<br>Thank you very much in advance<br>Regards<br><br>-- <br>Julien Duclos<br>Research Engineer<br><br>