[vtk-developers] [EXTERNAL] inconsistencies in vtkExodusIIReader

David Thompson david.thompson at kitware.com
Mon Oct 7 14:31:04 EDT 2013


Hi Andy,

> I bet you already know this, but I believe that David Thompson is  the most knowledgeable person with regards to that reader. 

Sorry, I am here... but slow.

> I'm a bit confused with the ExodusII reader between the sets and the arrays of sets. I'm wondering if the following is a bug or a lack of my understanding. To set the SIDE_SET status it does the following in the header file using the SetObjectStatus() method:
> 
>   void SetSideSetArrayStatus(const char* name, int flag)
>     { this->SetObjectStatus(SIDE_SET, name, flag); }
> 
> For the SetAllArrayStatus() method, if I call that with otyp = SIDE_SET it looks like it wants to use the SetObjectArrayStatusMethod() through the following:
> 
> void vtkExodusIIReader::SetAllArrayStatus( int otyp, int status )
> { ...
>  
> In my testing using Python, the r.SetAllArrayStatus(r.SIDE_SET, 1) call doesn't load any side sets even though I was expecting it to.

There are two types of status variables: connectivity status and array status. Connectivity status is used to select whether VTK cells will be created for the corresponding block or set. Array status is used to select which point-data or cell-data arrays in the Exodus file should be loaded and stored on the cells. Thus if you have a boundary condition variable named "A" defined on side set 100, you must set the connectivity status for side set 100 to true *and* the variable status for "A" to true in order to visualize the boundary condition.

By default, element blocks have their connectivity status set to true and all others are false. You should use SIDE_SET_CONN to indicate that you want the side set loaded and SIDE_SET when indicating which scalars you want loaded onto the connectivity.

In ParaView, note that side sets are considered "Advanced" functionality, so you must click on the gear icon in order to select side sets to load.

	David


More information about the vtk-developers mailing list