<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "en"><head><meta charset = "UTF-8"/><meta name = "copyright" content = "(C) Copyright 2020"/><meta name = "DC.rights.owner" content = "(C) Copyright 2020"/><meta name = "DC.type" content = "task"/><meta name = "description" content = "Shows how to setup a thermal optimization for a heat sink with reaction heat flux as objective and internal heat flux as constraint."/><meta name = "DC.relation" scheme = "URI" content = "tso-c-example-topo-checkOptResult.htm#tso-c-example-topo-checkOptResult"/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-t-example-topo-sens-Thermal-FluxOptimize"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Maximizing the Heat Flux of the Heal Sink Example</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-t-example-topo-sens-Thermal-FluxOptimize">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>Maximizing the Heat Flux of the Heal Sink Example</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3"><table class = "DocHeaderIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "shortdesc">Shows how to setup a thermal optimization for a heat sink with reaction heat flux as
objective and internal heat flux as constraint.
</p></td></tr></table></td><td class = "DocHeader2"><table class = "DocTopicsSeeAlso" id = "table13"><tr><td class = "TopicsTitle">See Also</td></tr><tr><td><a title = "To get an impression of the quality of the optimization, it is necessary to check the values of the constraints and the objective at the end of the optimization." href = "tso-c-example-topo-checkOptResult.htm#tso-c-example-topo-checkOptResult">About Checking the Quality of the Optimization Result</a></td></tr></table></td></tr></table>



<div class = "body taskbody">
<section><ol class = "ol steps"><li class = "li step stepexpand">
DDefine input data and Design Variables:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
FEM_INPUT
  ID_NAME        = MY_INPUT_FILES
  FILE           = topo_thermal_heatsink_hflux.inp
END_

DV_TOPO
  ID_NAME        = MY_DV_TOPO
  EL_GROUP       = DesignVol_ELEM
END_
</pre>
</div>
</li><li class = "li step stepexpand">
To use the reaction heat flux in the objective, define a Design Response (DRESP) as follows:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DRESP
  ID_NAME        = DR_ReactFlux
  DEF_TYPE       = SYSTEM
  TYPE           = REACTION_HFLUX
  GROUP_OPER     = SUM
  ND_GROUP       = Set-heatInput
END_
</pre>
</div>
</li><li class = "li step stepexpand">
Define the Objective Function (OBJ_FUNC) as follows:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
OBJ_FUNC
  ID_NAME        = OBJ_MAX_RFLUX
  TARGET         = MAX
  DRESP          = DR_ReactFlux
END_
</pre>
</div>
</li><li class = "li step stepexpand">
Create a constraint for the volume and internal heat flux. 
<ol type = "a" class = "ol substeps">
<li class = "li substep">
Define a Design Response with the volume and internal heat flux (DRESP):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DRESP
  ID_NAME        = MY_DRESP_Vol
  DEF_TYPE       = SYSTEM
  TYPE           = VOLUME
  EL_GROUP       = DesignVol_ELEM
END_

DRESP
  ID_NAME        = DR_InternFlux
  DEF_TYPE       = SYSTEM
  TYPE           = INTERNAL_HFLUX
  GROUP_OPER     = SUM
  ND_GROUP       = NDSlice
  EL_GROUP       = ELSlice
END_
</pre>
</div>
</li>
<li class = "li substep">
Reference the Design Response in a constraint (CONSTRAINT):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
CONSTRAINT
  ID_NAME        = MY_CONSTRAINT_Vol
  MAGNITUDE      = REL
  DRESP          = MY_DRESP_Vol
  LE_VALUE       = 0.3
END_

CONSTRAINT
  ID_NAME        = MY_CONSTRAINT_Internflux
  MAGNITUDE      = ABS
  DRESP          = DR_InternFlux
  GE_VALUE       = 2.5
END_
</pre>
</div>
</li>
</ol>
</li><li class = "li step stepexpand">
Define the stamping DVCON:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DVCON_TOPO
  ID_NAME        = MY_DVCON_TOPO_StampZ
  CHECK_TYPE     = CAST
  EL_GROUP       = DesignVol_ELEM
  MID_PLANE      = STAMP
  PULL_DIR       = 0, 0, 1
  CHECK_GROUP    = ALL_ELEMENTS
END_
</pre>
</div>
</li><li class = "li step stepexpand">
Reference the Objective Function, Design Variables and Constraint as well as DVCON in the OPTIMIZE command:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
OPTIMIZE
  ID_NAME        = MY_OPTIMIZATION_TASK
  OBJ_FUNC       = OBJ_MAX_RFLUX
  DV             = MY_DV_TOPO
  DVCON          = MY_DVCON_TOPO_StampZ
  STRATEGY       = TOPO_SENSITIVITY
  CONSTRAINT     = MY_CONSTRAINT_Vol
  CONSTRAINT     = MY_CONSTRAINT_Internflux
END_
</pre>
</div>
</li></ol></section>
<p class = "result">The optimization result looks as follows:
<br/><img class = "image" src = "../TsoExampleImages/sensTopoThermalFluxResult.png" width = "491"/><br/>
<p>Without the internal heat flux constraint, the results look like:</p>
<br/><img class = "image" src = "../TsoExampleImages/sensTopoThermalFluxResultNoInternal.png" width = "491"/><br/>
</p>
</div>

<div class = "related-links"/>
</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
