CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Reading array in data structure in paraview with vtkMultiBlock

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2017, 08:47
Question Reading array in data structure in paraview with vtkMultiBlock
  #1
New Member
 
Gonzalo
Join Date: Jun 2015
Posts: 2
Rep Power: 0
gafxian87 is on a distinguished road
Hello all,

I would like to ask if there is an a priori way of knowing how many blocks there are in a vtkMultiBlockDataSet data structure in order to access an array.I'm using an in house tool. So I do an operation and I want to retrieve the following array (Field Data):

CalculatorOrig_seal =CalculatorOrig(Input=extractblock_seal) *this is a pyton filter
CalculatorOrig_seal.FieldData = ['MM absolute total temperature']


rawData = paraview.servermanager.Fetch(rRCalculatorOrig_seal )

So with much trial an error (going over the blocks) I find that:

rawData.GetBlock(3).GetBlock(0).GetFieldData().GetA rray('MM absolute total temperature').GetValue(0)

Gives me the value I need, so is there a way to know a priori how many blocks there are from this rather large data structure (which is attached). Any help is much appreciated!!!

Thanks
Attached Files
File Type: txt data_structure.txt (41.3 KB, 4 views)
gafxian87 is offline   Reply With Quote

Reply

Tags
paraview 4.3.1, python, vtk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 21:06
Animation of Fluent data with paraview Lilly FLUENT 1 June 26, 2016 17:07
execFlowFunctionObjects - unknown field problem Toorop OpenFOAM Post-Processing 16 March 14, 2016 04:25
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 11:45
[OpenFOAM] extracting data from paraview tharem ParaView 1 January 18, 2011 00:45


All times are GMT -4. The time now is 02:44.