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

Optimization with the Source term in NS equation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2014, 01:57
Default Optimization with the Source term in NS equation
  #1
New Member
 
milind
Join Date: Sep 2011
Posts: 6
Rep Power: 14
milind543 is on a distinguished road
I am interested in shape optimization of a 3D wing shape in Incompressible flow conditions with a source term in the NS equation. can I get help in doing so? However I already have my own subroutine which calculates the flux and I want to put as a source term in the governing equation and finally use it in the optimization procedure this will also include to modify the adjoint equation. Please let me know if this is possible.

Thanks
milind543 is offline   Reply With Quote

Old   January 5, 2015, 15:53
Default
  #2
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Hi,

Sorry for a slow reply. Indeed, it is straightforward to include source terms in the flow and adjoint problems.

You can add an additional source term in the direct problem in the routine CEulerSolver::Source_Residual(...) in the file solver_direct_mean.cpp. You might follow the rotating frame source term at the top of the routine as an example.

Similarly, the source term can be included for the adjoint equations: after the proper derivation, the required adjoint source term should be the transpose of the Jacobian of the direct source term with respect to the conservative variables multiplied by the adjoint state. This can then be included in the CAdjNSSolver::Source_Residual(...) routine in the solver_adjoint_mean.cpp file.

Hope this helps,

Thomas D. Economon
SU2 lead developer
economon is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
add source term to transport equation m003020002 Fluent UDF and Scheme Programming 0 September 10, 2013 04:09
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


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