Re: [Paraview] Maybe a silly question?

2011-03-28 Thread David E DeMarle
The ex2 object is a reader, it won't have data in it. The ex2 object should have a control that you can use to specify which arrays to read/ignore from the file but that is different from what you are asking for. In any case when you update the reader it it will produce data, and that you already

[Paraview] Maybe a silly question?

2011-03-23 Thread wastrel
I have an Exodus II type file loaded into Paraview and trying to get the point ID for a group of cells. I know for vtk type object there are functions like GetCell(), GetPoint() and just wonder if there are such kind of routines available for Exodus II files. Best, Ken

Re: [Paraview] Maybe a silly question?

2011-03-23 Thread wastrel
Thanks for your reply! On Wed, Mar 23, 2011 at 3:32 PM, David Thompson dcth...@sandia.gov wrote: Hi Ken, I have an Exodus II type file loaded into Paraview and trying to get the point ID for a group of cells. I know for vtk type object there are functions like GetCell(), GetPoint() I

Re: [Paraview] Maybe a silly question?

2011-03-23 Thread David Thompson
I have an Exodus II type file loaded into Paraview and trying to get the point ID for a group of cells. I know for vtk type object there are functions like GetCell(), GetPoint() I assume you're talking about using Python from ParaView? Yup, that's exactly what I am doing here. There

Re: [Paraview] Maybe a silly question?

2011-03-23 Thread wastrel
Thanks again, and I took a look on the programmable filter code. In my case the block consists of more than 1 million tetrahedrons and it will be time consuming to run iterations. Is there a way that I can export the cells and their corresponding point information to a numpy array? The ultimate

Re: [Paraview] Maybe a silly question?

2011-03-23 Thread David Thompson
Thanks again, and I took a look on the programmable filter code. In my case the block consists of more than 1 million tetrahedrons and it will be time consuming to run iterations. Is there a way that I can export the cells and their corresponding point information to a numpy array? The

Re: [Paraview] Maybe a silly question?

2011-03-23 Thread wastrel
Thanks David, I made a programmable filter and got it running. It works. Now I have a new question, how to get a point_data array from a ex2 object? For vtk object, I know I can fetch it to local, like from paraview.simple import servermanager as sm data=sm.Fetch(reader) Then there is