Magnetic field of cylinder with coils problem?

Click For Summary
SUMMARY

The discussion focuses on calculating the magnetic field along the centerline of a non-magnetic cylinder with three coils wrapped around it. The user is tasked with writing a program that takes inputs for the cylinder diameter (Dcyl), wire diameters (dcoil1-dcoil3), currents (I1-I3), number of turns (N1-N3), and cylinder length (l) to plot the magnetic field (Bz) against the z-axis. Key equations include Bz = (μ0 * N * I) / L for each coil, and the total magnetic field for identical coils is confirmed to be Bz = 9 * μ0 * N * I. The discussion emphasizes the importance of understanding how coil parameters affect the magnetic field.

PREREQUISITES
  • Understanding of magnetic fields and solenoids
  • Familiarity with programming for data visualization
  • Knowledge of the Biot-Savart law and Ampère's circuital law
  • Basic principles of electromagnetism
NEXT STEPS
  • Research the Biot-Savart law for calculating magnetic fields from current-carrying wires
  • Learn about the effects of coil diameter on magnetic field strength
  • Explore programming libraries for plotting in Python, such as Matplotlib
  • Study the concept of superposition in magnetic fields for multiple coils
USEFUL FOR

Students in physics or engineering courses, educators teaching electromagnetism, and programmers developing simulations of magnetic fields.

asdf12312
Messages
198
Reaction score
1

Homework Statement


Untitled.png

In the picture in the figure, three coils are tightly wrapped around a non-magnetic cylinder of diameter Dcyl. Each coil is defined through the diameter of each wire comprising the coil, dcoil1-dcoil3, the current going through each coil, I1-I3, and the number of turns in each coil, N1 – N3. In addition, each coil extends a length equal to a 1/3 the length of the cylinder. Write a program that defines the magnetic field in the centerline of the cylinder (on the z axis) and plots it against z (from –l to l, where l is the length of the cylinder). Note that the cylinder extends from –l/2 to l/2.

The user inputs values for Dcyl, dcoil1, dcoil2, dcoil3, N1, N2, N3, I1, I2, I3, and l.

The program outputs a graph of Bz vs z from –l to l for:
1. All coils identical – same current I, same diameter, same number of coils. This should give you an answer identical to the case of one coil with current I and number of coils equal to 3N. Confirm.

2. Each coil activated separately – so, I1=I while I2=I3=0, etc. If, in each case you use the same I and N to define each coil, how do you expect the results to compare with each other. Are your results reasonable?

3. Two combinations of I1, I2, and I3, including at least one where the currents are going in different directions.

Homework Equations

The Attempt at a Solution


can someone please help me i don't understand this! I think the magnetic field of cylinder is something like B= u0*I / (2*pi*r) but I'm not sure!
 
Physics news on Phys.org
asdf12312 said:
In the picture in the figure, three coils are tightly wrapped around a non-magnetic cylinder of diameter Dcyl. Each coil is defined through the diameter of each wire comprising the coil, dcoil1-dcoil3, the current going through each coil, I1-I3, and the number of turns in each coil, N1 – N3. In addition, each coil extends a length equal to a 1/3 the length of the cylinder. Write a program that defines the magnetic field in the centerline of the cylinder (on the z axis) and plots it against z (from –l to l, where l is the length of the cylinder). Note that the cylinder extends from –l/2 to l/2.

The user inputs values for Dcyl, dcoil1, dcoil2, dcoil3, N1, N2, N3, I1, I2, I3, and l.

The program outputs a graph of Bz vs z from –l to l for:
1. All coils identical – same current I, same diameter, same number of coils. This should give you an answer identical to the case of one coil with current I and number of coils equal to 3N. Confirm.

2. Each coil activated separately – so, I1=I while I2=I3=0, etc. If, in each case you use the same I and N to define each coil, how do you expect the results to compare with each other. Are your results reasonable?

3. Two combinations of I1, I2, and I3, including at least one where the currents are going in different directions.

Homework Equations


I've highlighted the starting points for you.
asdf12312 said:
I think the magnetic field of cylinder is something like B= u0*I / (2*pi*r) but I'm not sure!
Check your class notes or the textbook, or look for "magnetic field of a solenoid" and become sure.

Do not ever let a page long problem statement intimidate you. Just work your way through it one line at a time.
 
  • Like
Likes   Reactions: Captain1024
I guess I'm confused because I don't understand how diameters matter in finding the B field. Also does the Bz = (u0*N*I)/L equation apply to whole cylinder or to each wire/coil too? For part 1) I get if all coils are identical, the B field through each is same so total B field is Bz=B1+B2+B3 or Bz= 3((u0*N*I)/(1/3)) = 9*u0*N*I. this is same answer I also get for case of only one coil with number of coils equal to 3N.

by the way, why do we need the diameters if they don't affect Bz at all?
 
asdf12312 said:
by the way, why do we need the diameters if they don't affect Bz at all?
Problem statements may be written for you to sort what is necessary from what is not; or to find missing information.

asdf12312 said:
Also does the Bz = (u0*N*I)/L equation apply to whole cylinder or to each wire/coil too?
Yes.
asdf12312 said:
For part 1) I get if all coils are identical, the B field through each is same so total B field is Bz=B1+B2+B3 or Bz= 3((u0*N*I)/(1/3)) = 9*u0*N*I. this is same answer I also get for case of only one coil with number of coils equal to 3N.
Okay, you've "confirmed" part 1.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 26 ·
Replies
26
Views
3K
Replies
5
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 27 ·
Replies
27
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K