{"id":17319,"date":"2017-06-29T11:00:23","date_gmt":"2017-06-29T15:00:23","guid":{"rendered":"https:\/\/blogs.solidworks.com\/tech\/?p=17319"},"modified":"2017-06-27T10:14:10","modified_gmt":"2017-06-27T14:14:10","slug":"solidworks-motion-study-controlling-roll","status":"publish","type":"post","link":"https:\/\/blogs.solidworks.com\/tech\/2017\/06\/solidworks-motion-study-controlling-roll.html","title":{"rendered":"SOLIDWORKS Motion Study: Controlling the Roll"},"content":{"rendered":"<h1><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8727 \" src=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image001-2.jpg\" alt=\"SolidWorks: Controlling The Roll Image 1\" width=\"254\" height=\"240\" align=\"right\" hspace=\"10\" vspace=\"10\" \/>Introduction<\/h1>\n<p>Have you ever rolled a dice and hoped for a specific number to show up? Because I know I have! With lots of roll playing games, using dice of various shapes and sizes I decided it would be fun to model some dice and see if I can manipulate the center of mass to roll the specific number I desired. I chose a D20 because it has a unique shape and is used frequently in D&amp;D.<\/p>\n<h1>Build<\/h1>\n<p>The shape I need to build is an icosahedron, it has 20 faces which are all equilateral triangles.\u00a0To build my 20 sided die I used an equation and some surfacing techniques. The <strong><em>equation<\/em><\/strong> relates the length of an edge to the radius of an inscribed sphere that touches every face. I set a <strong><em>global variable<\/em><\/strong> to be the length of an edge and simplified the equation to r<sub>i <\/sub>= 0.7557613141 * length. Once I had my radius I did a simple revolve to create the inscribed sphere. I then had to create a plane for every face but to start I made the first plane <strong><em>parallel<\/em><\/strong> with the <strong><em>front plane<\/em><\/strong> and <strong><em>tangent<\/em><\/strong> to the sphere.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8728 \" src=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image003-2.jpg\" alt=\"SolidWorks: Controlling The Roll Image 2\" width=\"230\" height=\"244\" align=\"left\" hspace=\"10\" vspace=\"10\" \/>I then sketched an equilateral triangle on the plane and made the side lengths equal to the <strong><em>global variable<\/em><\/strong>. I made some <strong><em>construction lines<\/em><\/strong> to locate the center of the sketch so I can line it up with the <strong><em>origin<\/em><\/strong>. I saved this sketch as a <strong><em>block<\/em><\/strong> and made that center point the insertion point to expedite the rest of the design process. I created a <strong><em>Planar Surface<\/em><\/strong> with the sketch and that became the first face of the die. The next <strong><em>reference plane<\/em><\/strong> was created by being <strong><em>tangent<\/em><\/strong> to the sphere and <strong><em>coinc<\/em><\/strong><strong><em>ident<\/em><\/strong> with one of the triangles edges. I then inserted the <strong><em>block<\/em><\/strong> and positioned one edge to be <strong><em>coincident<\/em><\/strong> with the previous triangle and the center to be located on the origin.<\/p>\n<p>This process was repeated a total of 20 time when the final shape became apparent. After that <strong><em>Delete\/Keep Body <\/em><\/strong>was used to remove the inner sphere and <strong><em>knit surface <\/em><\/strong>with the <strong><em>create solid<\/em><\/strong> option checked on converted all the surfaces into a single solid body. Finally some <strong><em>fillets <\/em><\/strong>and <strong><em>extruded cuts <\/em><\/strong>finished off the design by rounding the corners and\u00a0numbering the faces.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8729 size-full aligncenter\" src=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image006.gif\" alt=\"SolidWorks: Controlling The Roll Image 3\" width=\"129\" height=\"213\" \/><\/p>\n<h1>Moving Center of Mass<\/h1>\n<p>In order to have the die land on 20, the highest number, I decided to move the center of mass of the part toward the 1 face. The one face happens to be the bottom when the 20 face is being shown. The first step I took was to hollow out the inside. I did this by using the <strong><em>Thicken<\/em><\/strong> feature but first I had to change the <strong><em>create solid<\/em><\/strong> option within the <strong><em>knit surface<\/em><\/strong> feature. This gave me a perfectly hollow die but then I had to add mass to the bottom. To start I created a plane that was <strong><em>parallel<\/em><\/strong> to the <strong><em>top plane<\/em><\/strong> with an offset which caused it to lay inside the die. The offset dimension is going to be the <strong><em>variable<\/em><\/strong> I am going to manipulate in a <strong><em>Design Study<\/em><\/strong> in order to optimize the location of the center of mass.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-8730\" src=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image007.jpg\" alt=\"SolidWorks: Controlling The Roll Image 4\" \/>On this new <strong><em>Reference Plane<\/em><\/strong> I created a <strong><em>sketch <\/em><\/strong>with a simple line so I could make a <strong><em>rib<\/em><\/strong>. I choose the rib tool because it will automatically expand to the edge of the die which will capture my design intent no matter where the plane is placed.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-8731 aligncenter\" src=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image009.jpg\" alt=\"SolidWorks: Controlling The Roll Image 5\" \/>I then <strong><em>extruded <\/em><\/strong>the face of the <strong><em>rib<\/em><\/strong> with an <strong><em>up to body<\/em><\/strong> condition to fill in the rest of the vacant space. The <strong><em>convert entities<\/em><\/strong> command ensures that the geometry of the extrusion will match the <strong><em>rib<\/em><\/strong> as the plane height is manipulated by the <strong><em>design study<\/em><\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-8732 aligncenter\" src=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image011.jpg\" alt=\"SolidWorks: Controlling The Roll Image 6\" \/>The <strong><em>Goal<\/em><\/strong> of the <strong><em>Design Study<\/em><\/strong> was to minimize the distance between the <strong><em>center of mass<\/em><\/strong> and the face with the number 1 on it. I created a measurement <strong><em>Sensor<\/em><\/strong>, between the center of mass and face 1, and used that in the design study. The study ran the <strong><em>variable<\/em><\/strong> through a determined range and calculated the <strong><em>sensor<\/em><\/strong> distance at every step. The optimized plane offset to minimize the distance between the center of mass and the number 1 face was 0.44 in. With the center of mass now where I want it, it is time to begin to simulation some rolls.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8733\" src=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image013.jpg\" alt=\"SOLIDWORKS: Controlling The Roll Image 7\" width=\"800\" height=\"322\" \/><\/p>\n<h1>Simulating<\/h1>\n<p>The <strong><em>Motion<\/em><\/strong> <strong><em>Study<\/em><\/strong> will involve the weighted die and the solid die to act as a control. The first condition added to the simulation was <strong><em>gravity<\/em><\/strong> and that was easy to do in the motion tools, just a few straight forward clicks to define the acceleration and direction. A contact set was added between the dice and table resulting in a total of 3 contact pairs. The material of the dice and table were assumed acrylic for contact purposes with the default coefficients of friction and restitution. Since I am 3D printing the dice there is no information for me to find theses mechanical properties so this assumption will have to do until I can get some empirical data. A <strong><em>force<\/em><\/strong> has been added to one face of each die for a tenth of a second to give it some spin to better simulate rolling. The results of each die is displayed in the table below beside an animation of one of the simulations. The blue die is the weighted die and the red die is solid.<\/p>\n<table style=\"height: 487px; border: 1px solid grey;\" width=\"809\" align=\"center\">\n<tbody>\n<tr>\n<td style=\"background-color: #313193; color: white; text-align: center;\" width=\"60\"><strong>Force (lbf)<\/strong><\/td>\n<td style=\"background-color: #313193; color: white; text-align: center;\" width=\"74\"><strong>Weighted Die<\/strong><\/td>\n<td style=\"background-color: #313193; color: white; text-align: center;\" width=\"56\"><strong>Solid Die<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" width=\"60\">0.035<\/td>\n<td style=\"text-align: center;\" width=\"74\">17<\/td>\n<td style=\"text-align: center;\" width=\"56\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"60\">0.039<\/td>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"74\">20<\/td>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"56\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" width=\"60\">0.04<\/td>\n<td style=\"text-align: center;\" width=\"74\">20<\/td>\n<td style=\"text-align: center;\" width=\"56\">5<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"60\">0.041<\/td>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"74\">20<\/td>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"56\">7<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" width=\"60\">0.043<\/td>\n<td style=\"text-align: center;\" width=\"74\">20<\/td>\n<td style=\"text-align: center;\" width=\"56\">12<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"60\">0.045<\/td>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"74\">20<\/td>\n<td style=\"text-align: center; background-color: #e7e7e7;\" width=\"56\">3<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" width=\"60\">0.055<\/td>\n<td style=\"text-align: center;\" width=\"74\">20<\/td>\n<td style=\"text-align: center;\" width=\"56\">16<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image015.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8734 size-full aligncenter\" src=\"https:\/\/www.hawkridgesys.com\/blog\/wp-content\/uploads\/2017\/06\/image015.gif\" alt=\"SolidWorks: Controlling The Roll Image 8\" width=\"960\" height=\"741\" \/><\/a>As you can see according to SOLIDWORKS\u00a0Motion and the information I provided it with, the loaded die should be very effective. I can\u2019t wait to print these parts and test them out in reality.<\/p>\n<p>That concludes this article on SOLIDWORKS Motion Study: Controlling The Roll.\u00a0There are a myriad of other new features and enhancements not covered in this article which we will detail in later posts.\u00a0 Be sure to check out our Webinar Wednesdays, and keep an eye on this page for new articles on our ever expanding capabilities; SOLIDWORKS, SOLIDWORKS Electrical, Enterprise PDM, SOLIDWORKS Composer, SOLIDWORKS Plastics, SOLIDWORKS Simulation and CAMWorks.<\/p>\n<p>For more information, check out our <a href=\"https:\/\/youtube.com\/hawkridgesystems\" target=\"_blank\" rel=\"noopener\">YouTube Channel<\/a>, get a <a href=\"https:\/\/www.hawkridgesys.com\/products\/solidworks\/get-a-quote\/?utm_source=wordpress&amp;utm_campaign=wordpress_solidworks_export_sketch&amp;utm_medium=250x250\" target=\"_blank\" rel=\"noopener\">SOLIDWORKS 3D CAD<\/a> quote or <a href=\"mailto:hawk@hawkridgesys.com\">contact us<\/a> today. Thanks for reading!<\/p>\n<h6><em><strong>About the Author<\/strong><\/em><br \/>\nDayne is an applications engineer at Hawk Ridge Systems in the Edmonton Office. He has a Bachelor of Science in Mechanical Engineering from the University of Alberta.<\/h6>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Have you ever rolled a dice and hoped for a specific number to show up? Because I know I have! With lots of roll playing games, using dice of various shapes and sizes I decided it would be fun<\/p>\n... <a href=\"https:\/\/blogs.solidworks.com\/tech\/2017\/06\/solidworks-motion-study-controlling-roll.html\">Continued<\/a>","protected":false},"author":205,"featured_media":17343,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21,35,36],"tags":[45,1907,291,889,1983,1984],"class_list":["post-17319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solidworks","category-tips-tricks","category-usability","tag-icosahedron","tag-motion-study","tag-simulation","tag-solidworks","tag-solidworks-3d-cad","tag-solidworks-dice"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/17319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/users\/205"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/comments?post=17319"}],"version-history":[{"count":4,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/17319\/revisions"}],"predecessor-version":[{"id":17344,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/17319\/revisions\/17344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/media\/17343"}],"wp:attachment":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/media?parent=17319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/categories?post=17319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/tags?post=17319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}