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

Restart file question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2024, 06:59
Default Restart file question
  #1
New Member
 
Join Date: Aug 2023
Posts: 15
Rep Power: 2
Athos_e is on a distinguished road
Hello everyone,

I have a quick question regarding the restart file in SU2.

I am using a .csv file in order to restart a simulation (combining two meshes to form one without using multizone). I am not quite sure how the restart file works. I thought su2 would go on and read the restart file for every grid point and associate all the values from the restart file to that point and start from there.

However as I was just messing around to try to understand how it really works, I started removing values e.g set Pressure =0 for every point where normally there's a region of 15atm and another of 1 atm, and run the restart sim.

I expected to see in the vtu files in Paraview that my whole domain has 0 pressure everywhere. But as it turns out the pressure in my domain has not changed at all. I still have a region of high pressure and a region of low pressure as if I didn't change anything in restart file. To me this doesnt make sense as I thought SU2 simply reads from restart file and restarts the simulation based on those values. Note that pressure is just an example, I then also set temperature, velocity and a few other variables to 0 and still nothing changed.

What am I missing here?

Thanks for your help
Athos_e is offline   Reply With Quote

Old   April 26, 2024, 07:18
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 529
Rep Power: 17
bigfootedrockmidget is on a distinguished road
Quote:
Originally Posted by Athos_e View Post
Hello everyone,
I thought SU2 simply reads from restart file and restarts the simulation based on those values.

Yes, that is exactly what SU2 does. Note that the filename SU2 uses for restarting is set using :
Code:
SOLUTION_FILENAME= solution_flow.dat

which is by default different from the filename that is used to save the solution:
Code:
RESTART_FILENAME= restart_flow.dat





bigfootedrockmidget is offline   Reply With Quote

Old   April 29, 2024, 05:35
Default
  #3
New Member
 
Join Date: Aug 2023
Posts: 15
Rep Power: 2
Athos_e is on a distinguished road
Hello,

Thanks for the quick reply. Yeah totally makes sense to work like that. But i dont know if I am doing smthn wrong, but i don't think so. I will attach also the files for you to have a look. I am using mutation++ and some custom reactions which I will not attach but if you have mpp installed and you want to try it out I can send the files. Also note I am using csv files and not dat.

So basically in my cfg file I run the sim once, with the correct restart file as it was given by su2. Then I take the same restart file and set 0 to all entries for Pressure. I would expect when I run the sim again to have pressure=0. However I get the same results as before messing with restart file. I have no clue as to why that is..

Thanks for the help again. Best regards,
Athos

Note: I will attach the files separately because for some reason when I try to attach it here it doesn't let me and the website crashes
Athos_e is offline   Reply With Quote

Old   April 29, 2024, 05:41
Default
  #4
New Member
 
Join Date: Aug 2023
Posts: 15
Rep Power: 2
Athos_e is on a distinguished road
Here are the files. Note how one solution file has 0 for Pressure column whereas the other has the correct pressure. For both restart files I get the same results as the picture showing the pressure in the domain
Attached Images
File Type: jpg no_P_solution.jpg (198.1 KB, 2 views)
File Type: jpg solution.jpg (200.9 KB, 2 views)
File Type: jpg Pressure.jpg (17.8 KB, 0 views)
Attached Files
File Type: txt NEMO_NS_combined.txt (3.2 KB, 1 views)
Athos_e is offline   Reply With Quote

Reply

Tags
restart file, 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 08:52.