Commit d3196274 authored by Camilla Dodge Koslowsky Harris's avatar Camilla Dodge Koslowsky Harris
Browse files

Added TECPLOT.markdown to include some explanations of using Tecplot with SWMF output.

parent f420b06b
# author: Camilla D. K. Harris
# email:
Visualization of SWMF output with Tecplot
To be completed.
Generating Tecplot-readable output
- summary of tecplot functionality in #SAVEPLOT command
- brief note on szplt file type, how to create them, and the szplt server tool
for HPC/linux systems
Using pytecplot
The pytecplot documentation can be found at Tecplot and pytecplot require a valid
Tecplot 360 license to use.
The latest version of pytecplot can be installed with `pip install pytecplot`.
Linux and Windows users should consult the appropriate sections of the
pytecplot documentation (
for further details; the rest of this section pertains to MacOS users.
MacOS users running python scripts which use pytecplot can connect to the
Tecplot engine either through a running instance of the Tecplot GUI or
automatically by setting the appropriate environment variable.
To connect a script to a running instance of Tecplot, open the Tecplot GUI.
Select `Scripting > PyTecplot Connections...` from the drop-down menus to open
the PyTecplot Connections dialog. Then tick the box to `Accept connections` from
the port number of your choice. Then in your python script add the following
line immediately after your import statements:
import tecplot
Be sure that the port numbers match.
In the command line you will be able to run your script:
And the effects will be mirrored in the GUI.
To run a script without connecting to a running instance of Tecplot requires
setting the `DYLD_LIBRARY_PATH` environment variable so that it references the
Tecplot libraries. However, it is not recommended to set this variable
permanently as this will cause severe conflicts with other applications. Tecplot
provides their own recommendations for temporarily setting the environment
variable ( but a simple
solution is as follows:
Add the following line to your `.bash_profile` or `.bashrc` file:
alias runpytecplot='env DYLD_LIBRARY_PATH="/Applications/Tecplot 360 EX 2019 R1/Tecplot 360 EX 2019"'
Be sure to replace `2019 R1` with the appropriate version and check that the
path is valid on your system. Then your script can be run like so:
runpytecplot python
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment