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

Flow residuals

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2019, 11:34
Default Flow residuals
  #1
New Member
 
Martin E.
Join Date: May 2019
Posts: 12
Rep Power: 6
Situla is on a distinguished road
Hello everyone!


I see many questions about the residuals, but very few answers. I personally am interested in what which one is. In my history.vtk I have the following columns (among others)
"Res_Flow[0]","Res_Flow[1]","Res_Flow[2]","Res_Flow[3]","Res_Flow[4]","Res_Turb[0]"
In the FAQ I found answers to things called "Conservative", "Residual", and "Primitive". How are they related to the ones in the history file? What are "Res[nu]" and others?

The link mentioned in this post does not seem to exist; it just leads to the github page.



Another thing: Sometimes I get a lower value for "log10[Maximum residual]" in the Residual Evolution Summary than some of the residuals of the preceding or succeeding iteration (e.g. -8 for the "log10[Maximum residual]" but -6 for "Res[Rho]" or some other). How is that possible? Logically, I would assume that SU2 calculates all residuals in all cells, then for each variable (e.g. density, x-velocity) finds the maximum of all cells, then it writes those in the command output as well as in history file, and then it finds the maximum of the maxima of the variables and lists that as "log10[Maximum residual]". Clearly, this is not the case, but I am struggling to figure out what else it can mean, and I cannot seem to find the answer in the code without spending hours trying to understand it.



Thank you for your time.
Situla is offline   Reply With Quote

Old   June 26, 2019, 14:00
Default
  #2
Senior Member
 
Wally Maier
Join Date: Apr 2019
Posts: 123
Rep Power: 7
wallym is on a distinguished road
Hi Situla,


Thanks for using SU2 and coming to the forum!


To answer your question the Res_Flow[#] correspond to residuals of the conservative variables. So in the 2D Euler case, we have rho = Res_Flow[0] rho*u=Res_Flow[1] and so on.
So in this case the Res[Rho] and Res[rhoE] should match up directly to Res_Flow[0] and [4] directly. Res[nu] = Res_Turb[0].



The second part of your question is a bit strange. Your logic is correct. The residuals written on the screen and history are the root-mean-square of the residuals of that variable for the entire geometry/mesh.

But, that being said the Log10[maximum] should be bigger than any of the output at that iteration, unless the residuals increase in the next iteration.


I hope that made sense. Please let me know if you have anymore questions.


Wally
wallym is offline   Reply With Quote

Old   June 26, 2019, 14:48
Default
  #3
New Member
 
Martin E.
Join Date: May 2019
Posts: 12
Rep Power: 6
Situla is on a distinguished road
Hi Wally! Thank you very much for the clarification. That helped a lot.


Regarding the second part, I am quite certain that I encountered this, but it might have been during some of the many unsuccessful attempts I performed in trying to get a simulation to converge. If I see it again, I will attach a screenshot.


Many thanks and regards
Situla is offline   Reply With Quote

Old   October 6, 2019, 11:24
Default
  #4
New Member
 
Martin E.
Join Date: May 2019
Posts: 12
Rep Power: 6
Situla is on a distinguished road
Hello!

To follow up on the uncertainty of the "maximum" not actually being the maximum of the residuals (or at least not of all residuals), the attached screenshot shows that the alleged maximum is clearly lower than the nu residual of the preceding and succeeding iterations.
Quite possibly, turbulent residuals are simply an exception and are not considered for evaluating the maximum.

Kind regards
Attached Images
File Type: png SU2_residuals.PNG (16.5 KB, 55 views)
Situla is offline   Reply With Quote

Old   October 7, 2019, 03:17
Default
  #5
Member
 
Akshay Koodly
Join Date: Aug 2017
Location: The Netherlands
Posts: 43
Rep Power: 8
akoodlyr is on a distinguished road
Hi,

IIRC the maximum residual that gets printed is the maximum among the flow solver residuals which would explain the turbulent solver residual being larger than the one printed. SU2 solves the flow and turbulent equations in a segeregated manner and, as you said, the output file only looks at the maximum among the flow solver residuals and not all equations.

I hope this resolves some confusion.

Akshay
akoodlyr is offline   Reply With Quote

Reply


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
Transient CFD flow analysis has high residuals for continuity. aabir FLUENT 0 June 21, 2017 14:38
Pressure Outlet Targeted Mass Flow Rate LuckyTran FLUENT 1 November 23, 2016 10:40
Influence of flow behavior on residuals MrNavierStokes Main CFD Forum 4 July 27, 2015 03:57
Periodically occuring reverse flow after residuals have converged zackufairu FLUENT 1 October 29, 2014 16:59
potential flow vs. Euler flow curious ... Main CFD Forum 23 July 21, 2006 07:40


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