Using Python Scripting To Plot Integration Of A Variable Over A Line Versus Time In Paraview
I have some OpenFOAM simulation results (you may use the official can.ex2 model which can be downloaded from here). What I want to do is: open a file, load the original data as de
Solution 1:
The easiest way to write a Python script to do this is to use ParaView's Python Trace capabilities. Basically, you start a trace and then run through the actions you've listed in the Paraview user interface. ParaView translates your actions into a Python script that you can save and modify after stopping the trace. See Section 1.6.2 of the ParaView Guide for more information. It is probably the single best way to learn about Python scripting for ParaView.
Post a Comment for "Using Python Scripting To Plot Integration Of A Variable Over A Line Versus Time In Paraview"