Magnetic Field of a Solenoid: Difference between revisions

From Physics Book
Jump to navigation Jump to search
No edit summary
Line 23: Line 23:


===A Computational Model===
===A Computational Model===
A solenoid has a length of .5 meters and a radius of .03 meters and wound around 50 times a wire that has a current of 1 ampere. Find the magnetic field vectors.
from visual import ∗


scene . width=1024 scene.x = scene.y = 0


scene . background = color . white


==Examples==
L = 0.5


To solve for the magnetic field of a solenoid, you can use a four step process.  
R = 0.03


Step 1: Cut up the distribution into pieces and Draw the <math>\Delta \vec{B}</math>,
kmag = 1e-7
Think about this: a solenoid the length of L that's made up for N circular loops tightly wound, each with a radius of R and a conventional current in the loops is I.


We want to find the magnetic field contributed by each of the loops at any location along the axis of the solenoid.
I = 1


(picture)
Nturns=50. ## number of turns in solenoid


Step 2: Write an Equation for the Magnetic Field Because of One Piece.  
Nelts=20. ## number of line segments per turn
The origin is located at the center of the solenoid.
We find the integration variable <math>\Delta {x}</math>, which is given by the location of a single piece. d-x is given by the distance from the loop to the observation location. 


(picture)
bscale = 600. ## scale factor for B arrows


We also have to consider the number of loops so there are N/L loops so the loops per <math>\Delta {x}</math> is (N/L)<math>\Delta {x}</math>.
## make a solenoid
So from the magnetic field formula we have this so far:


(picture)
dxx = L/(Nturns∗Nelts)


Step 3: Add Up the Contributions of All the Pieces.
xx = arange(L/2., L/2+dxx, dxx)
Turn the equation we have so far into an integral and solve out the integral.  


(picture)
omega = 2∗pi∗Nturns/L


==Connectedness==
solenoid = curve(x=xx, y=R∗sin(xx∗omega), z=R∗cos(xx∗omega), color=(.9,.7,0),radius =0.001)
Solenoids have many applications and they are a very common aspect of our daily lives. They can be found in electric locking mechanisms, medical equipment, cars, air conditioning systems, as well as many other devices.  
To learn more about the applications of Solenoids in detail, you can go to this internal link: [[Solenoid Applications]]


==History==


Put this idea in historical context. Give the reader the Who, What, When, Where, and Why.
## make a list of zero lth arrows at observation locations


== See also ==
Barrows =[] ## empty list
[[Solenoid Applications]]


[[Ampere's Law]]
dx = L/4.


[[Right Hand Rule]]
zz=0.


[[Magnetic Field of a Loop]]
for x in arange(
 
 
===Further reading===
 
Books, Articles or other print media on this topic
 
===External links===
[http://www.scientificamerican.com/article/bring-science-home-reaction-time/]
 
 
==References==
 
This section contains the the references you used while writing this page
 
[[Category:Which Category did you place this in?]]

Revision as of 12:24, 5 December 2015

Created by ramin8 !!

A Solenoid is a type of electromagnet, which consists of a coil tightly wound into a helix. Usually it produces a uniform magnetic field when an electric current is run through it. The purpose of a solenoid is to create a controlled magnetic field.


The Main Idea

The purpose of this application is to explore another way to apply the Biot-Sarvart law. The magnetic field is uniform along the axis of the solenoid, when electric current is run through it. The solenoid has has to have coils much larger than the radius.


A Mathematical Model

This is the formula for the magnetic field inside a long solenoid: [math]\displaystyle{ B = {\mu _{0}} \frac{NI}{L} }[/math] This formula is used inside a long solenoid, when the radius of the solenoid is much smaller than the length. B is the magnetic field. [math]\displaystyle{ {\mu _{0}} }[/math] is a constant. N is the number of loops in the solenoid. L is the length of the solenoid.

To determine the direction of the magnetic field: use your right hand and curl your fingers towards the direction of the current and the direction that your thumb is pointing to is the direction of the magnetic field.


A Computational Model

A solenoid has a length of .5 meters and a radius of .03 meters and wound around 50 times a wire that has a current of 1 ampere. Find the magnetic field vectors. from visual import ∗

scene . width=1024 scene.x = scene.y = 0

scene . background = color . white

L = 0.5

R = 0.03

kmag = 1e-7

I = 1

Nturns=50. ## number of turns in solenoid

Nelts=20. ## number of line segments per turn

bscale = 600. ## scale factor for B arrows

    1. make a solenoid

dxx = L/(Nturns∗Nelts)

xx = arange(L/2., L/2+dxx, dxx)

omega = 2∗pi∗Nturns/L

solenoid = curve(x=xx, y=R∗sin(xx∗omega), z=R∗cos(xx∗omega), color=(.9,.7,0),radius =0.001)


    1. make a list of zero lth arrows at observation locations

Barrows =[] ## empty list

dx = L/4.

zz=0.

for x in arange(