Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:courses:real-analog-chapter-3:start [2016/12/16 23:16] – Marthalearn:courses:real-analog-chapter-3:start [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Real Analog: Chapter 3 ====== ====== Real Analog: Chapter 3 ======
 +[[{}/learn/courses/real-analog-chapter-2/start|Back to Chapter 2]]
 +-->Chapter 3 Materials#  
 +  * Lecture Material:
 +    * {{ :learn:courses:real-analog-chapter-3:lecture7.ppt |Lecture 7 PowerPoint Slides}}: Overview of nodal & mesh analysis, nodal analysis
 +    * {{ :learn:courses:real-analog-chapter-3:lecture8.ppt |Lecture 8 PowerPoint Slides}}: Mesh analysis
 +    * {{ :learn:courses:real-analog-chapter-3:lecture9.ppt |Lecture 9 PowerPoint Slides}}: Constrained loops, additional mesh analysis examples
 +    * [[http://www.youtube.com/watch?v=x6qmVkB_bLs&list=PLDEC730F6A8CDE318&index=7&feature=plpp_video| Lecture 7 Video]]
 +    * [[http://www.youtube.com/watch?v=-zgBmwRItV8&list=PLDEC730F6A8CDE318&index=8&feature=plpp_video| Lecture 8 Video]]
 +    * [[http://www.youtube.com/watch?v=XK4btnUp294&list=PLDEC730F6A8CDE318&index=9&feature=plpp_video| Lecture 9 Video]]
 +  * Chapter 3 Video:
 +    * [[http://www.youtube.com/watch?v=V8c6GT3QruY&list=PL170A01159D42313D&index=8&feature=plpp_video| Lab 3 Video]]: Nodal and Mesh Analysis: Analysis and implementation of circuits with multiple sources. Using multiple sources on the Analog Discovery to create sources outside its nominal +/- 5V range.
 +  * {{ :learn:courses:real-analog-chapter-3:real-analog-chapter-3.pdf | Chapter 3 Complete PDF}}
 +    * {{ :learn:courses:real-analog-chapter-3:lab3p2p1.pdf |Lab 3.2.1}}
 +      * {{ :learn:courses:real-analog-chapter-3:lab3p2p1_worksheet.docx |Worksheet 3.2.1}}
 +    * {{ :learn:courses:real-analog-chapter-3:lab3p2p2.pdf |Lab 3.2.2}}
 +      * {{ :learn:courses:real-analog-chapter-3:lab3p2p2_worksheet.docx |Worksheet 3.2.2}}
 +    * {{ :learn:courses:real-analog-chapter-3:lab3p2p3.pdf |Lab 3.2.3}}
 +      * {{ :learn:courses:real-analog-chapter-3:lab3p2p3_worksheet.docx |Worksheet 3.2.3}}
 +    * {{ :learn:courses:real-analog-chapter-3:lab3p3p1.pdf |Lab 3.3.1}}
 +      * {{ :learn:courses:real-analog-chapter-3:lab3p3p1_worksheet.docx |Worksheet 3.3.1}}
 +    * {{ :learn:courses:real-analog-chapter-3:lab3p3p2.pdf |Lab 3.3.2}}
 +      * {{ :learn:courses:real-analog-chapter-3:lab3p3p2_worksheet.docx |Worksheet 3.3.2}}
 +    * {{ :learn:courses:real-analog-chapter-3:lab3p3p3.pdf |Lab 3.3.3}}
 +      * {{ :learn:courses:real-analog-chapter-3:lab3p3p3_worksheet.docx |Worksheet 3.3.3}}
 +  * {{ :learn:courses:real-analog-chapter-3:realanalog-exercisesolutions-chapter3.pdf |Exercise Solutions}}: Chapter 3 exercise solutions
 +  * {{ :learn:courses:real-analog-chapter-3:homework3.docx |Homework}}: Chapter 3 homework problems
 +
 +<--
 +
 ====== 3. Introduction and Chapter Objectives ====== ====== 3. Introduction and Chapter Objectives ======
-In Chapters [[https://reference.digilentinc.com/learn/courses/real-analog-chapter-1/start|1]] & [[https://reference.digilentinc.com/learn/courses/real-analog-chapter-2/start|2]], we introduced several tools in circuit analysis:+In Chapters [[/learn/courses/real-analog-chapter-1/start|1]] & [[/learn/courses/real-analog-chapter-2/start|2]], we introduced several tools in circuit analysis:
   * Ohm's Law   * Ohm's Law
   * Kirchhoff's laws   * Kirchhoff's laws
Line 8: Line 37:
 Circuit reduction, it should be noted, is not fundamentally different from direct application of Ohm's and Kirchhoff's laws - it is simply a convenient re-statement of these laws for specific combinations of circuit elements.  Circuit reduction, it should be noted, is not fundamentally different from direct application of Ohm's and Kirchhoff's laws - it is simply a convenient re-statement of these laws for specific combinations of circuit elements. 
  
-In Chapter 1, we saw that direct application of Ohm's law and Kirchhoff's laws to a specific circuit using the //exhaustive method// often results in a large number of unknowns - even if the circuit is relatively simple. A correspondingly large number of equations must be solved to determine these unknowns. Circuit reduction allows us, in come cases, to simplify the circuit to reduce the number of unknowns in the system. Unfortunately, not all circuits are reducible and even analysis of circuits that are reducible depends upon the engineer "noticing" certain resistance combinations and combining them appropriately. +In Chapter 1, we saw that direct application of Ohm's law and Kirchhoff's laws to a specific circuit using the //exhaustive method// often results in a large number of unknowns - even if the circuit is relatively simple. A correspondingly large number of equations must be solved to determine these unknowns. Circuit reduction allows us, in some cases, to simplify the circuit to reduce the number of unknowns in the system. Unfortunately, not all circuits are reducible and even analysis of circuits that are reducible depends upon the engineer "noticing" certain resistance combinations and combining them appropriately. 
  
 In cases where circuit reduction is not feasible, approaches are still available to reduce the total number of unknowns in the system. //Nodal analysis// and //mesh analysis// are two of these. Nodal and mesh analysis approaches still rely upon application of Ohm's law and Kirchhoff's laws - we are just applying these laws in a very specific way in order to simplify the analysis of the circuit. One attractive aspect of nodal and mesh analysis is that the approaches are relatively rigorous - we are assured of identifying a reduced set of variables, if we apply the analysis rules correctly. Nodal and mesh analysis are also more general than circuit reduction methods - virtually any circuit can be analyzed using nodal or mesh analysis.  In cases where circuit reduction is not feasible, approaches are still available to reduce the total number of unknowns in the system. //Nodal analysis// and //mesh analysis// are two of these. Nodal and mesh analysis approaches still rely upon application of Ohm's law and Kirchhoff's laws - we are just applying these laws in a very specific way in order to simplify the analysis of the circuit. One attractive aspect of nodal and mesh analysis is that the approaches are relatively rigorous - we are assured of identifying a reduced set of variables, if we apply the analysis rules correctly. Nodal and mesh analysis are also more general than circuit reduction methods - virtually any circuit can be analyzed using nodal or mesh analysis. 
Line 18: Line 47:
 ==== After Completing this Chapter, You Should be Able to: ==== ==== After Completing this Chapter, You Should be Able to: ====
   * Use nodal analysis techniques to analyze electrical circuits   * Use nodal analysis techniques to analyze electrical circuits
-  * Use mesh analysis techniques to analyze electrical circuits+  * Use mesh analysis techniques to analyze electrical circuits
  
 ---- ----
Line 114: Line 143:
 Node b: Node b:
  
-$$-i_1+i_3+i_4=0      (Eq. 3.1)$$+$$-i_1+i_3+i_4=0   \qquad   (Eq. 3.1)$$
  
 Node c: Node c:
  
-$$-i_2-i_3+i_5=0      (Eq. 3.2)$$+$$-i_2-i_3+i_5=0   \qquad   (Eq. 3.2)$$
  
 {{ :learn:courses:real-analog-chapter-3:chapter3i.png |Figure 3.7.}} {{ :learn:courses:real-analog-chapter-3:chapter3i.png |Figure 3.7.}}
  
 ==== Step 5: Use Ohm's Law to Write the Equations From Step 4 in Terms of Voltages ==== ==== Step 5: Use Ohm's Law to Write the Equations From Step 4 in Terms of Voltages ====
-The currents defined in Step 4 can be written in terms of the node voltages defined previously. For example, from Fig. 3.7: $i_1= \frac{V_S-V-b}{R_1}$, $i_3=\frac{V_b-V_c}{R_3}$, and $i_4=\frac{V_b-0}{R_4}$, sop equation (3.1) can be written as:+The currents defined in Step 4 can be written in terms of the node voltages defined previously. For example, from Fig. 3.7: $i_1= \frac{V_S-V-b}{R_1}$, $i_3=\frac{V_b-V_c}{R_3}$, and $i_4=\frac{V_b-0}{R_4}$, so equation (3.1) can be written as:
  
 $$-\frac{V_s-V_b}{R_1} + \frac{V_b-V_c}{R_3} + \frac{V_b-0}{R_4} = 0 $$ $$-\frac{V_s-V_b}{R_1} + \frac{V_b-V_c}{R_3} + \frac{V_b-0}{R_4} = 0 $$
Line 129: Line 158:
 So the KCL equation for node b becomes: So the KCL equation for node b becomes:
  
-$$ \left( \frac{1}{R_1} + \frac{1}{R_3} + \frac{1}{R_4} \right) V_b - \frac{1}{R_3} V_c = \frac{1}{R_1}V_S    (Eq. 3.3)$$+$$ \left( \frac{1}{R_1} + \frac{1}{R_3} + \frac{1}{R_4} \right) V_b - \frac{1}{R_3} V_c = \frac{1}{R_1}V_S  \qquad  (Eq. 3.3)$$
  
 Likewise, the KCL equation for node c can be written as: Likewise, the KCL equation for node c can be written as:
  
-$$-\frac{1}{R_3} V_b + \left( \frac{1}{R_3} + \frac{1}{R_2} + \frac{1}{R_5} \right) V_c = \frac{1}{R_2} V_S         (Eq. 3.4)$$+$$-\frac{1}{R_3} V_b + \left( \frac{1}{R_3} + \frac{1}{R_2} + \frac{1}{R_5} \right) V_c = \frac{1}{R_2} V_S    \qquad     (Eq. 3.4)$$
  
  
Line 140: Line 169:
 ==== Double-checking Results ==== ==== Double-checking Results ====
 If the circuit being analyzed contains only __independent sources__, and the sign convention used in KCL equations is the same as used above (__currents leaving nodes are assumed positive__), the equations written at each node will have the following form: If the circuit being analyzed contains only __independent sources__, and the sign convention used in KCL equations is the same as used above (__currents leaving nodes are assumed positive__), the equations written at each node will have the following form:
-  * The term multiplying the voltage at that node will be the sum of the conductances connected to that node. For the example above, the term multiplying $V_b$ in the equation for node b is $\frac{1}{R_1} + \frac{1}{R_3} + \frac{1}{R_4}$ while the term multiplying $V_c$ nin the equation for node c is $\frac{1}{R_3} + \frac{1}{R_2} + \frac{1}{R_5}$. +  * The term multiplying the voltage at that node will be the sum of the conductances connected to that node. For the example above, the term multiplying $V_b$ in the equation for node b is $\frac{1}{R_1} + \frac{1}{R_3} + \frac{1}{R_4}$ while the term multiplying $V_c$ in the equation for node c is $\frac{1}{R_3} + \frac{1}{R_2} + \frac{1}{R_5}$. 
   * The term multiplying the voltages adjacent to the node will be the negative of the conductance connecting the two nodes. For the example above, the term multiplying $V_c$ in the equation for node b is $-\frac{1}{R_3}$, and the term multiplying $V_b$ in the equation for node c is $-\frac{1}{R_3}$.   * The term multiplying the voltages adjacent to the node will be the negative of the conductance connecting the two nodes. For the example above, the term multiplying $V_c$ in the equation for node b is $-\frac{1}{R_3}$, and the term multiplying $V_b$ in the equation for node c is $-\frac{1}{R_3}$.
  
Line 178: Line 207:
 $$V=V_A - V_B = -2V$$ $$V=V_A - V_B = -2V$$
  
-Several comments should be made relative to the above example: +Several comments should be made relative to the above example:\\ 
-1. Steps 4 and 5 (applying KCL at each independent node and using Ohm's law to write these equations in terms of voltages) have been combined into a single step. This approach is fairly common, and can provide a significant savings in time. +**1.** Steps 4 and 5 (applying KCL at each independent node and using Ohm's law to write these equations in terms of voltages) have been combined into a single step. This approach is fairly common, and can provide a significant savings in time. 
  
-2. There may be a perceived inconsistency between the two node equations, in the assumption of positive current direction in the 1Ω resistor. In the equation for node A, the current is apparently assumed to be positive from node A to node B, as shown below:+**2.** There may be a perceived inconsistency between the two node equations, in the assumption of positive current direction in the 1Ω resistor. In the equation for node A, the current is apparently assumed to be positive from node A to node B, as shown below:
 {{ :learn:courses:real-analog-chapter-3:chapter3l.png |1Ω resistor.}} {{ :learn:courses:real-analog-chapter-3:chapter3l.png |1Ω resistor.}}
  
Line 187: Line 216:
 {{ :learn:courses:real-analog-chapter-3:chapter3m.png |Positive current direction example.}} {{ :learn:courses:real-analog-chapter-3:chapter3m.png |Positive current direction example.}}
  
-This definition leads to the corresponding term in the equation for node B becoming: $\frac{V_B - V_A}{1}$/ +This definition leads to the corresponding term in the equation for node B becoming: $\frac{V_B - V_A}{1}$. 
  
 The above inconsistency in sign is, however, insignificant. Suppose that we had assumed (consistently with the equation for node A) that the direction of positive current for the node B equation is from Node A to B. Then, the corresponding term in the equation for node B would have been: $-\frac{V_A - V_B}{1}$ (note that a negative sign has been applied to this term to accommodate our assumption that __currents flowing into nodes are negative__). This is equal to $\frac{V_B - V_A}{1}$, which is exactly what our original result was.  The above inconsistency in sign is, however, insignificant. Suppose that we had assumed (consistently with the equation for node A) that the direction of positive current for the node B equation is from Node A to B. Then, the corresponding term in the equation for node B would have been: $-\frac{V_A - V_B}{1}$ (note that a negative sign has been applied to this term to accommodate our assumption that __currents flowing into nodes are negative__). This is equal to $\frac{V_B - V_A}{1}$, which is exactly what our original result was. 
  
-3. The current source appears __directly__ in the nodal equations. +**3.** The current source appears __directly__ in the nodal equations. 
  
  
Line 204: Line 233:
  
 ==== Supernodes ==== ==== Supernodes ====
-In the previous examples, we identified __dependent__ nodes and determined __constrained__ voltages. Kirchhoff's current law was then only written at __independent__ nodes. Many readers find this somewhat confusing, especially if the dependent voltages are not relative tot he reference voltage. We will thus discuss these steps in more detail here in the context of an example, introducing the concept of a //supernode// in the process. +In the previous examples, we identified __dependent__ nodes and determined __constrained__ voltages. Kirchhoff's current law was then only written at __independent__ nodes. Many readers find this somewhat confusing, especially if the dependent voltages are not relative to the reference voltage. We will thus discuss these steps in more detail here in the context of an example, introducing the concept of a //supernode// in the process. 
  
 Example: for the circuit below, determine the voltage difference, V, across the 2mA source.  Example: for the circuit below, determine the voltage difference, V, across the 2mA source. 
Line 360: Line 389:
 This consists of two equations with three unknowns. The equation governing the dependent current source provides the third equation. Writing the controlling current in terms of independent voltages results in: This consists of two equations with three unknowns. The equation governing the dependent current source provides the third equation. Writing the controlling current in terms of independent voltages results in:
  
-$$I_X= \frac{V_A-0}{5\Omega}+$$I_X= \frac{V_A-0}{5\Omega}$$
  
 ---- ----
Line 371: Line 400:
     * Use Ohm's law to write KCL at each independent node, in terms of the node voltages. This will result in N equations in N unknowns, where N is the number of node voltages. Independent "nodes" can be //supernodes//; supernodes typically contain a voltage source; this minimizes the number of equations being written by taking advantage of voltage constraints introduced in step 3.      * Use Ohm's law to write KCL at each independent node, in terms of the node voltages. This will result in N equations in N unknowns, where N is the number of node voltages. Independent "nodes" can be //supernodes//; supernodes typically contain a voltage source; this minimizes the number of equations being written by taking advantage of voltage constraints introduced in step 3. 
     * Solve the equations of step 4 to determine the node voltages.     * Solve the equations of step 4 to determine the node voltages.
-    * Use the node voltages to determine any other esired voltages/currents in the circuit. +    * Use the node voltages to determine any other desired voltages/currents in the circuit. 
   * Modifications to the above approach are allowed. For example, it is not necessary to define supernodes in step 4 above. Once can define unknown voltages at either terminal of a voltage source and write KCL at each of these nodes. However, the unknown current through the voltage source must be accounted for when writing KCL - this introduces an additional unknown into the governing equations. This added unknown requires an additional equation. This equation is obtained by explicitly writing a constraint equation relating the voltages at the two terminals of the voltage source.    * Modifications to the above approach are allowed. For example, it is not necessary to define supernodes in step 4 above. Once can define unknown voltages at either terminal of a voltage source and write KCL at each of these nodes. However, the unknown current through the voltage source must be accounted for when writing KCL - this introduces an additional unknown into the governing equations. This added unknown requires an additional equation. This equation is obtained by explicitly writing a constraint equation relating the voltages at the two terminals of the voltage source. 
  
Line 431: Line 460:
  
 {{ :learn:courses:real-analog-chapter-3:chapter3af.png |Step 3 example image.}} {{ :learn:courses:real-analog-chapter-3:chapter3af.png |Step 3 example image.}}
 +
 +From the above figure, the voltage drops across the resistor $R_1$ can then be determined as:
 +
 +$$V_1 = R_1 i_1$$
 +
 +Since only mesh current $i_1$ passes through the resistor $R_1$. Likewise, the voltage drop for the resistor $R_4$ is
 +
 +Since mesh currents $i_1$ and $i_4$ both pass through $R_4$ and the current $i_2$ is in the opposite direction to our assumed polarity for the voltage $V_4$. 
 +
 +Using the above expressions for $V_1$ and $V_4$, we can write KVL for the first mesh loop as:
 +
 +$$-V_S + R_1 i_1 + R_4 (i_1 - i_2) =0$$
 +
 +When we write KVL for the mesh current $i_2$ in our example, we choose voltage polarities for resistors $R_4$, $R_2$, and $R_5$ as shown in the figure below – these polarities agree with the passive sign convention for voltages relative to the direction of the mesh current $i_2$.  Please note that these sign conventions do not need to agree with the sign conventions used in the equations for other mesh currents.
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter_example.png?nolink |}}
  
 Using the above sign conventions, KVL for the second mesh loop becomes: Using the above sign conventions, KVL for the second mesh loop becomes:
Line 478: Line 523:
 {{ :learn:courses:real-analog-chapter-3:chapter3aj.png |Example circuit.}} {{ :learn:courses:real-analog-chapter-3:chapter3aj.png |Example circuit.}}
  
-Define three mesh currents for each of the three meshes in the above circuit and define unknown voltages $V_1$ abd $V_3$ across the two current sources as shown below.+Define three mesh currents for each of the three meshes in the above circuit and define unknown voltages $V_1$ and $V_3$ across the two current sources as shown below.
  
 {{ :learn:courses:real-analog-chapter-3:chapter3ak.png |Example circuit.}} {{ :learn:courses:real-analog-chapter-3:chapter3ak.png |Example circuit.}}
Line 510: Line 555:
 {{ :learn:courses:real-analog-chapter-3:chapter3al.png |Example 3.6 image 1. }} {{ :learn:courses:real-analog-chapter-3:chapter3al.png |Example 3.6 image 1. }}
  
-=== //Step 1//: Define mesh loops ===+=== Step 1: Define mesh loops ===
  
 Replacing the two current sources with open circuits and the two voltage sources with short circuits results in a single mesh current, $i_1$, as shown below. Replacing the two current sources with open circuits and the two voltage sources with short circuits results in a single mesh current, $i_1$, as shown below.
Line 516: Line 561:
 {{ :learn:courses:real-analog-chapter-3:chapter3am.png |Example 3.6 image 2.}} {{ :learn:courses:real-analog-chapter-3:chapter3am.png |Example 3.6 image 2.}}
  
-=== //Step 2//: Constrained loops, version 1 ===+=== Step 2: Constrained loops, version 1 ===
 Initially, we choose the constrained loops shown below. Note that each loop passes through only one source and has the magnitude and direction imposed by the source.  Initially, we choose the constrained loops shown below. Note that each loop passes through only one source and has the magnitude and direction imposed by the source. 
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3an.png |Example 3.6 image 3.}}
 +
 +===Step 3: Write KVL around the mesh loops ===
 +Our example has only one mesh current, so only one KVL equation is required. This equation is:
 +
 +$$-8V + 2\Omega \left( i_1 + 1A - 2A \right) + 4\Omega \left( i_1 - 2A \right) + 10V + 6\Omega \left( i_1 \right) = 0$$
 +
 +=== Step 4: Solve the system of equations to determine the mesh currents of the circuit ===
 +Solving the above equation results in $i_1 = 0.667A$. The current through the $4\Omega$ resistor is then, accounting for the 2A constrained loop passing through the resistor, $i = i_1 -2A = -1.333A$. 
 +
 +==== Example 3.6: Version 2 ====
 +In this version, we choose an alternate set of constraint loops. The alternate set of loops is shown below; all constraint loops still pass through only one current source, and retain the magnitude and direction of the source current. 
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3ao.png |Example 3.6 image 4.}}
 +
 +Now, writing KVL for the single mesh results in:
 +
 +$$-8V + 2\Omega \left( i_1 + 1A \right) + 4\Omega \cdot i_1 + 10V + 6\Omega \left( i_1 +2A \right) = 0$$
 +
 +Solving for the mesh current results in $i_1 = -1.333A$; note that this result is __different__ than previously. However, we determine the current through the $4\Omega$ resistor as $i=i_1 = -1.333A$, which __is__ the same result as previously. 
 +
 +===Note=== 
 +Choice of alternate constrained loops may change the values obtained for the mesh currents. The currents through the circuit elements, however, do not vary with choice of constrained loops.
 +
 +==== Example 3.6: Version 3 ====
 +In this version, we choose yet another set of constrained loops. These loops are shown below. Again, each loop passes through one current source and retains that source's current direction and amplitude. 
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3ap.png |Example 3.6 image 5.}}
 +
 +KVL around the mesh loop results in:
 +
 +$$-8V + 2\Omega \cdot i_1 + 4\Omega \left( i_1 - 1A \right) + 10V + 6\Omega \left( i_1 - 1A + 2A \right) = 0$$
 +
 +Which results in $i_1 =-0.333A$. Again, this is different from the result from our first two approaches. However, the current through the $4\Omega$ resistor is $i=i_1 - 1A = -1.333A$, which __is__ the same result as previously. 
 +
 +----
 +
 +==== Dependent Sources ====
 +As with nodal analysis, the presence of dependent sources does not significantly alter the overall mesh analysis approach. The primary difference is simply the addition of the additional equations necessary to describe the dependent sources. We discuss the analysis with dependent sources in the context of the following examples. 
 +
 +
 +----
 +
 +==== Example 3.7 ====
 +Determine the voltage V in the circuit below.
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3aq.png |Example 3.7 image 1.}}
 +
 +Shorting both of the voltage sources in the circuit above results in two mesh circuits. These are shown in the figure below. 
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3ar.png |Example 3.7 image 2.}}
 +
 +Writing KVL around the two mesh loops results in:
 +
 +$$-2V + 2\Omega \cdot i_1 + 3\Omega \left( i_1-i_2 \right) = 0 $$
 +
 +$$2I_X + 3\Omega \left( i_2 - i_1 \right) + 4\Omega \cdot i_2 = 0$$
 +
 +we have two equations and three unknowns. We need an additional equation to solve the system of equations. The third equation is obtained by writing the dependent source's controlling current in terms of the mesh currents:
 +
 +$$I_X = i_1$$
 +
 +The above three equations can be solved to obtain $i_1 = 0.4375 \Omega$ and $i_2 = 0.0625 \Omega$. The desired voltage $V=4i_2 = 0.25V$. 
 +
 +
 +----
 +
 +==== Example 3.8 ====
 +Write mesh equations for the circuit shown below.
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3as.png |Example 3.8 image 1.}}
 +
 +Mesh loops and constraint loops are identified as shown below:
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3at.png |Example 3.8 image 2.}}
 +
 +Writing KVL for the two mesh loops results in:
 +
 +$$4\Omega \cdot i_1 + 2\Omega \left(i_1 - 3V_X \right) + 12V = 0$$
 +
 +$$-12V + 3\Omega \left(i_2-3V_X \right) + 5\Omega \cdot i_2 = 0$$
 +
 +Writing the controlling voltage $V_X$ in terms of the mesh currents results in:
 +
 +$$V_X = 5\Omega \cdot i_2$$
 +
 +The above consist of three equations in three unknowns, which can be solved to determine the mesh currents. Any other desired circuit parameters can be determined from the mesh currents. 
 +
 +----
 +
 +==== Section Summary ====
 +  * Basic steps in mesh analysis are:
 +    * Identify mesh currents. This can be done by short-circuiting voltage sources, open-circuiting current sources, and identifying the enclosed, non-overlapping regions in the circuit. The perimeters of these areas are the circuit meshes. The mesh currents flow around the circuit meshes. 
 +    * Determine constrained loops. The approach in Step 1 will ensure that no mesh currents will pass through the current sources. The current source currents can be accounted for by defining constrained loops. Constrained loops are defined as loop currents which pass through the current sources. Constrained loops are identified by replacing the sources in the circuit schematic, and defining mesh currents which pass through the current sources; these mesh currents form the constrained loops and must match both the magnitude and direction of the current in the current sources. 
 +    * Use Ohm's law to write KVL around each mesh loop, in terms of the mesh currents. This results in N equations in N unknowns, where N is the number of mesh currents. Keep in mind that the voltage difference across each element must correspond to the voltage difference induced by __all__ the mesh currents which pass through that element. 
 +    * Solve the equations of Step 4 to determine the mesh currents. 
 +    * Use the mesh currents to determine any other desired voltages/currents in the circuit. 
 +  * The constrained loops in Step 2 above are not unique. Their only requirement is that they must account for the currents through the current sources. 
 +  * Modifications to the above approach are allowed. For example, it is not necessary to define constrained loops in Step 3 above. One can define (unknown) mesh currents which pass through the current sources and write KVL for these additional mesh currents. However, the unknown voltage across the current source must be accounted for when writing KVL - this introduces an additional unknown into the governing equations. This added unknown requires an additional equation which is obtained by explicitly writing a constraint equation equating algebraic sum of the mesh currents passing through a current source to the current provided by the source. 
 +
 +
 +----
 +
 +==== Exercises ====
 +1. Use mesh analysis to write a set of equations from which you can find $I_1$, the current through the $12\Omega$ resistor. Do not solve the equations. 
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3au.png |Exercise 1.}}
 +
 +2. Use mesh analysis to find the current $I$ flowing through the $10\Omega$ resistor in the circuit below. Compare your result to your solution to exercise 2 of section 3.2.
 +
 +{{ :learn:courses:real-analog-chapter-3:chapter3av.png |Exercise 1.}}
  
  
 +[[{}/learn/courses/real-analog-chapter-2/start|Back to Chapter 2]]
 +[[{}/learn/courses/real-analog-chapter-4/start|Go to Chapter 4]]