This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Project 2 Miguel De Gracia CE 30 19481379 Project 2 Introduction: The purpose of this project is to compute the shear and moment, V(x) and M(x) functions and diagrams given a loading function, w(x), that is not easy to integrate. The beam will be fixed at the wall and extend outward for a length of 10 meters. Due to the loading function being complex it is difficult to determine where the resultant force will be felt on the beam, and with the code such a step is not necessary. Methodology: I first started by labeling my unknowns: the length of the beam, the step size in which I will apply Simpsons rule, sigma, and my x inputs which I spaced linearly. Having completed this step I then created the code in which the x inputs will be evaluated in the loading function and then plotted for each of the different sigmas. My loading function has now been defined in a matrix size 4x1000, 1000 being my number of x inputs, in which each row of w(x) pertains to a given sigma. I then solve for the initial constants for each of the scenarios and change only the first column of V(x) and M(x). I apply Simpsons rule for integration to each of the rows to 1...
View Full Document
- Spring '08