CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > Tecplot

Plot Cp with Tecplot output data

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2019, 02:38
Default Plot Cp with Tecplot output data
New Member
Rongyu Chu
Join Date: May 2018
Posts: 5
Rep Power: 6
Archer-Saber is on a distinguished road
Hey, guys, I am trying to write some Python Code to plot Cp with Tecplot output data. Right now, I am able to get right plot in Python. In the next step, I am trying to output the x,y/z,and Cp information into Excel and plot the airfoil shape and Cp. However, I find that I have no idea how to put those information in the right sequence and get a proper plot.
Archer-Saber is offline   Reply With Quote

Old   December 30, 2019, 16:38
Scott Fowler
Join Date: May 2009
Posts: 88
Rep Power: 15
wsfowler is on a distinguished road
I'm not sure I can help you with getting the data in the proper form for Excel, but pulling the data out of Tecplot using PyTecplot is pretty easy.

Here's some example PyTecplot code, that pulls the x,y,z,Cp values out of one of the example datasets.

import tecplot as tp
dataset ="C:\Program Files\Tecplot\Tecplot 360 EX Beta\examples\OneraM6wing\OneraM6_SU2_RANS.plt")
xvals ='WingSurface').values('x').as_numpy_array()
yvals ='WingSurface').values('y').as_numpy_array()
zvals ='WingSurface').values('z').as_numpy_array()
cp_vals ='WingSurface').values('Pressure_Coefficient').as_numpy_array()
Perhaps you can give some more information on the type of plot you're trying to make - and why in Excel?

wsfowler is offline   Reply With Quote


pressure coefficient, python, tecplot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using gnuplot to plot probe data Rotidpor OpenFOAM 3 March 9, 2022 06:44
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 08:31
Generating output data on AQWA Naut afitriadhy ANSYS 0 July 2, 2015 03:37
Improved solver data output / tracking / visualization chriss85 OpenFOAM Running, Solving & CFD 1 May 13, 2015 08:55
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27

All times are GMT -4. The time now is 17:52.