{"id":9476,"date":"2018-11-21T08:13:53","date_gmt":"2018-11-21T08:13:53","guid":{"rendered":"https:\/\/assignment.essayshark.com\/blog\/?p=9476"},"modified":"2021-12-30T14:28:32","modified_gmt":"2021-12-30T14:28:32","slug":"creation-and-simulation-of-a-double-pendulum-in-maplesim","status":"publish","type":"post","link":"https:\/\/assignmentshark.com\/blog\/creation-and-simulation-of-a-double-pendulum-in-maplesim\/","title":{"rendered":"Creation and Simulation of a Double Pendulum in MapleSim"},"content":{"rendered":"<p>Task: demonstrate the step-by-step creation and subsequent simulation of a double pendulum in MapleSim.<\/p>\n<p>Solution:<\/p>\n<p>For this example, we will need the following components from the multibody library:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>the fixed frame component<\/li>\n<li>the rigid body frame component<\/li>\n<li>the revolute joint component<\/li>\n<li>the rigid body component<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>The fixed frame component will represent a set point in the scene, on which the pendulum will hang. We use two rigid body frames to represent the arms on each of the separate pendulums and a rigid body that serves as the weight on the pendulum. The revolute joint is used to allow rotational motion. We place all of these components in the model workspace by dragging them from the palettes pane and connecting their ports as shown on Figure 1, creating a simple pendulum that is ready to be simulated for better grasp on how our model behaves (Figure 2).<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-9478 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/1.png\" alt=\" Creation and Simulation of a Double Pendulum in MapleSim\" width=\"758\" height=\"286\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/1.png 758w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/1-300x113.png 300w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 1: Model of a simple pendulum<\/p>\n<p>Since our goal is to create a double pendulum and not a simple pendulum, we set the x-offset of the first rigid body frame (RBF1) to -1.5 and the x-offset of the other rigid body frame (RBF2) to 1.5, which results in the rigid body moving to the middle of the pendulum.<\/p>\n<p>For convenience, we can group the rigid body frames and the rigid body components forming the link to the second pendulum into a subsystem. To do this, we select the components and press Ctrl + G or select Edit \u2192 Create Subsystem from the main menu.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/2-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-9480 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/2-1.jpg\" alt=\" Creation and Simulation of a Double Pendulum in MapleSim assignment\" width=\"575\" height=\"439\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/2-1.jpg 575w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/2-1-300x229.jpg 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 2: 3D visualization of a simple pendulum<\/p>\n<p>In order to edit the subsystem, we double-click it and add a port to the right side of the subsystem, because otherwise it would be impossible to add further connections to the system. This is done by clicking on the port 31 of our RBF2 and linking it to the border of the subsystem (Figure 3). As this subsystem has no parameters, we use the parameters mode on the navigation toolbar while in the subsystem to set up its parameterization.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/3-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-9482 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/3-4.jpg\" alt=\"Simulation of a Double Pendulum in MapleSim example\" width=\"375\" height=\"272\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/3-4.jpg 375w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/3-4-300x218.jpg 300w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 3: Pendulum link created as a subsystem<\/p>\n<p>We create the following parameters: m = 5 kg, representing the weight of the pendulum link, l = 1.5 m, representing the length of the link, and I = 0.05 kg*m2, representing the inertia of the link. We replace the corresponding values in the x-offset part of our rigid body frames and mass and inertia values in our rigid body and with that being done, our subsystem is fully parameterized (the reason for this will be explained later). To finish producing our double pendulum model, it is only necessary to select our created subsystem and revolute joint, copy them, and connect the second revolute joint to the first pendulum (Figure 4).<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/4-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-9484 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/4-3.jpg\" alt=\"Double Pendulum in MapleSim assignment completed\" width=\"489\" height=\"99\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/4-3.jpg 489w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/4-3-300x61.jpg 300w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 4: Fully modelled double pendulum<\/p>\n<p>Another useful addition to our model, and the reason for parameterizing the subsystems, are probes. With the chaotic movement of our double pendulum, it is reasonable to add probes that monitor the acceleration or speed of our separate pendulums. Firstly, however, the creation of a parameter set, storing our currently used 32 values for variables, will allow us to roll back any changes we might perform while testing different initial conditions.<\/p>\n<p>This is done by clicking Edit \u2192 Store Parameter Set from the main menu and our created set will appear in the project tab of the palettes pane. We add two probes to the scene using Attach Probe, connecting each one to a separate rigid body within our subsystems. Ticking the acceleration and speed checkboxes enables the monitoring of the corresponding variables. After running the simulation again, the results are shown in the visualization window (Figure 5).<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-9486 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/6.jpg\" alt=\"Double Pendulum in MapleSim example assignment\" width=\"404\" height=\"388\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/6.jpg 404w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/6-300x288.jpg 300w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 5: Double pendulum probe results<\/p>\n<p>Since there is the parameter set we created earlier, it is possible to compare the behavior of our model with different parameter settings or initial conditions. For example, Figure 6 depicts a comparison of double pendulums with varying lengths.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/7-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-9488 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/7-1.png\" alt=\"sample assignment on Double Pendulum in MapleSim\" width=\"625\" height=\"243\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/7-1.png 625w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/08\/7-1-300x117.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 6: Comparison of different model settings<\/p>\n<blockquote><p><em>In the guide that you have read, you can find ideas to deal with your own assignment. If you need more help with your homework, you first need to place an order on AssignmentShark.com. We are always available, so you can contact us 24\/7. If you use our service, you can be sure that your personal information will be secure and never passed to third parties. Our experts can deal with assignments of any type. To get a good grade, it\u2019s enough to place an order on our site and wait a bit for help. You can select the most suitable writer for your order on your own.<\/em><\/p>\n<p><em>In the case when you are assigned a task, immediately leave it to our team of experts on AssignmentShark.com. As soon as our expert gets your order, he or she will start to work on it. Our service is used to save time that students usually don\u2019t have. To do this, just tell us what you need to do and we will help you. Don\u2019t hesitate to get our <a href=\"https:\/\/assignmentshark.com\/\" target=\"_blank\" rel=\"noopener\">assignment help<\/a> right now!<\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Task: demonstrate the step-by-step creation and subsequent simulation of a double pendulum in MapleSim. Solution: For this example, we will need the following components from the multibody library: the fixed frame component the rigid body frame component the revolute joint component the rigid body component<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59,35],"tags":[],"class_list":["post-9476","post","type-post","status-publish","format-standard","hentry","category-physics","category-samples"],"_links":{"self":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/9476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/comments?post=9476"}],"version-history":[{"count":6,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/9476\/revisions"}],"predecessor-version":[{"id":12805,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/9476\/revisions\/12805"}],"wp:attachment":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/media?parent=9476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/categories?post=9476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/tags?post=9476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}