play phryzby with physics

Inside a Solenoid

solved MagneticFieldOfCurrents

Q. A solenoid of length 0.5 mL=0.5m has a radius of 1 cm and is made up of 500N=500 turns. It carries a current of 5 AI=5A. What is the magnitude of the magnetic field inside the solenoid, in teslas?

B = ?I = 5 AL = 0.5 mnN = 500
Inputs
L
0.50 m
N
500
I
5 A
Outputs
fieldBs?

How it's solved

Solved with MagneticFieldOfCurrents

Given

  • L=0.5m
  • N=500
  • I=5A

Find Bs.

Working
  1. turns on each metre(solenoid)n=NL
  2. n=5000.5
  3. n=1000m⁻¹
  4. field inside a long solenoid(solenoid)Bs=μ0⋅n⋅I
  5. Bs=1.25663706×10−6⋅1000⋅5
  6. Bs=0.006283T
  7. Bs≈0.00628Tto 3 significant figures
Conclusion

Inside a long solenoid the field is even, set only by the turns on each metre and the current.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :inside_a_solenoid do4  kind :numerical5  describes "A solenoid of length %{length} has a radius of 1 cm and is made up of %{turns} turns. It carries a " \6            "current of %{current}. %{field}, in teslas?"7  given length: "0.5 m"8  given turns: "500"9  given current: "5 A"10  asks field: "What is the magnitude of the magnetic field inside the solenoid"11end
solution.rb
1require_relative "../questions/inside_a_solenoid"2require_relative "../science/moving_charges_and_magnetism/magnetic_field_of_currents"34solve :inside_a_solenoid, using: MagneticFieldOfCurrents do5  objects :solenoid67  take length: solenoid.length_of_the_coil8  take turns: solenoid.turns9  take current: solenoid.current1011  field = solenoid.field_inside12  answer field:, in: "T", figures: 31314  conclusion "Inside a long solenoid the field is even, set only by the turns on each metre and the current."15end
playground.rb
1require_relative "../solutions/inside_a_solenoid"23play_with :inside_a_solenoid do4  title "Inside a Solenoid"5end
The laws it drew on
quantitywrittenunitswithinfrom
piπ—0 … ∞MagneticFieldOfCurrents
permeability of free spaceμ0N/A²—MagneticFieldOfCurrents
currentIA—MagneticFieldOfCurrents
turnsN——MagneticFieldOfCurrents
radiusRm—MagneticFieldOfCurrents
length of the coilLm—MagneticFieldOfCurrents
turns per lengthnm⁻¹—MagneticFieldOfCurrents
field at the centreBcT—MagneticFieldOfCurrents
field insideBsT—MagneticFieldOfCurrents
distance from the wiredm—MagneticFieldOfCurrents
field near a wireBwT—MagneticFieldOfCurrents
field at the centre of groundBc,gT—
turns of groundNg——
current of groundIgA—
radius of groundRgm—
field at the centre of solenoidBcT—
turns of solenoidN——
current of solenoidIA—
radius of solenoidRm—
turns per length of groundngm⁻¹—
length of the coil of groundLgm—
turns per length of solenoidnm⁻¹—
length of the coil of solenoidLm—
field near a wire of groundBw,gT—
distance from the wire of grounddgm—
field near a wire of solenoidBwT—
distance from the wire of solenoiddm—
field inside of groundBs,gT—
field inside of solenoidBsT—
Bc,c=μ0⋅Nc⋅Ic2⋅Rc
field at the centre of a coil
nc=NcLc
turns on each metre
Bw,w=μ0⋅Iw2⋅π⋅dw
field near a long straight wire
Bs,c=μ0⋅nc⋅Ic
field inside a long solenoid
Bc,g=μ0⋅Ng⋅Ig2⋅Rg
field at the centre of a coil(ground)
Bc=μ0⋅N⋅I2⋅R
field at the centre of a coil(solenoid)
ng=NgLg
turns on each metre(ground)
n=NL
turns on each metre(solenoid)
Bw,g=μ0⋅Ig2⋅π⋅dg
field near a long straight wire(ground)
Bw=μ0⋅I2⋅π⋅d
field near a long straight wire(solenoid)
Bs,g=μ0⋅ng⋅Ig
field inside a long solenoid(ground)
Bs=μ0⋅n⋅I
field inside a long solenoid(solenoid)