Off-axis Magnetic Field of Current loop (MATLAB?)

Click For Summary

Discussion Overview

The discussion revolves around calculating the magnetic field components at a point off the axis of a current loop using MATLAB. Participants explore methods for numerical integration and the challenges associated with finding a solution, including references to elliptic integrals and numerical approximations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks guidance on calculating the magnetic field at a point (x, y, z) off the axis of a current loop, mentioning the use of MATLAB and Excel.
  • Another participant suggests that the problem involves elliptic integrals and may require numerical approximations.
  • A participant clarifies that the solution cannot be solved analytically and will involve an infinite series, emphasizing the need for numerical methods to approximate the solution.
  • One user shares their experience using Fortran for similar calculations, indicating that they can compute magnetic fields for various loop geometries.
  • A later reply provides a link to a resource for MATLAB equations and mentions the use of the ellipke function for calculating complete elliptic integrals.

Areas of Agreement / Disagreement

Participants express differing views on the nature of the solution, with some emphasizing the need for numerical methods and approximations, while others provide specific MATLAB resources. There is no consensus on a single approach or solution method.

Contextual Notes

The discussion highlights the complexity of the problem, including the reliance on elliptic integrals and the limitations of analytical solutions. There are references to specific mathematical techniques and resources that may not be universally applicable.

dave_western
Messages
5
Reaction score
0
I have checked the forums for similar problems and have only seen that one would use 'MATLAB' to perform this integration.

All I want to do is find the 3 components of the magnetic field at a point (x, y, z) off of the axis of a current loop (given current, radius and that the loop lies on the xy plane centered at the origin).

Can someone point me in the right direction to even get started on this problem? I have been told that this is achievable in Excel!

Any help would be awesome!
 
Physics news on Phys.org
If I'm not mistaken, this would involve a so-called "elliptic integral".
You may have to resort to numerical approximations.
 
I was hoping that would be the case, but I haven't had any luck finding a numerical approximation for a circle.

Diameter=1m
Centered on origin
Lying on x-y plane

Can anyone help?
 
I don't think you're understanding this correctly. When robphy said that you have to do numerical approximations, what he meant was that the solution to that problem cannot be solved analytically. Furthermore, you won't have a simple, closed form solution. What you will have is an infinite series.

So you have to solve the differential equation numerically and obtain an approximate answer based on where you truncate the series. It doesn't mean that you find a "numerical approximation for a circle".

Please refer to Jackson's classic text on this where this example is illustrated using Green's function technique.

Zz.
 
i use simple code written in fortran for calculating magnetic fields in the space due to any shaped current carrying loop,,,,,just give the input file with geometry of the loop as a summation of straight and arcs and ask the magnetic field in the space in RZT or XYZ system,,,that's it...i use to calculate the fields due to PF and TF coil system in a tokamak
 
This was posted years ago, but incase someone else is searching through this (as I was), you can use Matlab quite easily to calculate this.

You can use the equations found here:

http://www.netdenizen.com/emagnet/offaxis/iloopoffaxis.htm

They are simple equations which you just plug in the values for the variables. The only confusing thing is the complete elliptic integrals which Matlab can also calculate for you.

Use the Matlab function [K,E] = ellipke(k^2) to calculate the complete elliptic integrals of the first and second kind, E(k) and K(k).

Remember to give k^2 as the argument in Matlab function. If you're confused type "help ellipke" in the Matlab command line.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
Replies
4
Views
1K
Replies
7
Views
2K
Replies
2
Views
1K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
8
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K