CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > Tecplot

Compute average of multiple .plt files

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2023, 08:54
Question Compute average of multiple .plt files
  #1
35k
New Member
 
Hannes
Join Date: Nov 2020
Posts: 2
Rep Power: 0
35k is on a distinguished road
I am once again seeking for advice :/



I have multiple .plt solution files from my CFD analysis. All for the exact same mesh with the same number of zones and variables, but with slightly different results. Now i want to gather all of my .plt files and calculate an averaged solution. I am trying to solve it using PyTecplot for easy automation and additional cases, but my knownledge is limited and I'm only getting error after error.



Being honest, this sounds like a pretty easy task - just loop through every variable in every zone, add them up, divide by number of .plt files and export to new file.



I can't be the first one that comes up with this problem, however I haven't found any existing code. If you have suggestions, I'll be deeply thankful!
35k is offline   Reply With Quote

Old   November 7, 2023, 21:15
Default
  #2
Senior Member
 
Scott Fowler
Join Date: May 2009
Posts: 112
Rep Power: 16
wsfowler is on a distinguished road
We have a PyTecplot script build for that exact purpose!

It's available here:
https://github.com/Tecplot/handyscri...TimeAverage.py

And we have a video demonstrating it here:
https://tecplot.com/2022/06/29/pytec...ta-statistics/

If you need additional assistance, our support staff is available to help. Just contact support@tecplot.com
wsfowler is offline   Reply With Quote

Reply

Tags
averaging, cfd, 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
Scheme programming-read multiple data files from transient computations anuarun Fluent UDF and Scheme Programming 3 March 5, 2021 20:27
Import multiple CGNS files for overset into Ansys-Fluent Herjhoa FLUENT 2 August 8, 2018 02:09
To compute Average flowfield with oodles flying OpenFOAM Running, Solving & CFD 3 May 5, 2009 08:46
Evaluating multiple fluent files Ralf Schmidt FLUENT 0 October 25, 2004 05:15
How to compute an average slip velocity using DPM thomas FLUENT 0 February 9, 2004 08:17


All times are GMT -4. The time now is 01:28.