<?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 = "abstract" content = "This example uses the principle of a relief notch and demonstrates how the optimization task should be defined."/><meta name = "description" content = "This example uses the principle of a relief notch and demonstrates how the optimization task should be defined."/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-t-example-shape-twoHoleOptimize"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Optimizing the Two Hole Model</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-t-example-shape-twoHoleOptimize">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>Optimizing the Two Hole Model</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3" colspan = "2"><table class = "DocThemeIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "header"><p class = "abstract"><span class = "shortdesc">This example uses the principle of a relief notch and demonstrates
how the optimization task should be defined.
</span>

</p>

</p></td></tr></table></td></tr></table>



<div class = "body taskbody">
<section><ol class = "ol steps"><li class = "li step stepexpand">
Define a numerical variable (VARIABLE) that contains the maximum stress value
of the nodes in the primary notch:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
VARIABLE
 ID_NAME    = REF_NODE_STRESS
 DEF_TYPE   = SYSTEM
 UPDATE     = EVER
 TYPE       = SIG_MISES
 ND_GROUP   = REFERENCE_NODES
 GROUP_OPER = MAX
END_
</pre>
<p>The variable stress value is updated in each iteration. </p>
</div>
</li><li class = "li step stepexpand">
Define a Design Response (DRESP) with the maximum von Mises Stress in the design area:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DRESP
 ID_NAME    = DRESP_VON_MISES
 DEF_TYPE   = SYSTEM
 TYPE       = SIG_MISES
 ND_GROUP   = design_nodes
 GROUP_OPER = Max
END_
</pre>
</div>
</li><li class = "li step stepexpand">
Reference the Design Response and Variable in the Objective Function (OBJ_FUNC):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
OBJ_FUNC
 ID_NAME = minimize_deviation
 DRESP   = DRESP_VON_MISES, ,REF_NODE_STRESS
 TARGET  = MINMAX
END_
</pre>
<p>The objective function of the optimization problem is to minimize the deviation
of the stress values in the design area from the variable reference values.
That means the maximum stress value in the design area (secondary notch) is closer to the stress level found in the reference area (primary notch)
where the stress level in the primary notch is lowered. </p>
</div>
</li></ol></section>
<p class = "result">
<p>The result looks as follows:
<br/><img class = "image" src = "../TsoExampleImages/shapeTwoHoleResult.png"/><br/></p><p>The stresses at the reference nodes in the design area are drastically minimized
through the optimized relief notch: <br/><img class = "image" src = "../TsoExampleImages/shapeTwoHoleResultDia.png"/><br/></p></p>
</div>

</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
