Time Averaged global variable

I need to calculate a time averaged global variable. The temporal statistics filter doesn’t include global variables in its results.

Here is what I am thinking:
My best guess is something along these lines:

  1. Python calculator filter to create a new point data variable from the global variable of interest, at any given timestep (This is where I’m stuck – The syntax is incorrectt in the documentation, and should be inputs[0].FieldData[‘nsteps’][time_index] * displ), but the data still dose not propagate through and no new variable appears.
  2. Probe location (so that I’m not processing an unnecessary amount of data)
  3. Temporal statistics filter on the probe to display time-averaged values of point data

I was also thinking of using the programable filter to create the new point data variable, but I can’t seem to produce the data that I need.

Thanks for nay help you may be able to give,

-Phil

Hi @phismith

Maybe PlotGlobalVariablesOverTime would help you there ?

Best,

HI Mathieu,
Yes this may be a solution. let me look into it a bit further. Thanks!

This works to an extent, but suppose I want to annotate the average of those values from the result of the filter? How would I go about doing that? The only way I can get the average, that I know of, is to dump the row data into a table and then compute the average. is there a better way? Perhaps by using the Python Annotation filter on the results of the table?

Thanks for your help,

PythonAnnotation or ProgrammableAnnotation should work