CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Merging history files with restart case

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bigfootedrockmidget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2022, 00:56
Default Merging history files with restart case
  #1
Member
 
Shahid Khan
Join Date: Jan 2020
Posts: 35
Rep Power: 6
shahidkhan is on a distinguished road
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.
shahidkhan is offline   Reply With Quote

Old   February 12, 2022, 09:22
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 679
Rep Power: 21
bigfootedrockmidget is on a distinguished road
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
PENGGEGE777 likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   February 14, 2022, 00:48
Default
  #3
Member
 
Shahid Khan
Join Date: Jan 2020
Posts: 35
Rep Power: 6
shahidkhan is on a distinguished road
Really thank you.
shahidkhan is offline   Reply With Quote

Reply


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
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


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