|
[Sponsors] |
July 5, 2021, 04:22 |
Problem setting up constrained optimization
|
#1 | |
New Member
Join Date: Dec 2019
Posts: 2
Rep Power: 0 |
Hi,
I have trouble defining an optimization problem. The idea is to maximize the heat transfer on a surface while minimizing the pressure at the inlet. I tried to setup a constraint in this way: Code:
MARKER_MONITORING = ( INFLOW, TRANSITION ) MARKER_ANALYZE = ( INFLOW ) OBJECTIVE_FUNCTION= TOTAL_HEATFLUX OBJECTIVE_WEIGHT = -1.0 OPT_OBJECTIVE= TOTAL_HEATFLUX*-1 OPT_CONSTRAINT= ( SURFACE_STATIC_PRESSURE < 720 ) * 0.015 I am clearly doing something wrong, but I don't understand what. The design tutorial has this to say about the constraints: Quote:
Also, the parameters OBJECTIVE_FUNCTION and OBJECTIVE_WEIGHT are overwritten when doing the optimization via shape_optimization.py, correct? I am also trying to do the same optimization using penalty function, which is setup like this: Code:
OPT_OBJECTIVE= (SURFACE_STATIC_PRESSURE < 720)*0.1 ; TOTAL_HEATFLUX*-1 Any ideas are welcome! Last edited by wJhP; July 5, 2021 at 06:04. |
||
July 9, 2021, 12:33 |
|
#2 |
New Member
Join Date: Dec 2019
Posts: 2
Rep Power: 0 |
For future reference: the optimization with the penalty function runs correctly when the penalty scaling is negative:
Code:
OPT_OBJECTIVE= (SURFACE_STATIC_PRESSURE < 720)*-0.1 ; TOTAL_HEATFLUX*-1 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] determining displacement for added points | CFDnewbie147 | OpenFOAM Meshing & Mesh Conversion | 1 | October 22, 2013 10:53 |
Cells with t below lower limit | Purushothama | Siemens | 2 | May 31, 2010 22:58 |
Problem setting C_MU_T with DEFINE_ADJUST | sarah_ron | FLUENT | 1 | February 24, 2005 13:11 |
Help setting up combustor problem | Tom | FLUENT | 0 | February 5, 2005 02:20 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |