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, 07:59
Default Restart file question
  #1
New Member
 
Join Date: Aug 2023
Posts: 16
Rep Power: 3
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, 08:18
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
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, 06:35
Default
  #3
New Member
 
Join Date: Aug 2023
Posts: 16
Rep Power: 3
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, 06:41
Default
  #4
New Member
 
Join Date: Aug 2023
Posts: 16
Rep Power: 3
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, 4 views)
File Type: jpg solution.jpg (200.9 KB, 3 views)
File Type: jpg Pressure.jpg (17.8 KB, 1 views)
Attached Files
File Type: txt NEMO_NS_combined.txt (3.2 KB, 3 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 36 July 16, 2024 04:52
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


All times are GMT -4. The time now is 10:02.