Develop a matlab script file that draws the deflection

Assignment Help MATLAB Programming
Reference no: EM133289877

Mechanical Engineering Drawing

Project: Develop a program (script file) that draw beam deflection

Beam deflection
In engineering, the deflection of a beam is the degree to which the beam is displaced under a load, usually refer to a distance. Below are illustrations of deflection of two typical types of beam.

where, δ is the deflection. In general, it is a very small value compared to the length of the beam.

F is the external load, in N.
L is the length of the beam, in m.

The deflection δ is a function of x. The equations are given below.

For a simply-supported beam with load at the center:

δ = -F/48EL(3L2x + 4x3) (0 ≤ x ≤ L/2)

For a cantilever beam with load at the end

δ = F/6EL(x3 - 3Lx2)

where EI is the rigidity of a beam, related to the material and geometry of the beam.

Project description

Develop a Matlab script file that draws the deflection of an entire beam. Show both the deflected beam and its original shape. Your program will prompt the user to input the force F, length L, and rigidity EI, draw both the deflected and original (undeflected) beam, and show the max. deflection in the command window.

Following is the process of the program:

1. Prompt (and keep prompting) the user to select the type of the beam (simply-supported or cantilever, by entering "1" or "2").
• Only after the user inputs "1" or "2", the program will proceed to the next step.
• If the user hits the "Enter" key accidentally without entering a value, or entering a value other than 1 or 2, the program should not proceed forward but keep prompting the user to select the correct type ("1" or "2").

2. Prompt the user to input the force F, the rigidity of the beam EI, and the length L. Same as in #1, in the user hits the "Enter" without entering a number, your program will keep prompting the user to input a value.

3. After above values are entered, your program will draw the deflected beam and undeflected beam, and printout the max. deflection of the beam in the command window.

4. At the end, the program will ask if the user wants to continue by entering ‘Y' for "Yes" or ‘N' for "No".
• If the user enters ‘Y', the program will repeat the above steps to draw a new beam.
• If the user enters ‘N', the program terminates.
• If the user input any letter(s) other than ‘Y' or ‘N' (lower or upper case), or hit the "Enter" key without inputting (i.e., [ ] ), the program will keep asking until after either ‘Y' or ‘N' is entered.
• Your program should be able to handle both lower and upper cases of ‘y' and ‘n'. That it, when the user inputs ‘Y' or ‘y', the program will continue to make new drawing; when inputs ‘N' or ‘n', the program terminates. (--- i.e. it is case-insensitive for the user).

Verified Expert

The Load analysis of beam has been down in this assignment. When the load is applied on the beam how much deflection is shown by the beam and when load is applied on centred as well as on edge. For the graphical representation the MATLAB coding is done on matlab and graph has shown.

Reference no: EM133289877

Questions Cloud

Describe typical microscopic changes noted in muscle tissue : Describe in detail the typical microscopic changes noted in the muscle tissue of someone with Duchenne's muscular dystrophy.
Liquid or strong in gas as applied in colloid spray : Range the limits for the size of the particles arranged as sprayers. What is the interconnection of the Liquid or strong in gas as applied in the colloid spray
Think back to our discussion of cystic fibrosis : Think back to our discussion of cystic fibrosis. How can quality control in the endoplasmic reticulum be detrimental to patients that have cystic fibrosis?
Connection between highest cetane number and n-heptane : Draw a connection between the highest cetane number and n-heptane. Limit diesel middle engine's cetane speed to. Use n-heptane to perform the knocking process.
Develop a matlab script file that draws the deflection : MENG 201 Mechanical Engineering Drawing, American University of Ras Al Khaimah - Develop a Matlab script file that draws the deflection of an entire beam
Describe the function of three types of muscle tissue : Describe the structure (gross and histological) and function of the three types of muscle tissue.
Ontogeny recapitulates phylogeny is developmental theory : Ontogeny recapitulates phylogeny is a developmental theory proposed in 1860 by a German zoologist Ernst Haeckel.
What causes this type of illness : Along with eye and facial muscles, what are some other areas of the body that are affected by this illness?
Mutant yeast cell line : There is a mutant yeast cell line that divides normally at 28°C but cannot enter M phase at 37°C.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd