|
[Sponsors] |
February 12, 2022, 00:56 |
Merging history files with restart case
|
#1 |
Member
Shahid Khan
Join Date: Jan 2020
Posts: 35
Rep Power: 6 |
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. |
|
February 12, 2022, 09:22 |
|
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 657
Rep Power: 19 |
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 |
|
February 14, 2022, 00:48 |
|
#3 |
Member
Shahid Khan
Join Date: Jan 2020
Posts: 35
Rep Power: 6 |
Really thank you.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving restart files at different frequency from surface files | imandralis | SU2 | 1 | August 10, 2021 09:38 |
Deleting files in /constant/polyMesh to reset and store OpenFOAM case | sdfij6354 | OpenFOAM Running, Solving & CFD | 0 | December 21, 2017 08:37 |
Limit in Grid size in FLUENT and appending case files | imaloke | FLUENT | 1 | January 8, 2012 00:02 |
Limit in Grid size in FLUENT and appending case files | imaloke | OpenFOAM Running, Solving & CFD | 0 | January 7, 2012 17:27 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |