Extract Boundary Layer Values

This article describes both a macro and a PyTecplot script that extracts a field variable along a line normal to a surface. We recommend using PyTecplot insofar as possible. Example: Load the M6-Wing example file, which can be found in your Tecplot Installation Directory: …/Tecplot/Tecplot 360 EX 20xx R1/examples/OneraM6wing/OneraM6_SU2_RANS.plt. To better visualize the node at which we’ll probe, let’s turn on the mesh for the second zone. Zoom somewhere on […]

» Read More


PyTecplot Link Between Frames

In the release of PyTecplot 1.0, Frame Linking has been implemented in the API. Frame Linking allows users to quickly link attributes of frames together like position, 3D view, and solution time. To link the view simply implement the following commands on both frames: for frame in tp.frames(): plot = frame.plot(PlotType.Cartesian3D) plot.activate() frame_linking = plot.linking_between_frames frame_linking.group = 1 frame_linking.link_view = True frame_linking.link_solution_time = True This allows all of the frames […]

» Read More


Explanation of Cell-Centered data when using NumPy Arrays in PyTecplot

Problem: When reading data of ordered zones in PyTecplot, cell-centered data array lengths do not match the shape of the zone. A cell-centered variable with a 9,9,9 shape has a length of 900. Solution: This is to be expected. In Tecplot 360, for nodal ordered data, the number of nodes is the product of the I-, J-, and K-dimensions. For nodal data, the number of stored values is equal to […]

» Read More


Generating Animations One Frame at a Time in Parallel Using PyTecplot

Leveraging Python’s multiprocessing library when paired with PyTecplot scripting creates powerful efficiency. One such example is using multiprocessing to output a large amount of images in parallel. As a result, reducing the time needed to execute. This ParallelImageCreator.py script located in the Tecplot handyscripts GitHub saves every timestep of the active frame as an individual png image. It contains the following arguments: positional arguments: layoutfile Tecplot layout file to open […]

» Read More


How do I Install PyTecplot?

First off, PyTecplot requires an installation of Tecplot 360 2017 R1 or later. PyTecplot is also hosted on PyPI so you simply need to run ‘pip install pytecplot’ from a command prompt. Easy as Py! PyTecplot is also included in the Tecplot 360 installation so you can install from there if you have an overzealous firewall or want to ensure the PyTecplot version you’re installing is guaranteed to be compatible […]

» Read More