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

Convergence criteria and database creation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2014, 10:32
Default Convergence criteria and database creation
  #1
New Member
 
Jeffrey van Oostrom
Join Date: Feb 2014
Location: Delft, The Netherlands
Posts: 16
Rep Power: 12
Doriris is on a distinguished road
Hello developer team of SU2,

I have a two part question regarding SU2. I've been working with SU2 for a few months now, to complete my master thesis. My work so far has focussed on validating the software for my purposes. Now, it is time for the next step, which is the generation of an aerodynamic database of a hypersonic vehicle.

Question 1: Can the convergence criteria also be applied to RhoE, rather than the Rho residual?
Reason for this is that I am not only interested in decent converged pressures but moreover in decent converged heat fluxes and temperatures. Now, I have to guess how far I need to let Rho converge to get a certain convergence for RhoE. Is there any way to get this done, either by option or by changing some parameters in the source code?

Question 2: Is there a nifty and useful way to create an aerodynamic database (CL,CD,CM,T,Q) for various Mach numbers and angles of attack?
I have a set of Mach numbers and angles of attack I need to compute the aerodynamic coefficients and heatfluxes of. Now, I can easily create multiple CFG files and submit some jobs to the cluster, but is it also possible to perform a Mach or angle of attack sweep by specifying some options in the config file or adapting a small piece in the source code?

Thank you in advance for your reply. I will also keep an eye out for this Wednesday YouTube meeting .

Regards,

Jeffrey van Oostrom
Doriris is offline   Reply With Quote

Old   September 30, 2014, 06:26
Default
  #2
New Member
 
Facundo
Join Date: Jun 2012
Posts: 22
Rep Power: 14
akun646 is on a distinguished road
Hello Jeffrey,

with respect to your question 1. In fact all the conservative variables residuals, including RhoE, are computed and can be found in the "history.csv" or "history.plt" files (depending on your output format). But if you want RhoE residual to be printed out on the terminal instead of Rho residual, you can modify it on the out_structure.cpp file. Have a look from the line 4867 of the mentioned file. Hope this helps a little bit.

regards,

Facundo
akun646 is offline   Reply With Quote

Old   September 30, 2014, 06:40
Default
  #3
New Member
 
Jeffrey van Oostrom
Join Date: Feb 2014
Location: Delft, The Netherlands
Posts: 16
Rep Power: 12
Doriris is on a distinguished road
Facundo,

Thank you for your reply. I am aware that all residuals are printed to the history file and that Rho and RhoE are printed to the terminal. The issue is that the criteria of convergence that are set in the CFG file apply to the Rho residual only. So if the Rho residual has achieved a reduction of order or reached a minimum value (as set in the CFG file), the solver stops and the solution is converged. This does not mean that the RhoE has obtained a low residual value. I would therefore like to know how I can apply the convergence criteria to RhoE, rather than Rho.

I hope this clarifies my question.

Jeffrey van Oostrom
Doriris is offline   Reply With Quote

Old   September 30, 2014, 09:43
Default
  #4
New Member
 
Facundo
Join Date: Jun 2012
Posts: 22
Rep Power: 14
akun646 is on a distinguished road
Hi Jeffrey,

I am sorry for misunderstanding your point. I thought that you were applying some turbulence model and couldn't see RhoE residual on the screen, since when turbulence model is present the terminal prints out Rho and turbulence residuals by default.

If you want to change the 'Residual' convergence criteria I think you should have a look on "integration_time.cpp" line 657.


Code:
if (config->GetConvCriteria() == RESIDUAL) 
        (*monitor) = log10(solver_container[FinestMesh][FLOW_SOL]->GetRes_RMS(0));
If I am not wrong, you should replace the variable number in GetRes_RMS() by that corresponding to RhoE. Hope this time I could give some useful help, and just let know if it works. Anyway it would be good if convergence criteria options can be set directly on the CFG file in the future.

cheers!!

Facundo
akun646 is offline   Reply With Quote

Old   September 30, 2014, 23:57
Default
  #5
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Quote:
Originally Posted by Doriris View Post
Hello developer team of SU2,

I have a two part question regarding SU2. I've been working with SU2 for a few months now, to complete my master thesis. My work so far has focussed on validating the software for my purposes. Now, it is time for the next step, which is the generation of an aerodynamic database of a hypersonic vehicle.

Question 1: Can the convergence criteria also be applied to RhoE, rather than the Rho residual?
Reason for this is that I am not only interested in decent converged pressures but moreover in decent converged heat fluxes and temperatures. Now, I have to guess how far I need to let Rho converge to get a certain convergence for RhoE. Is there any way to get this done, either by option or by changing some parameters in the source code?

Question 2: Is there a nifty and useful way to create an aerodynamic database (CL,CD,CM,T,Q) for various Mach numbers and angles of attack?
I have a set of Mach numbers and angles of attack I need to compute the aerodynamic coefficients and heatfluxes of. Now, I can easily create multiple CFG files and submit some jobs to the cluster, but is it also possible to perform a Mach or angle of attack sweep by specifying some options in the config file or adapting a small piece in the source code?

Thank you in advance for your reply. I will also keep an eye out for this Wednesday YouTube meeting .

Regards,

Jeffrey van Oostrom
We will reply this post tomorrow Wednesday at 10:00am (PDT) in "This week in SU2".

https://www.youtube.com/channel/UCxv...AQPBUnl9mGRQjA

Thanks for the question and your interest in SU2,

Francisco
fpalacios is offline   Reply With Quote

Old   October 3, 2014, 13:57
Default
  #6
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Please find in this link the reply to this post. In the “description” box you will find the direct link to the question.

"This week in SU2": Wednesdays at 10:00am (PDT) on YouTube.

Best,
The SU2 team
fpalacios 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



All times are GMT -4. The time now is 01:31.