Need help in loading data
Hi all!
I ran a transient simulation with the solution export in Tecplot format enabled. I was exporting data every 100 time-steps. This gave me a large number of files in Tecplot format (.plt). Now, when I load all files at once in Tecplot, it opens all files at once, merging them together. The option of solution animation is also greyed out. What am I doing wrong? |
For data to be recognized as transient, Tecplot zones need both a Solution Time and Strand attribute assigned to them.
Strand is an integer value which identifies "like" zones through time. A positive value indicates transient. A value of zero indicates non-transient. If this information is not embedded in the file by your solver, Tecplot will (as you've noticed) not recognize the data as transient and will attempt to load all the data at once. You could use PyTecplot, the Python API to Tecplot 360 to modify the PLT files as such: Code:
import glob Code:
zone.strand = zone.index+1 |
Quote:
I really appreciate the time you took to help me out. I'll work on it and post whether I made any progress. Thanks! |
wsfowler's solution is very good and PyTecplot is really awesome.
If you don't want to learn PyTecplot's api, here is an easy way. I assume your .plt file is formatted( which you can edit them directly), just add "SOLUTIONTIME=your_data_time" under the line "Zone T=" your_data_zone " ". Here is an example: Code:
Variables = "X", "Y", "Z", "X Velocity", "Y Velocity", "Z Velocity", "Diameter", " Temperature" |
By convention binary files are .plt and ASCII files are .dat. Of course we can't regulate that out in the real world. Your solution is a good one for ASCII files, but won't work with binary files.
|
All times are GMT -4. The time now is 11:31. |