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

su2 adjoint diverges with engine inflow/exhaust BCs

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By pcg
  • 1 Post By stimitkshah@gmail.com

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2019, 18:05
Default su2 adjoint diverges with engine inflow/exhaust BCs
  #1
New Member
 
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6
stimitkshah@gmail.com is on a distinguished road
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
stimitkshah@gmail.com is offline   Reply With Quote

Old   October 26, 2019, 08:57
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13
pcg is on a distinguished road
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
pcg is offline   Reply With Quote

Old   October 28, 2019, 11:19
Default
  #3
New Member
 
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6
stimitkshah@gmail.com is on a distinguished road
Discrete. Tried your suggestions, but it still blows up.
stimitkshah@gmail.com is offline   Reply With Quote

Old   October 28, 2019, 11:49
Default
  #4
Senior Member
 
Wally Maier
Join Date: Apr 2019
Posts: 123
Rep Power: 7
wallym is on a distinguished road
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?
wallym is offline   Reply With Quote

Old   October 28, 2019, 12:33
Default
  #5
New Member
 
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6
stimitkshah@gmail.com is on a distinguished road
Primal solution residual drop are 4-5 orders of magnitude.
How can I improve on it?
stimitkshah@gmail.com is offline   Reply With Quote

Old   October 28, 2019, 20:52
Default
  #6
Senior Member
 
Wally Maier
Join Date: Apr 2019
Posts: 123
Rep Power: 7
wallym is on a distinguished road
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)
wallym is offline   Reply With Quote

Old   October 29, 2019, 12:01
Default
  #7
New Member
 
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6
stimitkshah@gmail.com is on a distinguished road
>> 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.
stimitkshah@gmail.com is offline   Reply With Quote

Old   October 30, 2019, 04:30
Default
  #8
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13
pcg is on a distinguished road
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.
pcg is offline   Reply With Quote

Old   October 30, 2019, 15:20
Default
  #9
New Member
 
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6
stimitkshah@gmail.com is on a distinguished road
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
stimitkshah@gmail.com is offline   Reply With Quote

Old   November 1, 2019, 10:56
Default
  #10
New Member
 
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6
stimitkshah@gmail.com is on a distinguished road
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
stimitkshah@gmail.com is offline   Reply With Quote

Old   November 4, 2019, 06:55
Default
  #11
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13
pcg is on a distinguished road
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.
wallym likes this.
pcg is offline   Reply With Quote

Old   November 4, 2019, 15:59
Default
  #12
New Member
 
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6
stimitkshah@gmail.com is on a distinguished road
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.
Attached Images
File Type: jpg oneraM6_cylinder.jpg (41.6 KB, 14 views)
Attached Files
File Type: zip oneraM6_cyl.zip (101.8 KB, 3 views)
stimitkshah@gmail.com is offline   Reply With Quote

Old   November 4, 2019, 16:06
Default
  #13
New Member
 
sshah
Join Date: Oct 2019
Posts: 8
Rep Power: 6
stimitkshah@gmail.com is on a distinguished road
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.
Attached Images
File Type: jpg oneraM6_inflow_exhaustBC.jpg (47.5 KB, 16 views)
File Type: png oneraM6_riemannBC.png (133.1 KB, 11 views)
Kaanytk likes this.
stimitkshah@gmail.com is offline   Reply With Quote

Reply

Tags
adjoint diverges


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
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


All times are GMT -4. The time now is 23:56.