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

New obj func in discrete adjoint solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2021, 22:27
Default New obj func in discrete adjoint solver
  #1
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8
Zhen ZHANG is on a distinguished road
Hi all,

I use a new objective function in the discrete adjoint solver. But the derivative of this new objective function is about 1e-11 and much smaller than of other existed objective functions.

Should I do anything to make this new objective function available to the discrete solver?

Thanks!
Zhen ZHANG is offline   Reply With Quote

Old   August 1, 2021, 23:17
Default
  #2
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 8
Zhen ZHANG is on a distinguished road
I got it!

In CFVMFlowSolverBase<V,R>::EvaluateCommonObjFunc(con st CConfi
g& config) const, the new obj func should be added. Otherwise, the obj func in the discrete solver will be zero, and the derivative is not correct.
Zhen ZHANG 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
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 05:02
the gradients calculated through discrete adjoint are near zero Haowang SU2 9 October 17, 2019 22:53
Adjoint Solver: Bounded by Surfaces constraint not converging J.J FLUENT 0 March 13, 2019 19:56
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01
A question about discrete adjoint method Thomas Main CFD Forum 3 August 9, 2006 12:37


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