<?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 CPU cooler with temperature as objective."/><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-TempOptimize"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Minimizing Temperature of the CPU Cooler Example</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-t-example-topo-sens-Thermal-TempOptimize">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>Minimizing Temperature of the CPU Cooler 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 CPU cooler with temperature as objective.
</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">
Define input data and Design Variables:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
FEM_INPUT
  ID_NAME  = MY_INPUT_FILES
  FILE     = topo_thermal_cpu_temp.inp
END_

DV_TOPO
  ID_NAME  = MY_DV_TOPO
  EL_GROUP = ALL_ELEMENTS
END_
</pre>
</div>
</li><li class = "li step stepexpand">
To use the temperature in the objective, define a Design Response (DRESP) as follows:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DRESP
  ID_NAME        = DRESP_Temp
  DEF_TYPE       = SYSTEM
  TYPE           = TEMPERATURE
  ND_GROUP       = MIN_TEMP_NODE
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        = MY_OBJ_FUNC
  TARGET         = MIN
  DRESP          = DRESP_Temp
END_
</pre>
</div>
</li><li class = "li step stepexpand">
Create a constraint for the volume. 
<ol type = "a" class = "ol substeps">
<li class = "li substep">
Define a Design Response with the volume (DRESP):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DRESP
  ID_NAME        = DRESP_Vol
  DEF_TYPE       = SYSTEM
  TYPE           = VOLUME
  EL_GROUP       = ALL_ELEMENTS
END_
</pre>
</div>
</li>
<li class = "li substep">
Reference the Design Response in a constraint (CONSTRAINT) and constrain it to a maximum of 40%:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
CONSTRAINT
  ID_NAME        = MY_CONSTRAINT_VOL
  MAGNITUDE      = REL
  DRESP          = DRESP_Vol
  LE_VALUE       = 0.40
END_
</pre>
</div>
</li>
</ol>
</li><li class = "li step stepexpand">
Define the stamp, symmetry and frozen DVCONs:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
LINK_TOPO
  ID_NAME        = MY_LINK_TOPO_X
  CS             = CS_0
  TYPE           = PLANE_SYM, AXIS_1
END_

DVCON_TOPO
  ID_NAME        = DVCON_PLANESYM_X
  CHECK_TYPE     = LINK_TOPO
  EL_GROUP       = ALL_ELEMENTS
  CHECK_LINK     = MY_LINK_TOPO_X
END_

DVCON_TOPO
  ID_NAME        = CASTING
  MID_PLANE      = STAMP
  CHECK_GROUP    = ALL_ELEMENTS
  PULL_DIR       = 0, 1, 0
  CHECK_TYPE     = CAST
  EL_GROUP       = ALL_ELEMENTS
END_

DVCON_TOPO
  ID_NAME        = DVCON_TOPO_Frozen
  CHECK_TYPE     = FROZEN
  EL_GROUP       = FROZEN_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       = MY_OBJ_FUNC
  DV             = MY_DV_TOPO
  STRATEGY       = TOPO_SENSITIVITY
  CONSTRAINT     = MY_CONSTRAINT_VOL
  DVCON          = DVCON_TOPO_Frozen
  DVCON          = CASTING
  DVCON          = DVCON_TOPO_Frozen
  DVCON          = DVCON_PLANESYM_X
END_

OPT_PARAM
  ID_NAME        = MY_PARAMETERS
  OPTIMIZE       = MY_OPTIMIZATION_TASK
  FILTER_RADIUS  = 5.0
END_
</pre>
<p>The larger filter radius helps to prevent checkerboarding on this coarse example mesh.</p>
</div>
</li></ol></section>
<p class = "result">The optimization result looks as follows:
<br/><img class = "image" src = "../TsoExampleImages/sensTopoThermalTempResult.png" width = "567"/><br/>
<br/><img class = "image" src = "../TsoExampleImages/sensTopoThermalTempResultSmooth.png" width = "491"/><br/>
</p>
</div>

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