A Truss Problem A C E B D F 10 TONS 15 TONS 10 TONS

Similar documents
Section V.3: Dot Product

7. LU factorization. factor-solve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix

6. Vectors Scott Surgent (surgent@asu.edu)

Unified Lecture # 4 Vectors

Lecture L3 - Vectors, Matrices and Coordinate Transformations

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

Magnetic Fields and Their Effects

28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z

13 MATH FACTS a = The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

Section 10.4 Vectors

Introduction to Engineering Analysis - ENGR1100 Course Description and Syllabus Monday / Thursday Sections. Fall '15.

PLANE TRUSSES. Definitions

ELECTRIC FIELD LINES AND EQUIPOTENTIAL SURFACES

Vectors 2. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.

5.3 The Cross Product in R 3

The Force Table Vector Addition and Resolution

Linear Programming Problems

Figure 1.1 Vector A and Vector F

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

u = [ 2 4 5] has one row with three components (a 3 v = [2 4 5] has three rows separated by semicolons (a 3 w = 2:5 generates the row vector w = [ 2 3

3.2. Solving quadratic equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

6. Cholesky factorization

CS3220 Lecture Notes: QR factorization and orthogonal transformations

PLOTTING DATA AND INTERPRETING GRAPHS

Section 9.1 Vectors in Two Dimensions

The purposes of this experiment are to test Faraday's Law qualitatively and to test Lenz's Law.

MATH APPLIED MATRIX THEORY

LAB 6: GRAVITATIONAL AND PASSIVE FORCES

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

Module 8 Lesson 4: Applications of Vectors

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

7.7 Solving Rational Equations

LINES AND PLANES CHRIS JOHNSON

Definition: A vector is a directed line segment that has and. Each vector has an initial point and a terminal point.

Lecture 2 Mathcad Basics

SOLVING LINEAR SYSTEMS

1.3. DOT PRODUCT If θ is the angle (between 0 and π) between two non-zero vectors u and v,

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Solving Simultaneous Equations and Matrices

Awell-known lecture demonstration1

EDEXCEL NATIONAL CERTIFICATE/DIPLOMA MECHANICAL PRINCIPLES AND APPLICATIONS NQF LEVEL 3 OUTCOME 1 - LOADING SYSTEMS

Updates to Graphing with Excel

Notes on Determinant

Examples of Data Representation using Tables, Graphs and Charts

Section 1.1 Linear Equations: Slope and Equations of Lines

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Bedford, Fowler: Statics. Chapter 4: System of Forces and Moments, Examples via TK Solver

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

WEEK #3, Lecture 1: Sparse Systems, MATLAB Graphics

Review of Fundamental Mathematics

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA

Prentice Hall Mathematics: Algebra Correlated to: Utah Core Curriculum for Math, Intermediate Algebra (Secondary)

Solutions to Math 51 First Exam January 29, 2015

Operation Count; Numerical Linear Algebra

Petrel TIPS&TRICKS from SCM

Orthogonal Projections

1 of 79 Erik Eberhardt UBC Geological Engineering EOSC 433

Section 1.1. Introduction to R n

Chapter 4. Forces and Newton s Laws of Motion. continued

Copyright 2011 Casa Software Ltd. Centre of Mass

9 Multiplication of Vectors: The Scalar or Dot Product

Excel -- Creating Charts

Using row reduction to calculate the inverse and the determinant of a square matrix

Beginner s Matlab Tutorial

Notes for EER #4 Graph transformations (vertical & horizontal shifts, vertical stretching & compression, and reflections) of basic functions.

Using Parametric Equations in SolidWorks, Example 1

Difference between a vector and a scalar quantity. N or 90 o. S or 270 o

Vector and Matrix Norms

Basic Understandings

Integer Operations. Overview. Grade 7 Mathematics, Quarter 1, Unit 1.1. Number of Instructional Days: 15 (1 day = 45 minutes) Essential Questions

LAB 6 - GRAVITATIONAL AND PASSIVE FORCES

Force on Moving Charges in a Magnetic Field

Linear Algebra: Vectors

Curve Fitting, Loglog Plots, and Semilog Plots 1

Introduction to Matrices

Rotation Matrices and Homogeneous Transformations

CSC 120: Computer Science for the Sciences (R section)

2 Session Two - Complex Numbers and Vectors

Linear Algebra Notes for Marsden and Tromba Vector Calculus

Structural Axial, Shear and Bending Moments

Chapter 27: Taxation. 27.1: Introduction. 27.2: The Two Prices with a Tax. 27.2: The Pre-Tax Position

Chapter 6 Work and Energy

Eigenvalues and Eigenvectors

EQUILIBRIUM STRESS SYSTEMS

LINEAR INEQUALITIES. less than, < 2x + 5 x 3 less than or equal to, greater than, > 3x 2 x 6 greater than or equal to,

Introduction to Seismology Spring 2008

Excel 2007 Basic knowledge

This activity will show you how to draw graphs of algebraic functions in Excel.

Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM. x + 5 = = (2-2) = = 5. x = 7-5. x + 0 = 20.

Physics 221 Experiment 5: Magnetic Fields

Gestation Period as a function of Lifespan

α = u v. In other words, Orthogonal Projection

Scatter Plots with Error Bars

1 Symmetries of regular polyhedra

AP Physics - Vector Algrebra Tutorial

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors

Example SECTION X-AXIS - the horizontal number line. Y-AXIS - the vertical number line ORIGIN - the point where the x-axis and y-axis cross

Minnesota Academic Standards

Transcription:

A Truss Problem A typical task in structural engineering is to design a bridge to be strong enough to withstand a certain load. Consider the following plane truss, which is a set of metal bars connected by frictionless pin joints. ( Plane refers to the fact that the truss is two-dimensional, not three-dimensional as it would be in reality.) The symbol at the left end of the truss indicates that it is fixed at that end, while the symbol at the right end indicates that the truss is free to move horizontally, but not vertically. The three arrows pointing down represent loads on the truss. These loads are 10 tons, 15 tons, and 10 tons respectively. A C E 4 8 1 3 5 7 9 11 12 /////// 2 6 10 13 B D F 10 TONS 15 TONS 10 TONS G The problem is to solve a certain linear system of equations for the internal forces in the bars. A positive internal force indicates that the bar is being extended (pulled apart a little), by the load, while a negative internal force indicates that the bar is being compressed. It is assumed that, as long as the internal forces are not too big, bars will not be stretched or compressed more than a tiny amount: thus the structure does not collapse, but remains in equilibrium. By computing the internal forces, an engineer has more information as to whether the truss is indeed strong enough to withstand the load. There are two linear equations for each internal joint in the truss, representing forces in the horizontal and vertical direction which must balance at the joints. Let us denote the internal forces by x 1, x 2,..., x 13, corresponding to the numbers on the bars in the illustration. The balancing of forces at joint C in the horizontal direction gives the equation x 4 = x 8 while the balancing of forces at joint C in the vertical direction gives simply x 7 = 0. 1

The balancing of forces at joint B in the horizontal direction gives x 2 = x 6 while the vertical direction at joint B gives x 3 = 10. The 10 comes from the 10 ton vertical load at joint B. The balancing of forces at joint A is a little more complicated, since it involves two bars oriented at an angle of 45 degrees as well as a horizontal and a vertical bar. Let α = cos(π/4) = sin(π/4) = 2/2. Then the balancing of horizontal forces at joint A gives the equation αx 1 = x 4 + αx 5 and the balancing of vertical forces at joint A gives αx 1 + x 3 + αx 5 = 0. There are also horizontal and vertical force equations at joints D, E and F which can be derived using the same ideas. These amount to 12 equations altogether. The 13th equation comes from the right end point G: since this end point is free to move horizontally, but not vertically, there is just one force equation, balancing the forces horizontally: x 13 + αx 12 = 0. Thus, we have a total of 13 linear equations defining the 13 internal force variables. There are several parts to the assignment, all important: 1. Derive the 13 linear equations in 13 variables. Write the equations using matrix notation, as Ax = b, and enter the matrix A and righthand side vector b in a Matlab function. (This is better than working at the keyboard so you don t have to keep retyping if you make a mistake.) 2. Solve the system of linear equations, using the Matlab backslash operator: x = A\b. You can put this in the function too, and return x, the vector of internal forces, as an output parameter of the function. Print the solution vector x (you should compare it with what other classmates get to make sure you set up the system correctly). 2

3. Graphically display the solution, using plot. After plotting the first line of the plot you need to execute hold on before continuing with plotting. The figure shown should look something like the one above, but instead of labeling the bars with numbers, plot the bars with variable thickness, corresponding to the magnitude of the internal force in the bar. Type help plot to see how to get lines of variable thickness (toward the end of the help info). Use one color for positive forces (bars being extended by the load), and another color for negative forces (bars being compressed by the load). Thick bars correspond to bars under great stress from the load, while thin bars correspond to bars under little stress. For a zero or very nearly zero force, you could use a dotted line. There is no need to label the joints. Look at which bars are under extension and which are under compression: does it make sense, bearing in mind where the load is? 4. Experiment with different choices for the load. This changes only the vector b, not the matrix A. You can pass the load vector (length 3) to your first function as a parameter. Try loads of 10,20,30 tons instead of 10,15,10, and try some other loads too. Choose a couple of loads that give interesting pictures and include them in your submission. Do negative loads make sense (try them)? 5. Generalize by writing a new function that sets up and solves the equations for a variable-sized truss, with k sections exactly like the section ABCDEF instead of one, where k is an input parameter to the function. You do not need to plot the resulting trusses. What you need to do is write code to automatically set up the matrix A and vector b defining the system of equations for a variable-sized truss. This will require some careful thought. Start by sketching the larger truss on paper and carefully writing down the relevant equations systematically; working together with a classmate for this part is particularly recommended, but don t forget to acknowledge his/her help in your comments. Make sure you number the variables in the appropriate order, so that you recover your original answer when k = 1. The load is a vector whose length depends on k (what is it?) and should be provided to the function as a second input parameter. Make sure you include plenty of comments explaining the code. Test your function for the case k = 1, k = 2 and k = 3 and carefully look at the output to see if it makes sense before going on to the next part. 6. Solve the new system using a load vector that increases regularly like 3

this from left to right: 10,20,30,... Print the computed internal force vector x for k = 10 (as numbers, you don t need to plot these values). 7. Sparsity: Use spy to display the nonzero entries in the matrix A for k = 10. Is there a pattern? Does it make sense? Do the same for A 1 (the inverse of A, computed by inv(a)) and the L and U factors obtained from [L,U] = lu(a). By looking at L, seeing how close it is to being lower triangular as opposed to permuted lower triangular, you can see whether pivoting occurs in the LU factorization; does it? How sparse are A 1, L and U, compared with the sparsity of A? Answer this in some detail, comparing the four different spy plots. 8. Timing Comparsion: Experiment with how long it takes to solve the system of equations for k that is large enough that timing comparisons are meaningful (use cputime). Compare the following: x=a\b getting x by first computing A 1 and multiplying it onto b getting x by first computing the L and U factors with lu and then solving two triangular systems using \. (This is what is actually going on when you type x=a\b as explained in class, so the timing should be about the same.) the same 3 again, but with A set up as a sparse matrix; typehelp sparse for information as to how this works; we will also discuss this in class. This means editing your function that sets up A accordingly; add an input parameter that determines whether A is to be set up as a dense or sparse matrix. How do the execution times compare? Does this relate to the sparsity displayed in the spy plots? 9. Timing When k is Increased: Compare the timings for the k which you reported in the previous paragraph and the timings for larger values of k. Do this just for solving with x=a\b, but for the two cases: A is dense, and A is sparse. Plot the running times as a function of k, using whatever format you think is informative. You can plot both running times on one plot using legend. Submit: listings of the Matlab functions, several plots of the original truss under various loads, the plots generated by spy for k = 10, the derivation of the equations, especially for the generalized truss, the output x for the 4

original truss and the generalized truss with k = 10, the plot of running times as a function of k and answers to all the questions above. Carefully document everything, showing what pictures go with what loads, etc. Because there are so many different aspects to this, I think it is best to submit the homework on paper, but you can supplement this with email to the grader, especially if you want to use color and cannot print color plots easily. Staple the pages together. Black and white printing is OK but make sure the bars under compression and under extension are clearly distinguished. 5