Difference between revisions of "Paraview Trace"
(Initial creation, only added running for now because I need to do other things and those are the steps I just forgot and had to re-learn. Hoping to circle back later) |
m |
||
Line 1: | Line 1: | ||
− | + | Paraview traces are ways to create a python script of a set of actions that can be later applied to different datasets or over a loop of datasets automatically. The following will brefly explain the creation, cleaning, and running of a python trace in Paraview (which will often be shortened to pvTrace or something similar). | |
=== Creation === | === Creation === |
Revision as of 11:38, 16 June 2023
Paraview traces are ways to create a python script of a set of actions that can be later applied to different datasets or over a loop of datasets automatically. The following will brefly explain the creation, cleaning, and running of a python trace in Paraview (which will often be shortened to pvTrace or something similar).
Creation
Basic Changes to the Python Script
Running a Trace
Running a pvTrace, whether on the same or a different dataset requires only a few key steps. For now, it will be assumed that the trace is being run on Cooley at ALCF, though many of the steps should be shared for other machines.
If you are running the trace on a dataset that is not the same as the one for which you created the trace, it is good practice to always check your script and inputs. Make sure you have all of the restart and geombc files that you will need, and that you are pointing to the correct locations in the python script (it is recommended that you use absolute paths to reduce the chances for error). Also check your output file name and location.
Once your python script is ready, you need to get an interactive allocation on Cooley and load the same version of paraview with which the trace was created:
soft add +paraview-5.5.2
This loads pvpython
which is what is used to run the python trace script. To run this scrip is simply a modification of a standard python run command.
pvpython Trace_Script.py