[Paraview] Extract the x,y,z extents of a domain in Paraview

Neal,Christopher R chrisneal at ufl.edu
Mon Aug 3 11:59:42 EDT 2015


Thanks Joachim!


Do you also happen to know how to obtain the list of plotting variables once a data set has been loaded into Paraview? I would like to get something like, ['Pressure','Density',Velocity'].


Thank you,


Christopher R. Neal
Graduate Student
Center for Compressible Multiphase Turbulence
Mechanical and Aerospace Engineering Department
University of Florida
Cell: (863)-697-1958
E-mail:  chrisneal at ufl.edu


________________________________
From: Joachim Pouderoux <joachim.pouderoux at kitware.com>
Sent: Monday, August 3, 2015 3:06 AM
To: Neal,Christopher R
Cc: paraview at paraview.org
Subject: Re: [Paraview] Extract the x,y,z extents of a domain in Paraview

Christopher,

Fetching the bounds of a source in Python is as simple as:

  >>> mySource.GetDataInformation().GetBounds()

The vtkPVDataInformation<http://www.paraview.org/ParaQ/Doc/Nightly/html/classvtkPVDataInformation.html> object returned by GetDataInformation() contains many other information about the source like:
 - DataSetType
 - MemorySize
 - PolygonCount
 - NumberOfPoints
 - NumberOfCels
etc.


Regards,

Joachim Pouderoux
PhD, Technical Expert
Kitware SAS<http://www.kitware.fr>

2015-08-01 1:24 GMT+02:00 Neal,Christopher R <chrisneal at ufl.edu<mailto:chrisneal at ufl.edu>>:

Hi all,


I have noticed that  the max and min values of the x, y, and z coordinates of all of the vertices are displayed at the bottom of the 'Information' tab when I load a computational grid file into Paraview.  Is there a way to extract this information via a Python call to the Paraview library?

Thank you,


Christopher R. Neal
Graduate Student
Center for Compressible Multiphase Turbulence
Mechanical and Aerospace Engineering Department
University of Florida
Cell: (863)-697-1958
E-mail:  chrisneal at ufl.edu<mailto:chrisneal at ufl.edu>

_______________________________________________
Powered by www.kitware.com<http://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/20150803/dd422d65/attachment.html>


More information about the ParaView mailing list