184_notes:b_sup_comp

# Differences

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

 184_notes:b_sup_comp [2021/06/16 15:09]bartonmo [How can we use a computer for this?] 184_notes:b_sup_comp [2021/06/16 15:16] (current)bartonmo 2021/06/16 15:16 bartonmo 2021/06/16 15:09 bartonmo [How can we use a computer for this?] 2020/08/23 17:42 dmcpadden 2018/07/03 09:28 curdemma 2018/05/15 12:36 curdemma 2018/03/15 10:29 dmcpadden [How can we use a computer for this?] 2018/03/06 14:12 dmcpadden 2018/03/06 14:11 dmcpadden 2018/03/06 13:17 dmcpadden created 2021/06/16 15:16 bartonmo 2021/06/16 15:09 bartonmo [How can we use a computer for this?] 2020/08/23 17:42 dmcpadden 2018/07/03 09:28 curdemma 2018/05/15 12:36 curdemma 2018/03/15 10:29 dmcpadden [How can we use a computer for this?] 2018/03/06 14:12 dmcpadden 2018/03/06 14:11 dmcpadden 2018/03/06 13:17 dmcpadden created Line 13: Line 13: While calculating the integral will give you an exact value for the magnetic field, it is possible to end up with an integral that is difficult or impossible to solve. Instead we can use the fact that the magnetic field obeys the principle of superposition to define a powerful algorithm for computing the magnetic field at any given location from any shape of current/wire. This is very similar to what we did with the [[184_notes:comp_super|electric field from a line before]]. In these notes, you will read about how you can structure code to calculate the magnetic field from any shape of current-carrying wire. While calculating the integral will give you an exact value for the magnetic field, it is possible to end up with an integral that is difficult or impossible to solve. Instead we can use the fact that the magnetic field obeys the principle of superposition to define a powerful algorithm for computing the magnetic field at any given location from any shape of current/wire. This is very similar to what we did with the [[184_notes:comp_super|electric field from a line before]]. In these notes, you will read about how you can structure code to calculate the magnetic field from any shape of current-carrying wire. - ==== The Superposition Principle ==== + ===== The Superposition Principle ===== [[184_notes:b_current|As we said before]], the principle of superposition states that the magnetic field at any given location in space is determined by vector sum of the magnetic field due to the current in each part of wire. [[184_notes:b_current|As we said before]], the principle of superposition states that the magnetic field at any given location in space is determined by vector sum of the magnetic field due to the current in each part of wire. Line 21: Line 21: where $\vec{B}_1$ would be the magnetic field from one piece of the wire, $\vec{B}_2$ would be the magnetic field from a second piece of the wire, and so on. This idea of adding together the magnetic field from each chunk of the wire will form the basis of what we want the computer to calculate for us. where $\vec{B}_1$ would be the magnetic field from one piece of the wire, $\vec{B}_2$ would be the magnetic field from a second piece of the wire, and so on. This idea of adding together the magnetic field from each chunk of the wire will form the basis of what we want the computer to calculate for us. - ==== How can we use a computer for this? ==== + ===== How can we use a computer for this? ===== For most real-world situations, the magnetic field integral cannot be solved analytically. That is, you could most likely write down the integral, but it cannot be computed because there's no anti-derivative for the function that you would be trying to integrate. So we have to think of another approach -- one that makes use of the principle of superposition, which we know the magnetic field obeys. For most real-world situations, the magnetic field integral cannot be solved analytically. That is, you could most likely write down the integral, but it cannot be computed because there's no anti-derivative for the function that you would be trying to integrate. So we have to think of another approach -- one that makes use of the principle of superposition, which we know the magnetic field obeys.
• 184_notes/b_sup_comp.txt