Lab 7 Anonymous

Lab 7 Anonymous - Lab 7 Problem 1: Task 1Source Code:...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 7 Problem 1: Task 1- Source Code: %Function supportedBeam %Function estimates the deflection of a beam at any given point along the %span %Inputs: w=load, E=modulus of elasticity, I=moment of inertia, x=distance %from datum point, l=beam length, distNeutralAxis=distance from edge of %beam to neutral axis %Outputs: y=deflection, s=stress at x-section being evaluated, Z=section %modulus of x-section of the beam function v = supportedBeam(W,E,I,x,l,distNeutralAxis); Z = I./distNeutralAxis %Calculate Section Modulus s = -(W./(2.*Z.*l).*x).*(l-x) %Calculate Stress y = ((W.*x).*(l-x)/(24.*E.*I.*l)).*(l.^2.+x.*(l-x)) %Calculate Deflection Sample Output: >> supportedBeam(9,5,14,1,13,12) Z = 1.1667 s = -3.5604 y = 0.8951 Task 2- Source Code: %This function will call the function supportedBeam and automatically input %the necessary values for the function to compute W = 50000; E = 30e6; I = 500; l = 450; distNeutralAxis = 10; x = 1:1:450; supportedBeam(W,E,I,x,l,distNeutralAxis); Output from 0 to 14 inches: Z = 50
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
s = 1.0e+004 * Columns 1 through 7 -0.0499 -0.0996 -0.1490 -0.1982 -0.2472 -0.2960 -0.3446 Columns 8 through 14 -0.3929 -0.4410 -0.4889 -0.5366 -0.5840 -0.6312 -0.6782 y = Columns 1 through 7 0.0281 0.0562 0.0844 0.1125 0.1406 0.1687 0.1968
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 10

Lab 7 Anonymous - Lab 7 Problem 1: Task 1Source Code:...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online