[Paraview] How to extract a list of the plotting variable names with Python

Neal,Christopher R chrisneal at ufl.edu
Mon Aug 3 16:54:55 EDT 2015


That did exactly what I wanted.


Thanks  David!


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: David E DeMarle <dave.demarle at kitware.com>
Sent: Monday, August 3, 2015 4:24 PM
To: Neal,Christopher R
Cc: paraview at paraview.org
Subject: Re: [Paraview] How to extract a list of the plotting variable names with Python

Try:
src = GetActiveSource()
src.CellData.keys()


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Mon, Aug 3, 2015 at 4:20 PM, Neal,Christopher R <chrisneal at ufl.edu<mailto:chrisneal at ufl.edu>> wrote:

Hi,


I'm trying to extract a list of the names of the available plotting variables from a data set that I have loaded. The variable names are all related to cell data in the data set. Something like ['Density','Pressure','Temperature','Velocity'] is what I am trying to extract from the Ensight Reader data object using Python.


I have a feeling that this is something that can be extracted from the vtkPVDataInformation Class, but I'm unsure about which method to use.



Thank you,


Christopher R. Neal
Graduate Student
Center for Compressible Multiphase Turbulence
Mechanical and Aerospace Engineering Department
University of Florida
Cell: (863)-697-1958<tel:%28863%29-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/41409038/attachment.html>


More information about the ParaView mailing list