|
[Sponsors] |
su2 adjoint diverges with engine inflow/exhaust BCs |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 25, 2019, 18:05 |
su2 adjoint diverges with engine inflow/exhaust BCs
|
#1 |
New Member
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6 |
I am running a supersonic case with engine inflow/exhaust bcs (ENGINE_INFLOW_TYPE= FAN_FACE_PRESSURE), but the adjoint diverges. I have tried MARKER_INLET/OUTLET and MARKER_RIEMANN BCs as well. Other things tried include NAVIER_STOKES/EULER simulations, different meshes, and varied bunch of other parameters in configuration file. Any suggestions on what I can do to get the adjoint to converge with engine inflow/exhaust BCs will be appreciated.
Thanks |
|
October 26, 2019, 08:57 |
|
#2 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13 |
Which adjoint? Continuous or discrete?
I don't know much about continuous adjoint, but if you are running the discrete adjoint try running at the a high CFL and using RELAXATION_FACTOR_FLOW is it still diverges. Last edited by pcg; October 26, 2019 at 08:59. Reason: Update |
|
October 28, 2019, 11:19 |
|
#3 |
New Member
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6 |
Discrete. Tried your suggestions, but it still blows up.
|
|
October 28, 2019, 11:49 |
|
#4 |
Senior Member
Wally Maier
Join Date: Apr 2019
Posts: 123
Rep Power: 7 |
From my experience the primal solution needs to be resolved fairly well to prevent the discrete adjiont doesnt blow up. What are the residuals you are reaching in the flow solution?
|
|
October 28, 2019, 12:33 |
|
#5 |
New Member
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6 |
Primal solution residual drop are 4-5 orders of magnitude.
How can I improve on it? |
|
October 28, 2019, 20:52 |
|
#6 |
Senior Member
Wally Maier
Join Date: Apr 2019
Posts: 123
Rep Power: 7 |
What order are the finalized residuals?
I do not have much experience with the BC's you have mentioned but here are somethings you cant try: 1.) Run your simulation longer (setting residual reduction higher) if you haven;t reached a plateau 2.) Use a numerical flux scheme for high-speed flows (AUSM family, HLLC?, maybe roe) |
|
October 29, 2019, 12:01 |
|
#7 |
New Member
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6 |
>> What order are the finalized residuals?
-- Final residuals for density kinda plateaued at -4 (dropping from 1), momentum[0], [1], [2] are at -1 (dropping from 3) and energy is at 2 (dropping from max of 7). But why is the final value important? >> I do not have much experience with the BC's you have mentioned but here are somethings you cant try: 1.) Run your simulation longer (setting residual reduction higher) if you haven't reached a plateau 2.) Use a numerical flux scheme for high-speed flows (AUSM family, HLLC?, maybe roe) -- Still I tried running the simulation longer (20000 iterations instead of 10000) and usedCONV_NUM_METHOD_FLOW= AUSM numerical flux scheme for primal and CONV_NUM_METHOD_ADJFLOW= ROE for adjoint and that actually resulted in target CL not getting met (CL has significant oscillatory behavior with iterations) and residuals are flat at very high values. |
|
October 30, 2019, 04:30 |
|
#8 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13 |
That does not sound like good convergence, 6 orders would be preferable, and sometimes it is more important that you do not get limit-cycle behavior, which it seems you are getting.
CONV_NUM_METHOD_ADJFLOW is a continuous adjoint option I believe, the discrete uses whatever you have for the primal solver. To rule out convergence issues I would start with the JST scheme which tends to be the most robust (there are recent but closed topics on github about how to get best performance out of JST). If that works switch to 1st order Roe, then 2nd order Roe with the Venkat-Wang limiter. Roe still gives you control over numerical dissipation via the entropy correction coefficient, from my experience that makes it more robust than the other upwind schemes we have atm. The convergence properties of the discrete adjoint are very similar to whatever you get in the direct simulation so you really need to take the time to make it converge properly. |
|
October 30, 2019, 15:20 |
|
#9 |
New Member
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6 |
I have tried JST scheme before. Could you point me to the post on github that discusses how to get best performance out of JST? Maybe one or more settings that I have in my config file aren't right.
Thanks |
|
November 1, 2019, 10:56 |
|
#10 |
New Member
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6 |
So I tried the recommendations for getting out best performance out of JST given in the post https://github.com/su2code/SU2/issues/793, but adjoint still diverges. Primal solution converges faster though
|
|
November 4, 2019, 06:55 |
|
#11 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13 |
Can you make your case available? JST is quite robust so it might be a bug...
If it is too large or a proprietary 11 herbs and spices project there is not much we can do. |
|
November 4, 2019, 15:59 |
|
#12 |
New Member
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6 |
Yes I can't upload the proprietary geometry, but I do have a made up oneraM6 + cylinder case that has same behavior. Note that the MARKER_RIEMANN (commented out in the config file) works fine but MARKER_ENGINE_INFLOW/EXHAUST does not.
To reduce the size of the attachment, I have uploaded .pw file without mesh in it. .png file shows the setup and bcs Let me know if you have questions about the setup. |
|
November 4, 2019, 16:06 |
|
#13 |
New Member
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6 |
Following pictures show convergence of 2 cases
1) case with MARKER_ENGINE_INFLOW/EXHAUST BC (adjoint blows up) 2) with MARKER_RIEMANN BC (adjoint works fine) Note that the setup with MARKER_RIEMANN does not work so well with the real proprietary case. Adjoint still has convergence issues with it. |
|
Tags |
adjoint diverges |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Shape optimization doesn't converge - Adjoint log file | JPBLourenco | SU2 Shape Design | 0 | December 11, 2017 08:41 |
SU2 LES, discrete adjoint | testcase | SU2 | 1 | July 27, 2017 04:46 |
wrong SU2 calculation for lift and drag coefficient for NAC4421 | mechy | SU2 | 7 | January 9, 2017 05:18 |
hard to convergent with SU2 4.0 for Euler adjoint | Xianguu | SU2 | 1 | July 14, 2015 17:09 |
best setting for SU2 | mechy | SU2 | 3 | April 20, 2014 19:13 |