[Paraview] [EXT] Re: Exodus multiblock dataset block numbers vs block

Dennis Conklin dennis_conklin at goodyear.com
Wed Nov 15 11:21:20 EST 2017


Shawn,

I grok the origin of the non-intuitive, better omitted than displayed, highly confusing, should be replaced with block names, block numbers.    However, in my Programmable filter I just have a single block and I need the index into the block name – I’m not sure it exists anywhere that I can access.

Dennis

From: Shawn Waldon [mailto:shawn.waldon at kitware.com]
Sent: Wednesday, November 15, 2017 10:01 AM
To: Dennis Conklin <dennis_conklin at goodyear.com>
Cc: Paraview (paraview at paraview.org) <paraview at paraview.org>
Subject: [EXT] Re: [Paraview] Exodus multiblock dataset block numbers vs block

 WARNING - External email; exercise caution.



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<mailto: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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.vtkCompositeDataSet.NAME&data=01%7C01%7Cdennis_conklin%40goodyear.com%7C19bc2d75a3f54d94d80c08d52c39ac82%7C939e896692854a9a9f040887efe8aae0%7C0&sdata=EG0bFY6THrxXzR9XApkxXUxjjrJgZEVDOvaYhMWEZYs%3D&reserved=0>())       (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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=01%7C01%7Cdennis_conklin%40goodyear.com%7C19bc2d75a3f54d94d80c08d52c39ac82%7C939e896692854a9a9f040887efe8aae0%7C0&sdata=jiSDhfdzV8n7oAuSPNBc3xfkm2R2DsLlRDOEsebnSHY%3D&reserved=0>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cdennis_conklin%40goodyear.com%7C19bc2d75a3f54d94d80c08d52c39ac82%7C939e896692854a9a9f040887efe8aae0%7C0&sdata=D6CMDZmYDNPJ3ivuB9tcQt3Rle7JNLb4vgTeRKVCLNk%3D&reserved=0>

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fparaview.org%2FWiki%2FParaView&data=01%7C01%7Cdennis_conklin%40goodyear.com%7C19bc2d75a3f54d94d80c08d52c39ac82%7C939e896692854a9a9f040887efe8aae0%7C0&sdata=hk8t07i1EaPaP%2BMJXyU%2BglEIdPKkTREISnclaeonGbU%3D&reserved=0>

Search the list archives at: http://markmail.org/search/?q=ParaView<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3DParaView&data=01%7C01%7Cdennis_conklin%40goodyear.com%7C19bc2d75a3f54d94d80c08d52c39ac82%7C939e896692854a9a9f040887efe8aae0%7C0&sdata=jdifeUijEeTXIORtZLb1CUfFlXZj8n5jWzEMcBAdAh4%3D&reserved=0>

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fparaview&data=01%7C01%7Cdennis_conklin%40goodyear.com%7C19bc2d75a3f54d94d80c08d52c39ac82%7C939e896692854a9a9f040887efe8aae0%7C0&sdata=wFUg%2BayCLWvHuoLjjrn%2BNLjps01UBlhsb4bra9Xexm8%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171115/831987b7/attachment.html>


More information about the ParaView mailing list