<?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 = "This optimization setup is a standard topology optimization setup with Tosca Structure.gui. Loading the model and definition of the design area can be done as described in the Getting Started Manual."/><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-sensTopoStressCon"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Solving the Stress Constraint Problem</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-t-example-topo-sensTopoStressCon">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>Solving the Stress Constraint Problem </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">This optimization setup is a standard topology optimization setup
with <span class = "ph">Tosca Structure.gui</span>.
Loading the model and definition of the design area can be done as
described in the Getting Started Manual.

</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">
To define the stress constraint, do the following:
<ol type = "a" class = "ol substeps">
<li class = "li substep">
Create a Design Response (DRESP) as follows:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DRESP
  ID_NAME  = TOPO_STRESS_DESIGN_ELEMENTS
  TYPE     = SIG_TOPO_MISES
  DEF_TYPE = SYSTEM
  EL_GROUP = DESIGN_AREA
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   = CON_STRESS
  MAGNITUDE = ABS
  LE_VALUE  = 70000.
  DRESP     = TOPO_STRESS_DESIGN_ELEMENTS
END_
</pre>
</div>
</li>
</ol>
</li><li class = "li step">
To define the Objective Function, do the following:
<ol type = "a" class = "ol substeps">
<li class = "li substep">
Create a Design Response (DRESP) as follows:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DRESP
  ID_NAME    = DRESP_VOL_TOPO
  TYPE       = VOLUME
  DEF_TYPE   = SYSTEM
  GROUP_OPER = Sum
  EL_GROUP   = DESIGN_AREA
END_
</pre>
</div>
</li>
<li class = "li substep">
Reference the Design Response in the Objective Function (OBJ_FUNC):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
OBJ_FUNC
  ID_NAME = MY_OBJ_FUNC
  TARGET  = MIN
  DRESP   = DRESP_VOL_TOPO
END_
</pre>
</div>
</li>
</ol>
</li></ol></section>
<p class = "result">The result looks as follows:<br/><img class = "image" src = "../TsoExampleImages/sensTopoStressConResult.png"/><br/></p>
</div>

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