|
[Sponsors] |
November 5, 2015, 19:52 |
How do I use surface_adjoint.csv correctly?
|
#1 |
Senior Member
Jouke de Baar
Join Date: Oct 2009
Posts: 127
Rep Power: 17 |
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! |
|
Tags |
basisfunction, sensitivity |
|
|
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 |