|
[Sponsors] |
[General] Paraview-Python Scripting, Accessing Data Through Objects |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 7, 2014, 16:52 |
Paraview-Python Scripting, Accessing Data Through Objects
|
#1 | |
New Member
William
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
I am trying to do some post processing of simulations using Paraview through Python scripting. So far I have used Paraview's Trace function to generate the basic script but I can not seem to view/export the data:
Quote:
Thanks! |
||
February 16, 2014, 12:27 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings William,
I believe what you're looking for is somewhat already explained here: http://www.cfd-online.com/Forums/par...tml#post456638 post #6 Best regards, Bruno |
|
February 19, 2014, 11:38 |
|
#3 |
New Member
William
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
wyldckat,
You're right, that is exactly what I needed, thanks! I was actually able to get it working last week, but forgot to update my post. Here's the code I used to extract information from a "Plot Selection Over Time" filter which stores data not as Points or Cells, but as a Block. Code:
Fetch = servermanager.Fetch(PlotSelectionOverTime1) Block = PlotFetch.GetBlock(0) RowData = PlotBlock.GetRowData() Array = PlotRowData.GetArray(0) Value = Array.GetValue(i) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Paraview Find Data | cojua8 | ParaView | 2 | March 19, 2018 08:57 |
paraview - cell data or point data on plot over line | bye bye my blue | OpenFOAM | 0 | December 13, 2016 06:07 |
[General] Determining number of cores and/or paraview executable via python | aerogt3 | ParaView | 0 | December 9, 2014 05:54 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 14:06 |
[General] paraview ignores SPACING in STRUCTURED_POINTS vtk data? | jaffar | ParaView | 0 | November 27, 2012 09:36 |