Mesh Analysis#

We often refer to mesh analysis as a method of analysis as that is the goal of this analysis, to perform it methodically. As mentioned in the previous chapter, many folks choose to analyze circuits by haphazardly applying a combination of the fundamental laws, equivalent components, and the divider equations in order to find a single value of interest. Mesh analysis is organized and consistent when performed correctly. Furthermore, once we find the unknowns, we can use them to find any other value of interest in the circuit.

Relating Circuit Values to Mesh Currents#

The unknowns in this case are the currents flowing around each mesh of the circuit. Let’s take a step back and first use the mesh current to find expressions for other values in the circuit. It’s a bit of make-believe to begin with but it will help as we develop the method. Let’s pretend we already know the mesh currents and want to use them to determine other currents and voltages in the circuit.

Currents#

Let’s start with the circuit shown here

_images/using-mesh-currents.svg

The unknown mesh currents (\(I_1\), \(I_2\), and \(I_3\)) are marked and labeled. The directions can be arbitrary. We’ll start with all of the mesh currents labeled in the clockwise direction.

Examples

Find expressions for the currents labeled \(I_a\), \(I_b\), and \(I_c\) in terms of the mesh currents

Our First Toy Problem#

Applying the fundamental laws (Ohm’s, KVL, KCL) in the haphazard manner demonstrated in Section \ref{sec_MacGyver} leaves the desire for a more methodical approach to circuit analysis. The first of the two methods we consider is Mesh Analysis. We should build off of a simple example as we explore Mesh Analysis. The first example in this section is solvable using previous methods but will serve to increase our confidence in the new method.

Find \(V_A\)

_images/mesh-toy-problem.svg

Seat of the pants analysis tells us that \(V_A\) is 14 V. Let’s keep this result in mind for the next few sections

The Steps#

I’m going to list the steps here as reference. Use these steps as we walk through the next example. A more complete summary is included at the end of the chapter.

Steps for Mesh Analysis

  1. Assign mesh currents. Identify any “Super-meshes” (We’ll discuss what a super-mesh is later).

  2. Use KVL on each mesh current.

  3. Use Ohm’s law to express the resistor voltages in terms of mesh currents.

  4. Distribute and group like terms.

  5. Plug in values and solve the system.

Let’s apply these steps to our toy problem.

Example

Find \(V_A\) in this circuit.

_images/mesh-toy-problem-mesh.svg

Why on earth would we go through all of that when we have already solved this problem in a simpler manner?

  1. These steps can be applied in general. The seat-of-the-pants method depended on your clever mind to find a path to the answer. As circuits become more complex finding that path can become more convoluted and therefore more prone to error.

  2. Until now we have been limited to analyzing circuits with a single source. Mesh analysis can be applied regardless of the number of sources in the circuit.

  3. Once you have calculated the mesh currents you can easily revisit the circuit and find any value of interest.

Consider the next example that uses the same circuit. If we were later asked to analyze the circuit for\(V_B\) we may have to perform the analysis again with a different goal. Using the previously calculated mesh currents it is a trivial matter to find the value.

Example

Find \(V_B\) given \(I_1\)=1.167 A and \(I_2\)=583.3 mA.

_images/mesh-toy-problem-other-value.svg

Mesh Analysis with Multiple Sources#

I mentioned before that mesh analysis can be used to analyze circuits with multiple sources. The same steps are applied with no alteration. Let’s look at a quick example

Example

Find \(V_A\)

_images/mesh-multiple-sources.svg

A quick side note: Ohm’s law can be seen if we examine the contents of the linear system in matrix form. The 2x2 matrix contains only resistances. The vector of unknowns contains currents. The vector of constants contains voltages. Considering that the matrix is inverted we can see that

\[\begin{split} \underbrace{\left[ \begin{array}{cc} 18\Omega&12\Omega\\ 12\Omega&24\Omega\\ \end{array} \right]^{-1}}_{\boldsymbol{R}^{-1}}\underbrace{\left[\begin{array}{c}12~\text{V}\\8~\text{V}\end{array}\right]}_{\boldsymbol{V}}=\underbrace{\left[\begin{array}{c}I_1\\I_2\end{array}\right]}_{\boldsymbol{I}}=\left[\begin{array}{c}2/3~\text{A}\\0~\text{A}\end{array}\right] \end{split}\]

or simply a matrix form of Ohm’s Law

\[\boldsymbol{VR}^{-1}=\frac{\boldsymbol{V}}{\boldsymbol{R}}=\boldsymbol{I}\]

More complex circuits might have additional meshes. Mesh analysis can be applied in these cases simply by adding additional mesh currents and additional corresponding KVL equations.

Example

Find \(V_O\)

_images/mesh-3-meshes.svg

Current Sources in Mesh Analysis#

KVL equations are the default when performing Mesh analysis. There are cases where you are unable to write enough KVL equations to form a fully-determined system of equations. Those cases can be easily recognized if we look for current supplies.

Each term in a KVL must be a voltage. Those voltages must be rewritten to be in terms of the unknown mesh currents. This is possible with resistors using Ohm’s law. When current supplies are present we cannot readily represent the voltage across that current supply in terms of the unknown mesh currents. So how do we approach current supplies when performing Mesh analysis?

Since we cannot write a KVL for a mesh when it contains a current supply, we must write a KCL instead. The goal remains to write the same number of equations as we have unknowns in order to find a unique solution for those unknowns. So, for each current supply (dependent or independent) we write a KCL. The remainder of the equations we need to equal the number of unknowns are then KVL equations written in the usual way.

Let’s examine two cases of circuits that have current supplies and perform Mesh analysis on them.

Current Sources with a Single Mesh Current#

The first case is a current supply that is only affected by a single mesh current. But before we write the KCL for that current supply consider the types and quantities of equations that you will write to find the unknown mesh currents. For each current supply write a KCL equation, only one in the case if the next example. A total of 2 equations are required since we have two unknown mesh currents. That leaves 1 KVL to have a fully-determined system.

Let’s find the mesh currents in this example circuit:

Example

Find the mesh currents in this circuit

_images/mesh-current-supply.svg

Current Sources with Multiple Mesh Currents#

The case of current supplies that are affected by multiple mesh currents varies only slightly from the previous example where a current supply is affected by a single mesh current. We still write a KCL for this current supply. The change comes while writing the KVL. Neither of the individual meshes will allow you to write a KVL in terms of the unknown mesh currents since both meshes contain the current supply. Therefore you will have to write the KVL around the two meshes taken together. Recall that Kirchhoff stated that the algebraic sum of voltages around a loop is zero. The path around the two meshes taken together is a loop and the voltages will sum to zero.

Let’s look at an example.

Example

Determine the mesh currents.

_images/mesh-super.svg

Let’s consider another example. In the previous example the KVL was written around the outside of the circuit. This may not always be possible. It is a better habit to write the KVL around the two meshes that are shared by the current supply as we will for the following example:

Example

Find the mesh currents.

_images/mesh-super-3.svg

I’ve already labeled the mesh currents and polarities to save time.

Mesh Analysis with Dependent Supplies#

I often describe dependent supplies as the one component we’ve covered thus far that I cannot pull out of a draw and put in your hands. Nevertheless, dependent supplies play an important role in analysis of modern electronics. Every transistor is modeled with a dependent supply during analysis. If you have a smart phone in your pocket right now, you have between one billion and two billion dependent supplies with you right now. Maybe you’re even using them to read this!

Mesh analysis does not change much from what we have done so far. The only change is the need to write an expression for the control variable of the dependent supply, and then substitute it into the system of equations.

Here’s an example

Example

_images/mesh-dependent.svg

Dependent supplies can also affect the KCL equations. Here is an example of that case:

Example

Find the mesh currents

_images/mesh-dependent-supers.svg

The Shortcut#

Mesh Analysis can be performed quickly in some cases. I am not inviting you to forget everything we just did. When I do things quickly I’m less confident in the result. However, with practice you can solve many circuit analysis problems using Mesh analysis in about a minute.

We can use mesh analysis on some problems by writing values directly into the matrix. In order to do this we must label all mesh currents in the same direction. I have the habit of marking all mesh currents in the clockwise direction but it works equally well in the counter-clockwise direction. This is not a requirement for Mesh Analysis but it makes this shortcut much less error-prone.

Basic Shortcut#

I’m comfortable using the shortcut on problems without dependent supplies. It is not impossible to use the shortcut on circuits with dependent supplies but I tend to slow down and make sure everything ends up in the right place for those circuits. I’ll address use of the shortcut for those problems in the next section. Here we’ll limit the discussion to those circuits without dependent supplies.

We begin by setting up a matrix and vector appropriate for the circuit being analyzed. In the case of the first problem we solved using Mesh analysis, we used a 2x2 matrix and a 2x1 vector. Let revisit that problem

Example

_images/mesh-toy-problem-mesh1.svg

I’m not going to explicitly state the questions for the next example. Try to use the previous example to anticipate how I will fill up the matrices for this analysis.

Example

_images/mesh-multiple-sources-shortcut.svg

Now the gloves are really off. I’ll fill out the matrices in a single line. Makes sure you can replicate the result.

Example

Find the mesh currents

_images/mesh-3-meshes-shortcut.svg

We can handle circuits that have current supplies using a similar approach. let’s take the first example as a circuit with a current supply that is not a super-mesh.

Example

Find the mesh currents

_images/mesh-current-supply-shortcut.svg

If current supplies are present in a circuit it is possible they create a super-loop. In the next example I’ll use the shortcut on a circuit with a current supply. The current supply will have two mesh currents flowing through it leading to a super-loop.

Example

Find the mesh currents

_images/mesh-super-shortcut.svg

Let’s try a circuit with a super-mesh that cuts through the intermediate branches

Example

Find the mesh currents.

_images/mesh-super-3-shortcut.svg

Advanced Shortcut#

I want you to read the word “Advanced” and think to yourself: I could very well screw this up. Our primary goal is to analyze the circuit correctly. Speed is only a secondary goal.

I am going to include two solutions for each of these problems. We can try to be true to the spirit of the “shortcut” and do everything simply by looking at the circuit and entering numbers into the matrices. This may be good to impress your friends but then we have to consider the type of friends you have.

This pure shortcut approach is error prone even for experienced circuit analyzers. I take a hybrid approach when analyzing circuits with dependent supplies. I use the shortcut for all of the equations that do not involve the dependent supply. Then I finish the problem by writing out the equation(s) that do involve the dependent supply and entering them in the matrices after a bit of algebra.

Like I said, I’ll show you both for the examples in this section.

Example

Find the mesh currents

_images/mesh-dependent-shortcut.svg

The shortcut can be used with a dependent current supply as well. Here is another example.

Example

Find the mesh currents

_images/mesh-dependent-supers-annotated-supermesh-shortcut.svg

Strategy for Mesh Analysis#

The examples I’ve worked are intended to teach you how to deal with the little oddities that arise when performing mesh analysis. If you master these you will be able to analyze most linear electric circuits. I’ve also shown you how to use the “shortcut” to perform mesh analysis quickly. With practice you may be able to analyze most circuits simply by looking at the circuit and using your calculator to build the system of equations.

Not all circuits require you to use the techniques introduced here. When I first begin analysis of a circuit I look for certain conditions and I make a plan to deal with them. I will do my best to summarize the strategy I use when analyzing a circuit.

  1. How many meshes? The number of meshes define how many unknowns will be part of the system and, therefore, how many equations you will have to write.

  2. Are there current supplies? Each current supply means you will write a KCL equation instead of a KVL. Also notice I say “current supply”. I don’t say “dependent supply” or “independent supply” since the type of current supply does not matter.

    a. Does the current supply touch a single mesh current? This is the simpler of the two conditions created by current supplies in the circuit. Just write a KCL for the current supply and skip the KVL for the mesh current that flows through the current supply.

    b. Does the current supply touch two mesh currents? This condition creates a “super-loop” or “super-mesh”. The KCL is written in the same way as the previous case. The difference here is found in how you will write one of the KVLs. Rather than writing a KVL around a single mesh you will write a KVL around two or more meshes. It is best if you write the KVL around the two meshes that flow through the current supply.

  3. Are there any dependent supplies? Look for diamond shaped supplies. It does not matter whether they are voltage or current supplies. Locate the control variable on the schematic and write an expression for it in terms of the unknown mesh currents. This expression is written in a similar manner to finding the output values of the analysis. You should use this expression anytime the control variable shows up in the system of equations.

  4. Write the equations If you’ve answered the questions above you should know which equations you will include in the system. Write them carefully and use good practice with regards to the signs and order of coefficients.

  5. Solve the system Matrix inversion works. So does row-reduced echelon form. If you’d like use software like MATLAB to solve the system. Just find the answer.

  6. Find output of analysis Once you know the mesh current you can find any other value in the circuit. The output of the analysis may take a few different forms.

    a. Is the value a current? If the value is a current you can write a KCL equation to find the output. Pay attention to the direction of the current as labeled on the schematic and which mesh currents touch that arrow.

    b. Is the value a voltage across a single passive component? If the value is a voltage across a passive component use a combination of KCL and Ohm’s law to find that voltage. Find the current as you did for the previous output type respecting passive sign convention for the labeled voltage polarity. Use that current and the resistance (or impedance in later chapters) to find the voltage. This is useful for finding voltages that are outputs of the analysis as well as finding voltages that are intermediate values for the next type of output value.

    c. Is the value a voltage across multiple components or a current supply? If the value is a voltage measured across multiple components or a component with an unknown resistance you will have to use a KVL. This means you have to find other voltages using the previous method. Write a KVL around a loop that includes the unknown voltage. Find all of the other voltages in the loop. Solve for the unknown voltage.