Global Variables: Difference between revisions

From ParaQ Wiki
Jump to navigationJump to search
(New page: = 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 t...)
 
No edit summary
Line 6: Line 6:


= Questions =
= Questions =
Should 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?
Global variables could potentially take up quite a bit of space in the "Variables" widget in the exodus panel. Should we provide the user the option (in the form of a checkbox somewhere in the panel) of whether or not to load global variables?
Global variables could potentially take up quite a bit of space in the "Variables" widget in the exodus panel. Should we provide the user the option (in the form of a checkbox somewhere in the panel) of whether or not to load global variables?


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.
Should 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?

Revision as of 22:45, 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.

Questions

Should 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?

Global variables could potentially take up quite a bit of space in the "Variables" widget in the exodus panel. Should we provide the user the option (in the form of a checkbox somewhere in the panel) of whether or not to load global variables?

Should global variables have an icon of their own in the exodus panel? Currently they are without one.