|
[Sponsors] |
July 3, 2019, 06:06 |
New objective function
|
#1 |
New Member
kevin havart
Join Date: Jun 2019
Posts: 8
Rep Power: 6 |
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 |
|
July 4, 2019, 06:33 |
|
#2 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 465
Rep Power: 13 |
Hi Kevin,
It is computed in COutput::SpecialOutput_AnalyzeSurface (along with many other surface quantities). Regards, Pedro |
|
July 9, 2019, 10:17 |
|
#3 |
New Member
kevin havart
Join Date: Jun 2019
Posts: 8
Rep Power: 6 |
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 |
|
|
|
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 |