Presentation is loading. Please wait.

Presentation is loading. Please wait.

Solving Scale Linear Systems (Example system) Lecture 13 MA/CS 471 Fall 2003.

Similar presentations


Presentation on theme: "Solving Scale Linear Systems (Example system) Lecture 13 MA/CS 471 Fall 2003."— Presentation transcript:

1 Solving Scale Linear Systems (Example system) Lecture 13 MA/CS 471 Fall 2003

2 First – Brief Reintroduction to Linear Systems First we will use an example physical system to construct a set of 5 couple linear equations in 5 unknowns. We will seek a solution using Matlab Later we will consider generalizations to larger systems (with correspondingly more unknowns to find).

3 Circuit Problem 11 44 33 22 11 55 66 77 30V +-+- Problem: Find the current running through each closed loop

4 Circuit Problem 11 44 33 22 11 55 66 77 30V +-+- Notation DC Battery Resistor (resistance in ohms) Resistance free wire

5 Circuit Problem 11 44 33 22 11 55 66 77 30V Find the current (in amperes) traveling in the shown closed loops

6 Kirchoff’s Second Law Kirchoff's 2nd Law states that for any closed loop path around a circuit the sum of the voltage gains and voltage drops equals zero. In the circuit shown, there is a voltage gain for each electron traveling through the voltage source and a voltage drop across the resistor.

7 Loop 1 Balance I1I1 I2I2 I3I3 11 44 33 22 11 55 66 77 30V Consider LOOP 1 The gain is 30V. The loop 1 loss (by Ohm’s law) is: The gain due to current from loop 2 is: The gain due to current from loop 3 is: Kirchoff’s 2 nd law states gain=loss, =>

8 All Loop Balances 11 44 33 22 11 55 66 77 30V1 2 3 4 5

9 Rearranging Linear System Divide through by Ohms: Arranging unknown Loop currents on left hand side and known voltage sources on right hand side:

10 Final System Simplifying the coefficients: Matrix form:

11 Final Form Negating both sides: This is the enemy. We will create systems with a large number of degrees of freedom later on.

12 Solution (by Matlab) 11 44 33 22 11 55 66 77 30V 8.19A 2.74A 5.46A 1.97A 1.08A Solution:

13 Homework/Lab work Q1) a)Create a non-trivial circuit with 15 sub loops. Use a range of resistor values between 1 and 10. b)Using a sparse matrix (see MA375/Lecture 8 intro), solve for loop currents with Matlab c)Draw a diagram indicating current along each segment of circuit (to two significant figures). d)Verify Kerchoff’s first law (look it up) by checking the sum of currents at three of the wire intersections. e)Count the number of non-zeros of your 15x15 matrix and report the amount of fill (i.e. number of non-zeros/225) f)Include print out of matlab window used for matrix solution. Q2) Review: a) LU factorization b) condition number of a matrix


Download ppt "Solving Scale Linear Systems (Example system) Lecture 13 MA/CS 471 Fall 2003."

Similar presentations


Ads by Google