[Paraview] Extract the x,y,z extents of a domain in Paraview
Joachim Pouderoux
joachim.pouderoux at kitware.com
Tue Aug 4 06:04:28 EDT 2015
Neal,
Try this:
>>> mySource.PointData.values()
>>> mySource.CellData.values()
Joachim
*Joachim Pouderoux*
*PhD, Technical Expert*
*Kitware SAS <http://www.kitware.fr>*
2015-08-03 17:59 GMT+02:00 Neal,Christopher R <chrisneal at ufl.edu>:
> 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>:
>
>> 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
>>
>> _______________________________________________
>> 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/20150804/27dd49e9/attachment.html>
More information about the ParaView
mailing list