Global Variables: Difference between revisions

From ParaQ Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 8: Line 8:


# there be a separate "Plot Global Data Over Time" filter in which only global variables appear in the display panel? Or should "Plot Point Over Time" and "Plot Cell Over Time" be modified to list any global variables along with the point/cell variables in its display panel? This actually hits on a larger issue which is, is there a use case for plotting variables of different types (point/cell/global) in the same plot?
# there be a separate "Plot Global Data Over Time" filter in which only global variables appear in the display panel? Or should "Plot Point Over Time" and "Plot Cell Over Time" be modified to list any global variables along with the point/cell variables in its display panel? This actually hits on a larger issue which is, is there a use case for plotting variables of different types (point/cell/global) in the same plot?
# Should global variables have an icon of their own in the exodus panel? Currently they are without one.
# Should global variables have an icon of their own in the exodus panel? Currently they are without one.

Latest revision as of 23:56, 12 August 2007

Overview

Exodus data can contain global variables, i.e. global across geometry, but not across time. I have modified the exodus reader to read in global variables and display them in the "Variables" widget of the exodus panel. I am adding them to the reader's output vtkFieldData as two arrays named "GlobalVariableValues" and "GlobalVariableNames". Filters that know about global variables can then access them from their input vtkFieldData. (Aside: The reason I didn't separate them into individual arrays of size 1, one for each global variable, is because I needed a way to differentiate them from other potential arrays in the vtkFieldData.). Now, the two use cases I know of with regard to using global variables are:

  1. Plotting them over time
  2. Using them in the array calculator

However, the only attribute types that ParaView currently understands are "point" and "cell". So the choice is whether to make global variables a first-class citizen as point and cell arrays are, or to hack only the plotting and calculator classes to use global variables. The issues are fairly apparent. Creating a "global" attribute type in paraview would require changes to many different ParaView classes. At the same time, its not obvious to me how else to make the chart and calculator classes deal with global variables.

Questions

  1. there be a separate "Plot Global Data Over Time" filter in which only global variables appear in the display panel? Or should "Plot Point Over Time" and "Plot Cell Over Time" be modified to list any global variables along with the point/cell variables in its display panel? This actually hits on a larger issue which is, is there a use case for plotting variables of different types (point/cell/global) in the same plot?
  2. Should global variables have an icon of their own in the exodus panel? Currently they are without one.