play phryzby with physics

Near a Long Straight Wire

solved MagneticFieldOfCurrents

Q. A long straight wire carries a current of 35 AI=35A. What is the magnitude of the field B at a point 20 cmd=20cm from the wire, in teslas?

d = 0.2 mB = ?I = 35 Acurrent out of the page
Inputs
I
35 A
d
20 cm
Outputs
fieldBw?

How it's solved

Solved with MagneticFieldOfCurrents

Given

  • I=35A
  • d=20cm

Find Bw.

Working
  1. d=20cm=0.2m
  2. field near a long straight wire(wire)Bw=μ0⋅I2⋅π⋅d
  3. Bw=1.25663706×10−6⋅352⋅3.14159265⋅0.2
  4. Bw=3.5×10−5T
  5. Bw≈3.5×10−5Tto 2 significant figures
Conclusion

The field circles a long straight wire and weakens in step with the distance from it.

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 :near_a_long_straight_wire do4  kind :numerical5  describes "A long straight wire carries a current of %{current}. %{field} at a point %{distance} from the wire, " \6            "in teslas?"7  given current: "35 A"8  given distance: "20 cm"9  asks field: "What is the magnitude of the field B"10end
solution.rb
1require_relative "../questions/near_a_long_straight_wire"2require_relative "../science/moving_charges_and_magnetism/magnetic_field_of_currents"34solve :near_a_long_straight_wire, using: MagneticFieldOfCurrents do5  objects :wire67  take current: wire.current8  take distance: wire.distance_from_the_wire910  field = wire.field_near_a_wire11  answer field:, in: "T", figures: 21213  conclusion "The field circles a long straight wire and weakens in step with the distance from it."14end
playground.rb
1require_relative "../solutions/near_a_long_straight_wire"23play_with :near_a_long_straight_wire do4  title "Near a Long Straight Wire"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 wireBcT—
turns of wireN——
current of wireIA—
radius of wireRm—
turns per length of groundngm⁻¹—
length of the coil of groundLgm—
turns per length of wirenm⁻¹—
length of the coil of wireLm—
field near a wire of groundBw,gT—
distance from the wire of grounddgm—
field near a wire of wireBwT—
distance from the wire of wiredm—
field inside of groundBs,gT—
field inside of wireBsT—
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(wire)
ng=NgLg
turns on each metre(ground)
n=NL
turns on each metre(wire)
Bw,g=μ0⋅Ig2⋅π⋅dg
field near a long straight wire(ground)
Bw=μ0⋅I2⋅π⋅d
field near a long straight wire(wire)
Bs,g=μ0⋅ng⋅Ig
field inside a long solenoid(ground)
Bs=μ0⋅n⋅I
field inside a long solenoid(wire)