|
[Sponsors] |
September 29, 2014, 10:32 |
Convergence criteria and database creation
|
#1 |
New Member
Jeffrey van Oostrom
Join Date: Feb 2014
Location: Delft, The Netherlands
Posts: 16
Rep Power: 12 |
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 |
|
September 30, 2014, 06:26 |
|
#2 |
New Member
Facundo
Join Date: Jun 2012
Posts: 22
Rep Power: 14 |
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 |
|
September 30, 2014, 06:40 |
|
#3 |
New Member
Jeffrey van Oostrom
Join Date: Feb 2014
Location: Delft, The Netherlands
Posts: 16
Rep Power: 12 |
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 |
|
September 30, 2014, 09:43 |
|
#4 |
New Member
Facundo
Join Date: Jun 2012
Posts: 22
Rep Power: 14 |
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)); cheers!! Facundo |
|
September 30, 2014, 23:57 |
|
#5 | |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
Quote:
https://www.youtube.com/channel/UCxv...AQPBUnl9mGRQjA Thanks for the question and your interest in SU2, Francisco |
||
October 3, 2014, 13:57 |
|
#6 |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
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 |
|
|
|