讲解:ME 18B、Matlab、GUI、MatlabC/C++|C/C++

ME 18B Due December 30, 2018 11:59 p.m.Four-bar or four-link mechanisms are used in a variety of applications of mechanical engineering. This project will develop a GUI for users to study four-bar mechanisms shown in the figure below. You are given the length of various links as well as the angle the angular velocity and the angular acceleration . See Page 2 for some example values.1.Kinematics: Derive the expressions for and in terms of . Also derive the expressions for and in terms of and the expressions for and in terms of . 2.Static analysis: A moment is applied to link 4 during its clockwise rotation (forward motion), and a third of this moment is applied during its counterclockwise rotation (return motion). Determine the forces at the joints and the moment applied on link 2.3.Non-linear equation solver: You must develop your own function to solve a system of nonlinear equations. The code must behave similar to MATLAB’s fsolve. Use your version to solve for and in terms of the known angle 4.Find an engineering example of this mechanism and describe its structure/ function. You can write this by hand with sketches. 5.(EXTRA CREDIT) Dynamic analysis: Assuming the center of mass of each link is located at the center of that link, and that each link has a rectangular section of 1 cm square, and is made of steel, determine the dynamic forces at the joints and the dynamic moment on link 2. The user interface must have at least the following functionalities:1.The user must be able to enter the values of ,.2.The user interface must have a figure window that draws the mechanism. The user should be able to press a button so that the window displays an animation as link 2 rotates. i.e. as varies from 0 degrees to 360 degrees3.The user should be able to pick a point on the mechanism (use ginput). When the animation is displayed, the trajectory (trace) of this point should be superimposed in the figure window. It is usually not possible to select a point exactly on the mechanism. You will need to find the link that is closest to the point chosen. If the point chosen is not close enough to the link chosen, theME 18B作业代做、代写Matlab语言作业、代写GUI留学生作业、代做Matlab课程设计作业 调试C/C++编程|n you can consider the point chosen to be part of the link that is closest to the point. You can then display the trajectory as before. 4.It must have a second axis window where the angles and can be plotted as a function of On the same plot, it should also be able to plot . The user must be able to select one or more of the variables to plot on the graph. Make sure that the vertical axis is properly scaled. 5.The user must be able to display the forces and moments for the static and dynamic analysis. 6.Make sure that you do some error checking. For example, you must make sure that all the lengths are positive. You must also make sure that where is the length of the shortest link, is the length of the longest link, and are the length of the other links. The user should be alerted of these errors. 7.Feel free to add other bells and whistles as you deem fit. The GUI should be aesthetically pleasing, user-friendly and intuitive to use. Use these values to test your program: (cm) (cm) (cm) (cm) (deg) (rad/s) 1 8.0 3.5 10.0 9.0 15 36.7 02 5.0 1.0 4.0 3.0 30 30 03 8.0 2.0 5.0 4.0 60 45 04 10.0 32.0 20.0 20.0 120 -50 405 5.0 1.0 6.0 4.0 210 100 -40Answer for 1: TURN IN ONLINE: The MATLAB files for the GUI and the files containing code for all analysis as well as your version of fsolve. Also turn in your derivations (you can do them by hand and scan)Suggested procedure:1.Derive the equations for kinematics. Be neat and organized in your writing as you will be frequently referring to the handwritten equations. 2.Program the position analysis first. Use MATLAB’s built-in fsolve. 3.Program the velocity and acceleration analysis4.Do the simulation5.Derive the equations for the forces6.Program the force equations and display the static forces using polar plot7.Do the GUI8.Program the dynamic equations and display them using the polar plot. Grading Rubric:1.Hand-derivations – 40 points2.Kinematics in MATLAB – 40 points3.Non-linear equation solver – 40 points4.Static force analysis – 40 points5.GUI – 406.Extra Credit - 50转自:http://ass.3daixie.com/2018120813266715.html

你可能感兴趣的:(讲解:ME 18B、Matlab、GUI、MatlabC/C++|C/C++)