[Paraview] How to call a specifc data set from a multi-block ExodusII data set?
Moreland, Kenneth
kmorel at sandia.gov
Thu Aug 28 17:12:39 EDT 2014
That's not how you use the Python Histogram function. First of all, it doesn't just assume that the first argument is the name of the input array. Second, input arrays are specified with identifiers contained in strings. The Python interpreter thinks q is the Python variable q, not the field name.
Your script should look something like the following.
reader = ExodusIIReader(Filename='out.e')
histogram = Histogram()
histogram.SelectInputArray = 'q'
histogram.BinCount = 30
Try using the stack trace if you are having trouble determining the right Python functions to call.
-Ken
From: John Mangeri <john.mangeri at uconn.edu<mailto:john.mangeri at uconn.edu>>
Date: Thursday, August 28, 2014 3:02 PM
To: "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] [Paraview] How to call a specifc data set from a multi-block ExodusII data set?
I'm currently trying to do something simple. I have a ElementVariable q in my .e file.
I read them into the pipeline with
reader = ExodusIIReader(FileName = 'out.e')
I want to use
histogram = Histogram(q,BinCount=30)
but I recieve the following error:
Traceback (most recent call last):
File "<console>", line 1, in <module>NameError: name 'q' is not defined
What is going on here?
Thanks
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140828/bc149d3f/attachment.html>
More information about the ParaView
mailing list