|
[Sponsors] |
[General] Reading array in data structure in paraview with vtkMultiBlock |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 14, 2017, 08:47 |
Reading array in data structure in paraview with vtkMultiBlock
|
#1 |
New Member
Gonzalo
Join Date: Jun 2015
Posts: 2
Rep Power: 0 |
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 |
|
Tags |
paraview 4.3.1, python, vtk |
|
|
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 |