<?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 = "Nodes of the boundary are not a part of the design variables as in the plate example. The remaining nodes are design variables for the bead optimization."/><meta name = "description" content = "Nodes of the boundary are not a part of the design variables as in the plate example. The remaining nodes are design variables for the bead optimization."/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-t-example-bead-hoodOptimize"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Optimizing the Hood Model</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-t-example-bead-hoodOptimize">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>Optimizing the Hood 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"> Nodes of the boundary are not a part of the design variables as in
the plate example.
The remaining nodes are design variables for the bead optimization.
</span>

</p>

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



 <div class = "body taskbody">
<section><ol class = "ol steps"><li class = "li step stepexpand">
Create two Design Responses (DRESP) for the <span class = "ph">load cases</span>:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DRESP
 ID_NAME    = dresp_compliance_1
 DEF_TYPE   = SYSTEM
 EL_GROUP   = ALL_ELEMENTS
 TYPE       = STRAIN_ENERGY
 GROUP_OPER = SUM
 UPDATE     = EVER
 LC_SET     = STATIC,1,ALL
END_

DRESP
 ID_NAME    = dresp_compliance_2
 DEF_TYPE   = SYSTEM
 EL_GROUP   = ALL_ELEMENTS
 TYPE       = STRAIN_ENERGY
 GROUP_OPER = SUM
 UPDATE     = EVER
 LC_SET     = STATIC,2,ALL
END_
</pre>
</div>
</li><li class = "li step stepexpand">
Reference the Design Responses in the Objective Function (OBJ_FUNC):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
OBJ_FUNC
 ID_NAME = minimize_compliance
 DRESP   = dresp_compliance_1, 1.0
 DRESP   = dresp_compliance_2, 1.0
 TARGET  = MIN
END_
</pre>
<p>Here the weight fraction for both design responses is 1.0. </p>
</div>
</li><li class = "li step stepexpand">
    Reference the Design Variables, Objective Function, and constraints in the OPTIMIZE
     command:
    <div class = "itemgroup stepresult">
     <pre class = "codeblock">
OPTIMIZE
 ID_NAME    = BEAD_OPTIMIZATION
 DV         = DESIGN_VARIABLES
 OBJ_FUNC   = minimize_compliance
 DVCON      = dvcon_FIX_spc
 CONSTRAINT = bead_height_constraint
 STRATEGY   = BEAD_CONTROLLER
END_
</pre>
<p>The result looks as follows:</p>
<p><br/><img class = "image" src = "../TsoExampleImages/beadHoodSubresult.png" width = "600"/><br/></p>
<p>The optimization result is however not symmetric.</p>
</div>
</li><li class = "li step stepexpand">
To enforce plane symmetry, do the following:
<ol type = "a" class = "ol substeps">
<li class = "li substep">
Define a coordinate system (CS_DEF) on the symmetry plane:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
CS_DEF
 ID_NAME      = MY_CS
 DEF_TYPE     = LOCAL
 CS_TYPE      = RECTANGULAR
 CS_REF       = CS_0
 ORIGIN_123   = 5.0, 0.0, 10.0
 ROTATION_321 = 0.0, 0.0, 0.0
END_
</pre>
</div>
</li>
<li class = "li substep">
The normal of the symmetry plane is the 3rd axis of the coordinate system. Thus, define the following link condition (LINK_BEAD):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
LINK_BEAD
 ID_NAME    = my_link_plane
 TYPE       = PLANE_SYM
 CLIENT_DIR = 0., 0., 1.
 CS         = MY_CS
END_
</pre>
</div>
</li>
<li class = "li substep">
Reference the link condition in a Design Variable Constraint (DVCON_BEAD):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DVCON_BEAD
 ID_NAME    = my_dvcon
 CHECK_LINK = my_link_plane
 ND_GROUP   = all_nodes
END_
</pre>
</div>
</li>
</ol>
</li><li class = "li step stepexpand">
Reference the Design Variables, Objective Function, and constraints in the OPTIMIZE
command:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
OPTIMIZE
 ID_NAME    = BEAD_OPTIMIZATION
 DV         = DESIGN_VARIABLES
 OBJ_FUNC   = minimize_compliance
 DVCON      = dvcon_FIX_spc
 DVCON      = MY_DVCON
 CONSTRAINT = bead_height_constraint
 STRATEGY   = BEAD_CONTROLLER
END_
</pre>
</div>
</li></ol></section>
<p class = "result">
<p>The optimization result looks as follows:
<br/><img class = "image" src = "../TsoExampleImages/beadHoodResult.png" width = "600"/><br/></p>
</p>
</div>


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