CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Calculating new scalar and vector quantities when loading in data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2016, 10:51
Default Calculating new scalar and vector quantities when loading in data
  #1
gsh
New Member
 
Greg
Join Date: Aug 2015
Posts: 4
Rep Power: 10
gsh is on a distinguished road
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
gsh is offline   Reply With Quote

Reply

Tags
paraview, scalar, script, source, vector


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:40.