Mesh analysis
Mesh analysis is a circuit analysis method for planar circuits; planar circuits are circuits that can be drawn on a plane surface with no wires crossing each other. A more general technique, called loop analysis can be applied to any circuit, planar or not.
Mesh analysis and loop analysis both make systematic use of Kirchhoff’s voltage law to arrive at a set of equations guaranteed to be solvable if the circuit has a solution. Similarly, nodal analysis is a systematic application of Kirchhoff's current law. Mesh analysis is usually easier to use when the circuit is planar, compared to loop analysis.
Mesh currents and essential meshes
Mesh analysis works by arbitrarily assigning mesh currents in the essential meshes. An essential mesh is a loop in the circuit that does not contain any other loop. Figure 1 labels the essential meshes with one, two, and three.A mesh current is a current that loops around the essential mesh and the equations are solved in terms of them. A mesh current may not correspond to any physically flowing current, but the physical currents are easily found from them. It is usual practice to have all the mesh currents loop in the same direction. This helps prevent errors when writing out the equations. The convention is to have all the mesh currents looping in a clockwise direction. Figure 2 shows the same circuit from Figure 1 with the mesh currents labeled.
Solving for mesh currents instead of directly applying Kirchhoff's current law and Kirchhoff's voltage law can greatly reduce the amount of calculation required. This is because there are fewer mesh currents than there are physical branch currents. In figure 2 for example, there are six branch currents but only three mesh currents.
Setting up the equations
Each mesh produces one equation. These equations are the sum of the voltage drops in a complete loop of the mesh current. For problems more general than those including current and voltage sources, the voltage drops will be the impedance of the electronic component multiplied by the mesh current in that loop.If a voltage source is present within the mesh loop, the voltage at the source is either added or subtracted depending on if it is a voltage drop or a voltage rise in the direction of the mesh current. For a current source that is not contained between two meshes, the mesh current will take the positive or negative value of the current source depending on if the mesh current is in the same or opposite direction of the current source. The following is the same circuit from above with the equations needed to solve for all the currents in the circuit.
Once the equations are found, the system of linear equations can be solved by using any technique to solve linear equations.