This is called a Python Calculator.
Sadly the python calculator cannot compute a “global” FieldData.
In order to do that, you can :
- Use the
AddFieldArrays
filter, but you need to have a file containing a field data to provide, not very practical - Use a
Python Programmable Filter
, which would require you to learn a little bit of Python, see here for examples : https://www.paraview.org/Wiki/Python_Programmable_Filter
That being said, I think that it should be possible to create single tuple field data arrays in the calculator and the python calculator, please feel free to open a issues on our gitlab : https://gitlab.kitware.com/paraview/paraview/-/issues