|
[Sponsors] |
April 26, 2024, 07:59 |
Restart file question
|
#1 |
New Member
Join Date: Aug 2023
Posts: 16
Rep Power: 3 |
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 |
|
April 26, 2024, 08:18 |
|
#2 | |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21 |
Quote:
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 |
||
April 29, 2024, 06:35 |
|
#3 |
New Member
Join Date: Aug 2023
Posts: 16
Rep Power: 3 |
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 |
|
April 29, 2024, 06:41 |
|
#4 |
New Member
Join Date: Aug 2023
Posts: 16
Rep Power: 3 |
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
|
|
Tags |
restart file, su2 |
|
|
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 |