August 9, 2016, 11:51
|
Calculating new scalar and vector quantities when loading in data
|
#1
|
New Member
Greg
Join Date: Aug 2015
Posts: 4
Rep Power: 10
|
Hello everyone,
I have been using the python calculator in order to create a set of new scalar and vector variables every time I load data into Paraview. This is rather time consuming and annoying to do every time I have to reopen Paraview.
I have been using a source script for loading the data. In this script I have used the vtk commands .SetScalarFunctionNumber() and .SetVectorFunctionNumber() to get some variables that Paraview can calculate upon loading data. Is there anyway that within the same source script that I can (1) use the python calculator, (2) create the variables that I want, (3) and then assign them in the same way that the .SetScalar and .SetVector variables are assigned.
Thank you for the assistance,
gsh
|
|
|