Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB CODE LANGUAGE I need help with part 3 & 4 the equations and the plotting ENGI 1331: Mastery Assignment #4 Background lhis problem will

MATLAB CODE LANGUAGE

I need help with part 3 & 4 the equations and the plotting

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

ENGI 1331: Mastery Assignment #4 Background lhis problem will introduce you to a simple example of a simply supported beam subject to a uniform load. The Spring 2019 Comprehension Time: 15-20 min background provides all of the equations and variable definitions needed to achieve the tasks described Below represents a simply supported beam of length L subject to a force F. The beam has a width w ald height h The Young's modulus E, represents the ability of a material to withstand changes in length (sometimes referred to as modulus of elasticity) and is given in pascals (Pa). A data file (MA4_MaterialElasticity.mat) is provided that contains materials with associated Young's moduli For a single force the deflection of the beam is determined using the derived equation GETRI Given hy the singularity function, (x - a) - where I is the area moment of inertia of the cross section, R is the reaction force on the beam at the left end, and 6 is the clockwise rotational angle of the beam at the left end. These are given by the following equations wh Eq. 3 Eq. 4 iq. 5 6HIi. Below a simply supported beam of length L is subject to a uniformly distributed load IN/ml The uniform load q can be thought of as n evenly-spaced concentrated forces F determined by the following equation Eu. 6 where.is each concentrated force INJ, q is the uniform load IN/m. L is the length of the beam. and n is the number of forces calculaled along the beam. The larger n becomes, the closer we get to the theoretical solution Following the tasks below, you will develop a program that will calculate the detlection of this simply supported beam with a single and uniform load for any beam material. dimensions and load 2 ENGI 1331: Mastery Assignment #4 Spring 2019 Tasks Proficiency Time: 1 hr 20 min-1 hr 50 min information and data validations min The following user inputs will be required. For each, include data validation where specified Prompt the user to select a material Irom the Material string array. I user exits out of the menu, keep asking the user for a selcction until onc is made. You will use this seleetion to determine the Young's modulus value from the Elasticity vector. Each material has a corresponding Young's modulus [Pa] * Prompt the user to input the length [m], width [ml, and height [m of the heam. All values must he positive. If any value is zcro or negative, ask the user for a new valuc. For cach dimension, after thc 3rd invalid input produce a warning and take the absolute value of the most recently entered value. If the most recent value is zero, produce an error and terminate the program ASK 2: Calculate deflection for a single load on a simplv su Prompt the user to enter a concentrated force F [N] and the location of the force on the beam a [m]. Inelude the length of the beam L in the statement requcsting the location of the forcc. Check that the location of the forcc is less than or equal to the overall length of the beam. If not, ask the user to enter a different value. Keep asking the user to enter a value less than the length of the beam until an appropriate value is entered. U.sing E.q. I through 5. determine the deflection curve across the entire beam and plot that data as a solid line. Your plot must include the following d beam (25 35 min . X-labels . Y-labels Title wilh material name X-axis limit set to the length ofthe beam ASK 3: Calculate deflection for a uniform load on a simplv supported beam (35-40 min Prompt the user to enter a uniformly distributed load q |N/ml and the number of forces n that will be used to determine the deflection curve by treating the uniform load as evenly-spaced concentrated forces. Use Eq. 6 to determine the magnitude othe concenraledorces, which will be distributed along the beam with a spacing of L(nI), starting at a distancc of L(n+ I) from the beginning of the beam. Then usc Eq. 1 through 5 to determine the deflection of the beam and plot the deflection as a solid line. Your plot must include the same formatting as the plot in Task 2. HINT: You will need to move along each force on the beam (based on the n positions) and repeatedly calculate the dellection. You will determine an arrav of deflectionsacross the entire beam thal when summed can model the deflection vector TASK 4: Prorammin controls (5 10 min After Task 2, ask the user if they would like to repcat the calculation with a different concentrated forcc. If yes, then repeat l'ask 2. If not, then move on to l'ask 3. After Task 3, ask the user if they would like to repeat the uniform load calculation with a dillerenl value fr lhe lnilom load, q. If yes, repeal that portion of your code. not. your program should end. 3 ENGI 1331: Mastery Assignment #4 Background lhis problem will introduce you to a simple example of a simply supported beam subject to a uniform load. The Spring 2019 Comprehension Time: 15-20 min background provides all of the equations and variable definitions needed to achieve the tasks described Below represents a simply supported beam of length L subject to a force F. The beam has a width w ald height h The Young's modulus E, represents the ability of a material to withstand changes in length (sometimes referred to as modulus of elasticity) and is given in pascals (Pa). A data file (MA4_MaterialElasticity.mat) is provided that contains materials with associated Young's moduli For a single force the deflection of the beam is determined using the derived equation GETRI Given hy the singularity function, (x - a) - where I is the area moment of inertia of the cross section, R is the reaction force on the beam at the left end, and 6 is the clockwise rotational angle of the beam at the left end. These are given by the following equations wh Eq. 3 Eq. 4 iq. 5 6HIi. Below a simply supported beam of length L is subject to a uniformly distributed load IN/ml The uniform load q can be thought of as n evenly-spaced concentrated forces F determined by the following equation Eu. 6 where.is each concentrated force INJ, q is the uniform load IN/m. L is the length of the beam. and n is the number of forces calculaled along the beam. The larger n becomes, the closer we get to the theoretical solution Following the tasks below, you will develop a program that will calculate the detlection of this simply supported beam with a single and uniform load for any beam material. dimensions and load 2 ENGI 1331: Mastery Assignment #4 Spring 2019 Tasks Proficiency Time: 1 hr 20 min-1 hr 50 min information and data validations min The following user inputs will be required. For each, include data validation where specified Prompt the user to select a material Irom the Material string array. I user exits out of the menu, keep asking the user for a selcction until onc is made. You will use this seleetion to determine the Young's modulus value from the Elasticity vector. Each material has a corresponding Young's modulus [Pa] * Prompt the user to input the length [m], width [ml, and height [m of the heam. All values must he positive. If any value is zcro or negative, ask the user for a new valuc. For cach dimension, after thc 3rd invalid input produce a warning and take the absolute value of the most recently entered value. If the most recent value is zero, produce an error and terminate the program ASK 2: Calculate deflection for a single load on a simplv su Prompt the user to enter a concentrated force F [N] and the location of the force on the beam a [m]. Inelude the length of the beam L in the statement requcsting the location of the forcc. Check that the location of the forcc is less than or equal to the overall length of the beam. If not, ask the user to enter a different value. Keep asking the user to enter a value less than the length of the beam until an appropriate value is entered. U.sing E.q. I through 5. determine the deflection curve across the entire beam and plot that data as a solid line. Your plot must include the following d beam (25 35 min . X-labels . Y-labels Title wilh material name X-axis limit set to the length ofthe beam ASK 3: Calculate deflection for a uniform load on a simplv supported beam (35-40 min Prompt the user to enter a uniformly distributed load q |N/ml and the number of forces n that will be used to determine the deflection curve by treating the uniform load as evenly-spaced concentrated forces. Use Eq. 6 to determine the magnitude othe concenraledorces, which will be distributed along the beam with a spacing of L(nI), starting at a distancc of L(n+ I) from the beginning of the beam. Then usc Eq. 1 through 5 to determine the deflection of the beam and plot the deflection as a solid line. Your plot must include the same formatting as the plot in Task 2. HINT: You will need to move along each force on the beam (based on the n positions) and repeatedly calculate the dellection. You will determine an arrav of deflectionsacross the entire beam thal when summed can model the deflection vector TASK 4: Prorammin controls (5 10 min After Task 2, ask the user if they would like to repcat the calculation with a different concentrated forcc. If yes, then repeat l'ask 2. If not, then move on to l'ask 3. After Task 3, ask the user if they would like to repeat the uniform load calculation with a dillerenl value fr lhe lnilom load, q. If yes, repeal that portion of your code. not. your program should end. 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions