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

New objective function

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2019, 06:06
Default New objective function
  #1
New Member
 
kevin havart
Join Date: Jun 2019
Posts: 8
Rep Power: 6
khavart is on a distinguished road
Hello,

I'm currently optimizing a nozzle in order to have a uniform mach number at the outlet. So by using SURFACE_MACH objective function the uniformity is ok but I need to have a directionnal flow at the outlet (meaning that the velocity vector have to be parallel to the nozzle axis).

So I need to compute a new objective function. The first idea is to modify an existing objective function in order to get rid of output/input problems. So let's say that I want to modify the objective function named SURFACE_TOTAL_PRESSURE.

What are the lines of the code I should modify ? When I searched about it I found many places where it appears so a little help would be helpful.

Thanks,
Kevin
khavart is offline   Reply With Quote

Old   July 4, 2019, 06:33
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 465
Rep Power: 13
pcg is on a distinguished road
Hi Kevin,
It is computed in COutput::SpecialOutput_AnalyzeSurface (along with many other surface quantities).
Regards,
Pedro
pcg is offline   Reply With Quote

Old   July 9, 2019, 10:17
Default
  #3
New Member
 
kevin havart
Join Date: Jun 2019
Posts: 8
Rep Power: 6
khavart is on a distinguished road
Hi Pedro,


Thank you very much, I have found all I need.

Once I have modified the code, must I recompile it or something else of this kind ?



Thanks,
Kevin
khavart 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
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 22:07
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 18:45.