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

How do i make SU2 print ONLY the history files and nothing else?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2021, 02:54
Default How do i make SU2 print ONLY the history files and nothing else?
  #1
New Member
 
tobi
Join Date: Jan 2021
Posts: 4
Rep Power: 5
cfdlearner123 is on a distinguished road
I want to make su2 to only print the history file and restart file, I do not want it to write the solution file. Also if i call SU2 multiple times, is there a way for me to make it append my already exiting history.csv file rather than make a new one everytime?
cfdlearner123 is offline   Reply With Quote

Old   September 23, 2021, 05:54
Default
  #2
Member
 
Ravi
Join Date: May 2017
Posts: 32
Rep Power: 9
raviramesh10 is on a distinguished road
Quote:
Originally Posted by cfdlearner123 View Post
I want to make su2 to only print the history file and restart file, I do not want it to write the solution file. Also if i call SU2 multiple times, is there a way for me to make it append my already exiting history.csv file rather than make a new one everytime?
Hi Tobi,

You can simply not print any other output files. That should solve the issue. And regarding appending the history file on calling SU2 multiple times, that is something that SU2 already does from what I understand. It just overwrites the same file if the file name remains the same.

Hope this solves your issue.
raviramesh10 is offline   Reply With Quote

Old   September 23, 2021, 06:15
Default
  #3
New Member
 
tobi
Join Date: Jan 2021
Posts: 4
Rep Power: 5
cfdlearner123 is on a distinguished road
Quote:
Originally Posted by raviramesh10 View Post
Hi Tobi,

You can simply not print any other output files. That should solve the issue. And regarding appending the history file on calling SU2 multiple times, that is something that SU2 already does from what I understand. It just overwrites the same file if the file name remains the same.

Hope this solves your issue.

Hey, thanks for the quick reply, but how do i not print any output files. and also what im doing is that im conducting the simulation several times from another python program using the restart files. But everytime i restart the simulation a new history file is created. Is there any way i can append the first file that was created?
cfdlearner123 is offline   Reply With Quote

Old   September 23, 2021, 06:22
Default
  #4
Member
 
na
Join Date: Jul 2018
Posts: 90
Rep Power: 8
TKatt is on a distinguished road
Hi Tobi,


a) We use restart-file and solution-file for the same thing. The former is written by a simulation and the latter is read for restarts. But they are the same file so-to-say. I guess you dont want to write a visualization file for Paraview/Tecplot. In that case set OUTPUT_FILES= RESTART (OUTPUT_FILES= RESTART, PARAVIEW_MULTIBLOCK e.g. would write output for visualization). For more info please look here https://su2code.github.io/docs_v7/Custom-Output/


b) Unfortunately I think there is currently no way to append to a history file. It also always starts to count from iteration number 1 each time.


hope that helps, Tobi (as well)
TKatt is offline   Reply With Quote

Old   September 23, 2021, 06:34
Default
  #5
New Member
 
tobi
Join Date: Jan 2021
Posts: 4
Rep Power: 5
cfdlearner123 is on a distinguished road
Quote:
Originally Posted by TKatt View Post
Hi Tobi,


a) We use restart-file and solution-file for the same thing. The former is written by a simulation and the latter is read for restarts. But they are the same file so-to-say. I guess you dont want to write a visualization file for Paraview/Tecplot. In that case set OUTPUT_FILES= RESTART (OUTPUT_FILES= RESTART, PARAVIEW_MULTIBLOCK e.g. would write output for visualization). For more info please look here https://su2code.github.io/docs_v7/Custom-Output/


b) Unfortunately I think there is currently no way to append to a history file. It also always starts to count from iteration number 1 each time.


hope that helps, Tobi (as well)

Hey, thanks for the quick reply.
ill try that out and let you know if it works!
cfdlearner123 is offline   Reply With Quote

Old   September 23, 2021, 18:12
Default
  #6
Senior Member
 
Pay D.
Join Date: Aug 2011
Posts: 166
Blog Entries: 1
Rep Power: 15
pdp.aero is on a distinguished road
Quote:
Originally Posted by cfdlearner123 View Post
I want to make su2 to only print the history file and restart file, I do not want it to write the solution file. Also if i call SU2 multiple times, is there a way for me to make it append my already exiting history.csv file rather than make a new one everytime?

You can write a shell script like what I attached to do this.


If you set OUTPUT_WRT_FREQ= 10000000 (large number) it will write only when convergence criteria is met but then you can remove them at each of your runs.


Also I think you can do the similar thing with FADO. For that you need to put up a python script. Refer to FADO on github.


You can find the mesh on SU2's testcases:
https://github.com/su2code/TestCases.../rans/naca0012
Attached Files
File Type: gz turb_NACA0012_sst.cfg.tar.gz (2.9 KB, 3 views)
File Type: gz example.sh.tar.gz (407 Bytes, 4 views)
__________________
since every contribution counts, always good ones are appreciated!

Last edited by pdp.aero; September 24, 2021 at 01:39.
pdp.aero is offline   Reply With Quote

Old   September 27, 2021, 04:01
Default
  #7
New Member
 
tobi
Join Date: Jan 2021
Posts: 4
Rep Power: 5
cfdlearner123 is on a distinguished road
Hey, thanks for the reply. I'll try it out!
cfdlearner123 is offline   Reply With Quote

Reply

Tags
output data, printing, su2


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



All times are GMT -4. The time now is 12:57.