Non-Uniform Magnetic Field Calculations

In summary, "Non-Uniform Magnetic Field Calculations" involves determining the magnetic field strength and direction in regions where the magnetic field varies spatially. Key concepts include the use of vector calculus to analyze magnetic field lines, the application of the Biot-Savart Law for calculating the magnetic field produced by current-carrying conductors, and the importance of understanding magnetic flux and its relation to electromagnetic induction. Techniques such as numerical methods and simulations are often employed to solve complex configurations, allowing for practical applications in engineering and physics.
  • #1
Lachlan
7
1
Thread moved from the technical forums to the schoolwork forums
TL;DR Summary: Need help with figuring out how (or even if I can) to calculate the magnetic field field strength for this non-uniform magnetic field.

1714115972632.png
I need help calculating the magnetic field strength (if it's possible) in the space between these two solenoids. It is for my year 12 depth study, and I need it to compare it the measured values I obtained experimentally with a magnetic field probe, and visual direction vectors obtained with compasses. If it's not possible to calculate then that's fine, but if it is then whatever you might know can help because I can put that in the report still. I have all the dimensions for the solenoids I used in my experiment and the voltage and current if that helps too.

Any knowledge is helpful, thanks very much.
 
Physics news on Phys.org
  • #2
I don't have a mathematical theorem in mind but I believe this is a problem with no "closed form solution". This is to say your only going to be able to calculate the field using numerical computations.
I suggest you search "magnetic field software" on your favorite search engine.
 
  • Like
Likes robphy and Lachlan
  • #3
The field strength on axis (the straight line across the middle of your diagram) is fairly straightforward and googling "magnetic field on axis of solenoid" will get you good results - equation 12.7.6 here for example. Off-axis, you need elliptic integrals for a single current loop (equations 12-14 in the PDF found here) and then to integrate the result over the two solenoids. It's not impossible to do if you're a confident python programmer (other languages are available, but I know it can be done in python), but it's not simple either.

Does the program you took the screenshot from not give you field strengths? As jambaugh has just commented, it's easier if you can find off-the-shelf software to do it for you.
 
  • Like
Likes robphy, berkeman and Lachlan
  • #4
Ibix said:
The field strength on axis (the straight line across the middle of your diagram) is fairly straightforward and googling "magnetic field on axis of solenoid" will get you good results - equation 12.7.6 here for example. Off-axis, you need elliptic integrals for a single current loop (equations 12-14 in the PDF found here) and then to integrate the result over the two solenoids. It's not impossible to do if you're a confident python programmer (other languages are available, but I know it can be done in python), but it's not simple either.

Does the program you took the screenshot from not give you field strengths? As jambaugh has just commented, it's easier if you can find off-the-shelf software to do it for you.
I found the picture here - http://www.msmedia.com.au/physics/magnetism-3d-sample-screens.html
It seemed to be the only picture that I could find that showed the magnetic flux connection between 2 solenoids, and that's what I'm writing my report on. The program listed is magnetism 3D, and at a cost of $80 isn't something I'd particularly want to spend my money on considering it is just for school, and it requires a windows PC which I don't have. I'd like to able able to do it, but because of time constraints as well I just don't think it's an option. I've looked at a few other program/simulation things, but they all seem to run on windows which doesn't really work for me because I'm also not trying to get windows through bootcamp on my mac.

For the maths, taking one look at it really just blows my mind, I'll take as good as a crack at it as I can so thank you very much for linking it.

Any suggestions for free programs that'll work on mac easy for this in that situation? Also probably helpful mentioning I can't program at all. Yeah I know it seems like I've got quite a few roadblocks here so I completely get it if there's nothing I can do, but whatever suggestions you have help. I have data also from a magnetic field probe of the magnetic field strength along the axis of the solenoid, if that helps.

Thanks for all the help.
 
  • #5
If you have some on-axis measurements (or can go back to the lab and get some) the on-axis maths should be manageable for you - you don't need to do the integral, just use the formula after the last equals sign. The off-axis formula is probably out of your reach if you can't program, I'm afraid - numerical integration can be done on paper or supported by Excel and Wolfram Alpha but it requires a fair amount of planning and I wouldn't jump in to the topic with elliptic integrals as a first example.

I don't know anything about magnetic field modelling software I'm afraid. Try googling, including the word "free" or "student" or "education". It isn't uncommon for some pretty good software to be available on 30-day trial or free/cheap for personal/educational use. Also check with your teacher if they can install stuff on school laptops if you can't find it for Mac.
 
  • Like
Likes Lachlan
  • #6
Ibix said:
If you have some on-axis measurements (or can go back to the lab and get some) the on-axis maths should be manageable for you - you don't need to do the integral, just use the formula after the last equals sign. The off-axis formula is probably out of your reach if you can't program, I'm afraid - numerical integration can be done on paper or supported by Excel and Wolfram Alpha but it requires a fair amount of planning and I wouldn't jump in to the topic with elliptic integrals as a first example.

I don't know anything about magnetic field modelling software I'm afraid. Try googling, including the word "free" or "student" or "education". It isn't uncommon for some pretty good software to be available on 30-day trial or free/cheap for personal/educational use. Also check with your teacher if they can install stuff on school laptops if you can't find it for Mac.
The maths for the on axis equation is definitely manageable, could it be assumed that up until the point evenly in between both solenoids (the middle of the straight line across the middle) there is only magnetic flux from the right solenoid involved? And then the reverse for the other half, that it's only the flux from the left solenoid? Or would you need to calculate the flux from both solenoids and then add it together?
 
  • #7
You can't neglect the other solenoid's field, no, but yes you can just calculate the field from each solenoid and add them together.

I would use a spreadsheet. Make a column of ##x## values (or whatever you want to call position along the axis), a column of the corresponding ##\sin\theta_1## and ##\sin\theta_2## values for the first solenoid and a column for its field. Then ditto the second pair of ##\theta##s and the field. Then a final column adding together the fields. You should be able to enter the formulas once for each column then copy them, so as long as you get the formula right once you reduce the chances of making silly computational errors later.

You can do a lot of sanity checking with that approach. You can plot the ##\sin\theta## values - do they look reasonable? They should all look the same, just shifted along the ##x## axis (assuming your solenoids were identical). Then you can plot the ##B## field from each solenoid - again, should be the same if your solenoids are identical, just shifted along the ##x## axis.
 
  • Like
Likes Lachlan
  • #8
You could start here

with a current loop... and do the calculation at points of your choosing.
https://www.glowscript.org/#/user/m...matterandinteractions/program/17-B-loop-xy-xz
which uses the Biot-Savart Law.

1714246268453.png


Then use superposition of several rings to approximate a solenoid,
then two such solenoids
with the appropriate sizes and locations and currents to model your situation.

You can output the field calculations at points of interest to the console,
formatted in a way to allow easier export to other software.
(For example, I output results from glowscript/webvpython to a comma-separated list
that I can copy-paste into a cell in a desmos script).

Consult the examples at
https://glowscript.org/#/user/GlowScriptDemos/folder/matterandinteractions/
17-Bwire-with-r Magnetic field of a wire
17-B-loop-with-r-dB Magnetic field of a ring, one step at a time
17-B-loop-xy-xz Display magnetic field of a ring, in two planes
17-toroid Magnetic field of a toroid

For interactive visualization purposes,
there are nice visualizations at
https://www.falstad.com/vector3dm/
select "Display: Field Lines"
then
select solenoid
or
select "loop pair stacked" and increase the "Loop Separation"
 
Last edited:
  • #9
Ibix said:
You can't neglect the other solenoid's field, no, but yes you can just calculate the field from each solenoid and add them together.

I would use a spreadsheet. Make a column of ##x## values (or whatever you want to call position along the axis), a column of the corresponding ##\sin\theta_1## and ##\sin\theta_2## values for the first solenoid and a column for its field. Then ditto the second pair of ##\theta##s and the field. Then a final column adding together the fields. You should be able to enter the formulas once for each column then copy them, so as long as you get the formula right once you reduce the chances of making silly computational errors later.

You can do a lot of sanity checking with that approach. You can plot the ##\sin\theta## values - do they look reasonable? They should all look the same, just shifted along the ##x## axis (assuming your solenoids were identical). Then you can plot the ##B## field from each solenoid - again, should be the same if your solenoids are identical, just shifted along the ##x## axis.
Alright that sounds like a good approach, thank you very much. I'll put that together.

Thanks very much.
 
  • Like
Likes Ibix
  • #10

FAQ: Non-Uniform Magnetic Field Calculations

What is a non-uniform magnetic field?

A non-uniform magnetic field is a magnetic field that varies in strength and direction at different points in space. Unlike a uniform magnetic field, where the magnetic field lines are parallel and evenly spaced, a non-uniform magnetic field has field lines that may be closer together in some regions and further apart in others, indicating variations in magnetic field strength.

How do you calculate the magnetic field strength in a non-uniform magnetic field?

To calculate the magnetic field strength in a non-uniform magnetic field, you typically use the magnetic field equations derived from Maxwell's equations or empirical measurements. The strength can be determined using vector calculus, integrating the contributions from various sources (like current-carrying wires or magnetic materials) and taking into account the spatial variations of the field.

What is the significance of the gradient of a magnetic field?

The gradient of a magnetic field indicates how the magnetic field strength changes with position. It is a vector that points in the direction of the greatest rate of increase of the magnetic field and its magnitude represents how quickly the field strength is changing. This is important for understanding forces on charged particles and magnetic materials within the field.

How do you determine the force on a charged particle in a non-uniform magnetic field?

The force on a charged particle in a non-uniform magnetic field can be calculated using the Lorentz force equation: F = q(v × B), where F is the force, q is the charge of the particle, v is its velocity vector, and B is the magnetic field vector. In a non-uniform field, the field B may change with position, so the force can also depend on the gradient of the magnetic field.

What are some applications of non-uniform magnetic fields?

Non-uniform magnetic fields have various applications, including in magnetic resonance imaging (MRI), where they are used to create detailed images of the inside of the body; in particle accelerators, where they help steer and focus particle beams; and in magnetic trapping systems for cold atoms, where they can be used to manipulate and study quantum states.

Back
Top