<?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 example shows how to maintain drillable surface."/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-t-example-shape-shaftDrillOptimize"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>Optimizing the Shaft Drill Model</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-t-example-shape-shaftDrillOptimize">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>Optimizing the Shaft Drill 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 = "shortdesc">This example shows how to maintain drillable surface.

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



<div class = "body taskbody">
<section><ol class = "ol steps"><li class = "li step stepexpand">
Define a link condition (LINK_SHAPE):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
LINK_SHAPE
 ID_NAME    = GEO
 MAIN     = MAX
 CLIENT     = SURF_DRILL
 CLIENT_DIR = 0.0, 0.0, 1.0
 CS         = cs_0
END__
</pre>
<p>The drill restriction is defined on a surface node group. The feed
direction is specified by the z-axis of the global cylindrical
coordinate system. The main nodes in the segments are determined
via the command MAX.</p>
</div>
</li><li class = "li step stepexpand">
To assign the link condition to a node group, create a Design Variable Constraint (DVCON_SHAPE):
<div class = "itemgroup stepresult">
<pre class = "codeblock">
DVCON_SHAPE
 ID_NAME    = dvcon_geo
 ND_GROUP   = drill
 CHECK_LINK = geo
END_
</pre>
</div>
</li><li class = "li step stepexpand">
Reference the Design Variables, the Objective Function, and Constraints in the OPTIMIZE command:
<div class = "itemgroup stepresult">
<pre class = "codeblock">
OPTIMIZE
 ID_NAME     = optimize
 DV          = design_variables
 OBJ_FUNC    = min_function
 DVCON       = dvcon_spc
 DVCON       = dvcon_fix_x
 DVCON       = dvcon_fix_y
 MESH_SMOOTH = mesh_smooth
 DVCON       = dvcon_geo
 DVCON       = dvcon_fix_shell
END_
</pre>
</div>
</li></ol></section>
<p class = "result">
The result looks as follows:
<p><br/><img class = "image" src = "../TsoExampleImages/shapeShaftDrillResult.png"/><br/></p>
</p>
</div>


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