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

How do I use surface_adjoint.csv correctly?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By jack1980

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2015, 19:52
Default How do I use surface_adjoint.csv correctly?
  #1
Senior Member
 
Jouke de Baar
Join Date: Oct 2009
Posts: 127
Rep Power: 17
jack1980 is on a distinguished road
Hi,

I'm trying to get adjoint based sensitivities for my design parameters, however, I would like to use self-defined shape deformation basis functions.

To do so, I deform the mesh "by hand", then run the direct solve and adjoint solve. I thought I should then be able to compute the sensitivities from the information in surface_adjoint.csv. This is my first attempt for a deformation on the top of the wing (I should probably take into account that 'senstop' is normal to the surface later):

data = np.loadtxt( 'surface_adjoint.csv' , skiprows = 1 , delimiter = ',' )
xtop = data[102:-1,6]
senstop = data[102:-1,1]
return np.trapz( senstop*basisfunction(xtop) , x = xtop )

This seems to give the sensitivity, up to a (negative) factor. What am I doing wrong here?

Thank you for your help!
Kemas_Zack and Tongtong1919 like this.
jack1980 is offline   Reply With Quote

Reply

Tags
basisfunction, sensitivity


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
interFoam running blowing up sandy13 OpenFOAM Running, Solving & CFD 2 May 5, 2015 08:16
how to set correctly the porosity properties to use porousInterFoam? cramsdead OpenFOAM Running, Solving & CFD 5 December 10, 2014 04:43
Viscosity-related ODE not solved correctly in a Taylor-Couette flow mk1 OpenFOAM Running, Solving & CFD 0 July 15, 2014 05:24
motorBike tutorial won't run correctly with 2.2.x Dan_Sobien OpenFOAM Running, Solving & CFD 4 September 6, 2013 05:33
[ICEM] Procedure : how to mesh correctly two semicircles in an air flow ? eeesprit ANSYS Meshing & Geometry 2 April 10, 2011 16:14


All times are GMT -4. The time now is 19:08.