[Paraview] Exodus multiblock dataset block numbers vs block

Shawn Waldon shawn.waldon at kitware.com
Wed Nov 15 10:00:34 EST 2017


Hi Dennis,

I can answer part of your question.  The block number is the index in a
pre-order traversal of the tree of blocks in the dataset.  The root is
element 0, its first child is 1, that block's first child (or if none, the
root's second child) is 2 and so on.  Your blocks with data are likely two
levels down since your index has that offset (and your code backs this up
since you are asking for the metadata of a child of the root's block 0).

HTH,
Shawn

On Wed, Nov 15, 2017 at 9:51 AM, Dennis Conklin <dennis_conklin at goodyear.com
> wrote:

> All,
>
>
>
> Okay, maybe not the clearest email I’ve ever written!
>
>
>
> See the attached image:  Here I have loaded a single block out of a
> multi-block dataset.
>
>
>
> It is the 24th block in the dataset.
>
> It was assigned the block_ID 101 at creation (we separate different blocks
> into different number ranges)
>
> So, it is shown in the Spreadsheet view as Block Number 25 (24+1)
>
>
>
> However, I need the Block_Name of this block.   The block name is stored
> under:
>
> Input.GetBlock(0).GetMetaData(23).Get(vtk.vtkCompositeDataSet.NAME())
> (23=24-1)
>
>
>
> In order to retrieve the name, I need to find the Block Number 25 (and
> subtract 2 from it).
>
>
>
> I have been unable to find this block_number.    I can’t count blocks to
> find out the block_number, because my Programmable filter only has this 1
> block in it.
>
>
>
> So, does anyone know where this “Block Number” is stored?    I’m wishing
> at this point that the Exodus reader had stored the block names in a
> dictionary with BlockID (ObjectID) as the key – then I could find  the name.
>
>
>
> Any clues on how to determine the Block Number?
>
>
>
> Thanks
>
> Dennis
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171115/b1f46488/attachment.html>


More information about the ParaView mailing list