CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Merging history files with restart case (https://www.cfd-online.com/Forums/su2/241173-merging-history-files-restart-case.html)

shahidkhan February 11, 2022 23:56

Merging history files with restart case
 
I have a doubt regarding the history files generated-
Suppose I am running a case from iteration=0 to iteration=2000. I get a history.dat file and I save it. After that I run my case again using the restart_flow.dat file. Again I get a new history file starting from iteration=0 which is essentially iteration=2001. Now I get two history files.
How can I merge these two files so that I can get only one convergence plot?
Can we do this in SU2 or it can be done in post-processing software?

Note- I am using tecplot for post-processing.

bigfootedrockmidget February 12, 2022 08:22

Hi! It's currently not possible from within SU2 to say that the new history file should append to the existing history file. You have to write to different history files, and then you can concatenate them afterwards by getting the header of the first file and adding the body of all files and writing to a concatenated history file simply by using:

Code:

(head -1 history_00001.csv ; tail -n +2 -q history*.csv ) > history_all.txt

shahidkhan February 13, 2022 23:48

Really thank you.


All times are GMT -4. The time now is 07:23.