Project Assignment Expand your Matlab four-bar linkage simulator from project 2. To do this, create a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Project Assignment Expand your Matlab four-bar linkage simulator from project 2. To do this, create a function ("fourBarSimMulti.m") for your program that has the following inputs and outputs: INPUTS: 11, 12, 13, 14, Tp, B, 02 start 02enda, n OUTPUTS: 030, 040, 03, 04c, Pxor Pyo, Pxc, Pyc The INPUTS are defined as follows: 1₁, the length of the ground link [length] 12, the length of the input link [length] 13, the length of the coupler link [length] 14, the length of the output link [length] Tp, the length of the coupler out to point p (as shown in Fig. 1) B, the angle from the coupler to the vector. [rad] 2 start, the initial angle of 0₂ [rad] 82end the ending angle of 0₂ [rad] a, the simulation code given as follows: 1, graphical simulation of the open four-bar solution from 02 start to 02 end 2, graphical simulation of the crossed four-bar solution from 02 start to 02end 0, no graphical simulation. In all three cases the function should return all calculated values. The value of a simply decides whether or not the user will see a four-bar simulation appear on the screen. n, number of elements to include from start to 02end (equally spaced points). P 0₂ X B. 03 7₂ 0₁ Figure 1: Vector loop of the four-bar linkage. The OUTPUTS are defined as follows: 030, a n x 1 column vector containing the solution of 03 for the open four-bar [rad] 040, a n x 1 column vector containing the solution of 04 for the open four-bar [rad] 03c, a n x 1 column vector containing the solution of 03 for the crossed four-bar [rad] 04c, a n x 1 column vector containing the solution of 04 for the crossed four-bar [rad] Pxo, a n x 1 column vector containing the solution of px for the open four-bar [length] Pyo, a n x 1 column vector containing the solution of py for the open four-bar [length] Pxc, a n x 1 column vector containing the solution of px for the crossed four-bar [length] Pyc, a n x 1 column vector containing the solution of py for the crossed four-bar [length] To help get you started, the function should have the following form. function [t30, 140, t3c, t4c, pxo, pyo, pxc, pyc] = fourBarSimMulti (rl, r2, r3, r4, rp, beta, t2start, t2end, alpha, n) end put code math here As shown above, the function name should be fourBarSimMulti. Ensure that the file name matches the function name, and all spelling and capitalization are correct so the grader code can run yours. Hints: Copy and rename your code from Project 2. Add in the crossed solution math. Set up if- statements or switch case statements to change what plots based on alpha. Use the patch command to make the triangle for the coupler. There are several files on D2L to help you: (1) Project_2p5_Checker.m : change the constants as desired and run to either just view the solution output (see (2) below) or also grade your own code (see (3) below) (2) fourBarSimMultiCorrect.p: call this for a black-box model of how your function should work (3) Auto_Grader_2p5_Function.p: call this to grade your code. It will run two simulations, yours and the solution, and tell you if your function is correct or not. Once your code has passed the check, please upload it to D2L according to the dropbox instructions. If your code does not pass the check, you will earn a 0 for this assignment. Project Assignment Expand your Matlab four-bar linkage simulator from project 2. To do this, create a function ("fourBarSimMulti.m") for your program that has the following inputs and outputs: INPUTS: 11, 12, 13, 14, Tp, B, 02 start 02enda, n OUTPUTS: 030, 040, 03, 04c, Pxor Pyo, Pxc, Pyc The INPUTS are defined as follows: 1₁, the length of the ground link [length] 12, the length of the input link [length] 13, the length of the coupler link [length] 14, the length of the output link [length] Tp, the length of the coupler out to point p (as shown in Fig. 1) B, the angle from the coupler to the vector. [rad] 2 start, the initial angle of 0₂ [rad] 82end the ending angle of 0₂ [rad] a, the simulation code given as follows: 1, graphical simulation of the open four-bar solution from 02 start to 02 end 2, graphical simulation of the crossed four-bar solution from 02 start to 02end 0, no graphical simulation. In all three cases the function should return all calculated values. The value of a simply decides whether or not the user will see a four-bar simulation appear on the screen. n, number of elements to include from start to 02end (equally spaced points). P 0₂ X B. 03 7₂ 0₁ Figure 1: Vector loop of the four-bar linkage. The OUTPUTS are defined as follows: 030, a n x 1 column vector containing the solution of 03 for the open four-bar [rad] 040, a n x 1 column vector containing the solution of 04 for the open four-bar [rad] 03c, a n x 1 column vector containing the solution of 03 for the crossed four-bar [rad] 04c, a n x 1 column vector containing the solution of 04 for the crossed four-bar [rad] Pxo, a n x 1 column vector containing the solution of px for the open four-bar [length] Pyo, a n x 1 column vector containing the solution of py for the open four-bar [length] Pxc, a n x 1 column vector containing the solution of px for the crossed four-bar [length] Pyc, a n x 1 column vector containing the solution of py for the crossed four-bar [length] To help get you started, the function should have the following form. function [t30, 140, t3c, t4c, pxo, pyo, pxc, pyc] = fourBarSimMulti (rl, r2, r3, r4, rp, beta, t2start, t2end, alpha, n) end put code math here As shown above, the function name should be fourBarSimMulti. Ensure that the file name matches the function name, and all spelling and capitalization are correct so the grader code can run yours. Hints: Copy and rename your code from Project 2. Add in the crossed solution math. Set up if- statements or switch case statements to change what plots based on alpha. Use the patch command to make the triangle for the coupler. There are several files on D2L to help you: (1) Project_2p5_Checker.m : change the constants as desired and run to either just view the solution output (see (2) below) or also grade your own code (see (3) below) (2) fourBarSimMultiCorrect.p: call this for a black-box model of how your function should work (3) Auto_Grader_2p5_Function.p: call this to grade your code. It will run two simulations, yours and the solution, and tell you if your function is correct or not. Once your code has passed the check, please upload it to D2L according to the dropbox instructions. If your code does not pass the check, you will earn a 0 for this assignment.
Expert Answer:
Answer rating: 100% (QA)
It seems youre asking for help with creating a Matlab function for simulating a fourbar linkage system based on an assignment brief To complete the pr... View the full answer
Related Book For
Process Dynamics And Control
ISBN: 978-0471000778
2nd Edition
Authors: Dale E. Seborg, Thomas F. Edgar, Duncan A. Mellich
Posted Date:
Students also viewed these programming questions
-
Let f(x) be a differentiable function on [0,2] with f(0) = 1, f(1) = 0 and f(2) = 5. (a) Show that there exist a a2 (0,2) such that f(a) = a and f(a2) = a. [5 marks] (b) Show that there exists b (0,...
-
For the Dupit Corp. case study introduced in Section 11.4, the management science team was able to apply a variety of queueing models by making the following simplifying approximation. Except for the...
-
1. Insert a module and create a subroutine named Receipt(). Excel 2. Place a button with the name "Generate Receipt" that would link to this subroutine when clicked. Do the following parts from 3 to...
-
What type of insurance policy insures against all risks of loss that are not specifically excluded by the policy? OA) Binder policy OB) Named peril policy OC) Specified peril policy OD) Open peril...
-
Draw the shear and moment diagrams for the beam. Given: w = 30lb/ft MC = 180 lb ft a = 9 ft b = 4.5 ft Me B. , Ay
-
First define the optimal capital structure, then Discuss how a financial manager can find the optimal capital structure of a firm in order to maximize stock value.Explain in detail.Use examples.
-
Consider the methanol oxidation data in Table B.20. Perform a thorough analysis of these data. What conclusions do you draw from this analysis? x x2 3 X4 Xs y 0 454 8.8 3.90 1.30 1.1 0 474 8.2 3.68...
-
Hot Lunch Delivery Service has always had a policy to pay stockholders annual dividends in an amount exactly equal to net income for the year. Joe Alberg, the companys president, is confused because...
-
Customer responses to dissatisfaction are bad for the firm EXCEPT what Describe Briefly.
-
The misery is not miserly phenomenon refers to a sad persons spending judgment going haywire. In a recent study, 31 young adults were given $10 and randomly assigned to either a sad or a neutral...
-
Poultry Brewing Incorporated is expanding rapidly. It recently paid a dividend of $1.24 per share. This dividend is expected to grow by 18% for three years and 7% after that. With a required rate of...
-
Based on what the IC considers important for equity-related strategies, which strategy should Mukilteo most likely avoid? A. Long/short equity B. Equity market neutral C. Dedicated short selling and...
-
Which of the IC members statements regarding hedge fund strategies is incorrect? A. Statement 1 B. Statement 2 C. Statement 3 Snohomish Mukilteo is a portfolio analyst for the Puyallup-Wenatchee...
-
Which of the following notes about the DoGood Fund is correct? A. Only Note 2 B. Only Note 3 C. Both Note 2 and Note 3 Three years ago, the Albright Investment Management Company (Albright) added...
-
The government bond strategy that Mukilteo considers is best described as a: A. carry trade. B. yield curve trade. C. long/short credit trade. Snohomish Mukilteo is a portfolio analyst for the...
-
Which of Freys statements about securities lending and covered call writing is correct? A. Only Statement 1 B. Only Statement 2 C. Both Statement 1 and Statement 2 Three years ago, the Albright...
-
Differentiate the following function. A) B) C) D) E) f'(x) = f'(x) = f'(x) = f'(x) = f'(x) = f(x) = cos(x) = (e+cot(x))-sin(x) (e+tan(x)) e+tan(x) cos(x) cos(x) (e+sec(x))+sin(x)(e+tan(x)) cos(x)...
-
An 8.0 kg crate is pulled 5.0 m up a 30 incline by a rope angled 18 above the incline. The tension in the rope is 120 N, and the crates coefficient of kinetic friction on the incline is 0.25. a. How...
-
Compare PID (ITAE for set-point changes) and Dahlin controllers for t 1, = 1, and G(s) = 2e-s/(l0s + 1). For the ITAE controller, approximate the sampler and ZOH by a time delay equal to t/2. Adjust...
-
A single-tank process has been operating for a long period of time with the inlet how rate q1 equal to 30.4 ft3/min. After the operator increases the flow rate suddenly by 10%, the liquid level in...
-
A 4 ? 4 control system has the following gain matrix: Assess the potential difficulty of control using singular value analysis. Should any outputs or inputs be eliminated to achieve better control?...
-
Can you name five types of channels of communication?
-
How would you define your own leadership style? Do you have examples you can share with others on how you lead when called on?
-
Revisit the definition of strategic communication and then review the vignette at the beginning of the chapter. Match the different terms in the definition to the different entities in the vignette.
Study smarter with the SolutionInn App