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

Deletion of the solution files created by SU2

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By raviramesh10
  • 1 Post By TKatt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2021, 01:44
Default Deletion of the solution files created by SU2
  #1
Senior Member
 
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 128
Rep Power: 5
ari003 is on a distinguished road
Hello everyone,
It may sound very basic to some people but I'm wondering how can the solution files created by SU2 be deleted using the terminal in Ubuntu?

Like in OpenFoam the command is >> foamListTimes -rn.

So, in SU2 what can be the command? I searched but didnt find any fitting solution. Doing it manually to select the files and delete is pretty unprofessional in my knowledge. So, any kind of help will be really appreciable.
ari003 is offline   Reply With Quote

Old   July 19, 2021, 04:33
Default
  #2
Member
 
Ravi
Join Date: May 2017
Posts: 31
Rep Power: 7
raviramesh10 is on a distinguished road
Quote:
Originally Posted by ari003 View Post
Hello everyone,
It may sound very basic to some people but I'm wondering how can the solution files created by SU2 be deleted using the terminal in Ubuntu?

Like in OpenFoam the command is >> foamListTimes -rn.

So, in SU2 what can be the command? I searched but didnt find any fitting solution. Doing it manually to select the files and delete is pretty unprofessional in my knowledge. So, any kind of help will be really appreciable.
Hi Arijit,

Were you able to delete them by using the simple rm command, and then selecting the necessary solution files?

Ex: Deleting 10000 surface flow files from the 1st to the 10000th iteration in the vtk format would look like this:

rm surface_flow_{00000..10000}.vtk

I am unfortunately unaware of any default SU2_SOL commands that do the same function. Maybe a more experienced user can help in that regard. Hope this method helps.
ari003 likes this.
raviramesh10 is offline   Reply With Quote

Old   July 23, 2021, 04:38
Default
  #3
Member
 
na
Join Date: Jul 2018
Posts: 71
Rep Power: 5
TKatt is on a distinguished road
Hi @ari003,


as @raviramesh10 said you have to just use the regular
Code:
rm <yourFile>
syntax. SU2 does not provide such functionality. For deleting a lot of files use so called wildcards e.g. the star sign *
Code:
rm solution_*.dat
for e.g. multiple time steps
Note though that SU2 of course overwrites files, so in case you re-run the same case in the same directory, you will have the correct latest files. You can e.g. check the time-stamp of your files in a directory with
Code:
 ls -l
hope that helps, Tobi
ari003 likes this.
TKatt is offline   Reply With Quote

Old   July 23, 2021, 04:54
Default
  #4
Senior Member
 
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 128
Rep Power: 5
ari003 is on a distinguished road
Thanks a lot to both of you.
It worked guys...
ari003 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
SU2 v 7.0.2 not writing solution files CarlosLozano SU2 18 August 19, 2021 09:43
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


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