

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


COMP 016 Sept 5, 2007
On forces: Each bridge has 15 bars: AB, BC, CD, DE (across the bottom), FG, GH, HI (across the top), and AF, FB, BG, GC, CH, HD, DI, IE (zig-zag across the middle). To each bar you attach a force variable, which is the force of expansion of the bar (negative force indicates contraction). At each joint, the sum of the forces received from bars, cars, and ground must cancel out, or the bridge would move or collapse. See p. 67-68 in Gilat. Thus, both the horizontal components and vertical components of forces at a joint should sum to zero. Suppose the angled bar from A = (A.x, A.y) to F = (F.x, F.y) has expansion force f. And consider the horizontal and vertical forces applied to joint F. By convention, forces upward and to the right will be positive. If bar AF has angle , then the horizontal force is f*cos( ) = f *(F.x-A.x)/|AF| and the vertical force is f*sin( ) = f *(F.y-A.y)/|AF| , where |AF| denotes the length of the bar sqrt((F.x-A.x)^2 +(F.y-A.y)^2 ) = norm(F-A). Adding up the horizontal forces gives one equation at each joint, and adding up the vertical forces gives a second. The equations for vertical forces at joints C and D will include the downward forces from the truck and car. Joint A is fixed and joint E is fixed vertically, but not horizontally, so we get no equation from A, and one equation from E. (And 27 + 1 = 15 equations is just right for the 15 force variables that we want to find.) Once you have your 15 equations relating the 15 force variables for one bridge, you can have your script set up a matrix M with one equation per row, and one variable per column. The constants appearing on the right hand side are put into a 15x1 vector b. Once the matrix is set up, the solution is easy. MATLAB solves for the vector v of 15 force variables that satisfy _Mv =b_ by “matrix left division,” v = M\b , as described in class and in Gilat 3.3. To see MATLAB’s documentation, type doc mldivide. You can define functions to do the repetitive calculation of horizontal and vertical components of force, as suggested in Gilat, chapter 6. E.g., make a file horiz.m that contains the following: function result = horiz(U,V) % calculate horizontal component of force applied to point U by bar UV. result = (U(1) - V(1))/norm(U-V); Do something similar for vert(U,V), and then you can use f*horiz(F,A) and f*vert(F,A), instead of having to type out the calculation each time you want those values.