play phryzby with physics

Two Parallel Wires

solved MagneticFieldOfCurrents · MagneticForce

Q. Two long and parallel straight wiresB=Bw,b A and B carrying currents of 8.0 AIa=8.0A and 5.0 AIb=5.0A in the same direction are separated by a distance of 4.0 cmdb=4.0cm. Estimate the force on a 10 cm section of wire Ala=10cm, in newtons?

A: I₁ = 8 AB: I₂ = 5 Ad = 0.04 mF = ?l = 0.1 mB
Inputs
Ia
8 A
Ib
5 A
db
4 cm
Outputs
forceFa?

How it's solved

Solved with MagneticFieldOfCurrents, MagneticForce

Given

  • Ia=8.0A
  • Ib=5.0A
  • db=4.0cm
  • la=10cm from “a 10 cm section of wire A”
  • B=Bw,b from “parallel straight wires”

Find Fa.

Working
  1. db=4.0cm=0.04m
  2. la=10cm=0.1m
  3. field near a long straight wire(b)Bw,b=μ0⋅Ib2⋅π⋅db
  4. Bw,b=1.25663706×10−6⋅52⋅3.14159265⋅0.04
  5. Bw,b=2.5×10−5T
  6. parallel straight wiresmagneticfield=Bw,b
  7. magneticfield=2.5×10−5
  8. B=2.5×10−5T
  9. force on a wire across a field(a)Fa=Ia⋅la⋅B
  10. Fa=8⋅0.1⋅2.5×10−5
  11. Fa=2×10−5N
  12. Fa≈2×10−5Nto 1 significant figure
Conclusion

Wire B's field circles it and crosses wire A square on, pushing on A's current; currents in the same direction pull together.

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 :two_parallel_wires do4  kind :numerical5  describes "Two long and parallel straight wires A and B carrying currents of %{current_a} and %{current_b} in the " \6            "same direction are separated by a distance of %{apart}. %{force}, in newtons?"7  given current_a: "8.0 A"8  given current_b: "5.0 A"9  given apart: "4.0 cm"10  asks force: "Estimate the force on a 10 cm section of wire A"11end
solution.rb
1require_relative "../questions/two_parallel_wires"2require_relative "../science/moving_charges_and_magnetism/magnetic_field_of_currents"3require_relative "../science/moving_charges_and_magnetism/magnetic_force"45solve :two_parallel_wires, using: [ MagneticFieldOfCurrents, MagneticForce ] do6  objects :a, :b78  take current_a: a.current9  take current_b: b.current10  take apart: b.distance_from_the_wire1112  deduce_from "parallel straight wires", B => b.field_near_a_wire13  deduce_from "a 10 cm section of wire A", a.length_in_the_field => "10 cm"1415  force = a.force_on_a_wire16  answer force:, in: "N", figures: 11718  conclusion "Wire B's field circles it and crosses wire A square on, pushing on A's current; currents in the " \19             "same direction pull together."20end
playground.rb
1require_relative "../solutions/two_parallel_wires"23play_with :two_parallel_wires do4  title "Two Parallel Wires"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
elementary chargeeC—MagneticForce
gravitygm/s²—MagneticForce
magnetic fieldBT—MagneticForce
massmkg0 … ∞MagneticForce
chargeqC—MagneticForce
speedvm/s—MagneticForce
length in the fieldlm—MagneticForce
force on a wireFN—MagneticForce
force per lengthfN/m—MagneticForce
radius of the pathrm—MagneticForce
angle to the fieldθ—0 … 3.142MagneticForce
frequency of revolutionνHz—MagneticForce
field at the centre of groundBc,gT—
turns of groundNg——
current of groundIgA—
radius of groundRgm—
field at the centre of aBc,aT—
turns of aNa——
current of aIaA—
radius of aRam—
field at the centre of bBc,bT—
turns of bNb——
current of bIbA—
radius of bRbm—
turns per length of groundngm⁻¹—
length of the coil of groundLgm—
turns per length of anam⁻¹—
length of the coil of aLam—
turns per length of bnbm⁻¹—
length of the coil of bLbm—
field near a wire of groundBw,gT—
distance from the wire of grounddgm—
field near a wire of aBw,aT—
distance from the wire of adam—
field near a wire of bBw,bT—
distance from the wire of bdbm—
field inside of groundBs,gT—
field inside of aBs,aT—
field inside of bBs,bT—
force on a wire on groundFgN—
length in the field of groundlgm—
force on a wire on aFaN—
length in the field of alam—
force on a wire on bFbN—
length in the field of blbm—
force per length on groundfgN/m—
angle to the field of groundθg—0 … 3.142
force per length on afaN/m—
angle to the field of aθa—0 … 3.142
force per length on bfbN/m—
angle to the field of bθb—0 … 3.142
radius of the path of groundrgm—
mass of groundmgkg0 … ∞
speed of groundvgm/s—
charge of groundqgC—
radius of the path of aram—
mass of amakg0 … ∞
speed of avam/s—
charge of aqaC—
radius of the path of brbm—
mass of bmbkg0 … ∞
speed of bvbm/s—
charge of bqbC—
frequency of revolution of groundνgHz—
frequency of revolution of aνaHz—
frequency of revolution of bνbHz—
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
Fw=Iw⋅lw⋅B
force on a wire across a field
fw=Iw⋅B⋅sin⁡θw
force on each metre of wire
rc=mc⋅vcqc⋅B
a charge circles in a field
vc=2⋅π⋅rc⋅νc
once round the circle
Bc,g=μ0⋅Ng⋅Ig2⋅Rg
field at the centre of a coil(ground)
Bc,a=μ0⋅Na⋅Ia2⋅Ra
field at the centre of a coil(a)
Bc,b=μ0⋅Nb⋅Ib2⋅Rb
field at the centre of a coil(b)
ng=NgLg
turns on each metre(ground)
na=NaLa
turns on each metre(a)
nb=NbLb
turns on each metre(b)
Bw,g=μ0⋅Ig2⋅π⋅dg
field near a long straight wire(ground)
Bw,a=μ0⋅Ia2⋅π⋅da
field near a long straight wire(a)
Bw,b=μ0⋅Ib2⋅π⋅db
field near a long straight wire(b)
Bs,g=μ0⋅ng⋅Ig
field inside a long solenoid(ground)
Bs,a=μ0⋅na⋅Ia
field inside a long solenoid(a)
Bs,b=μ0⋅nb⋅Ib
field inside a long solenoid(b)
Fg=Ig⋅lg⋅B
force on a wire across a field(ground)
Fa=Ia⋅la⋅B
force on a wire across a field(a)
Fb=Ib⋅lb⋅B
force on a wire across a field(b)
fg=Ig⋅B⋅sin⁡θg
force on each metre of wire(ground)
fa=Ia⋅B⋅sin⁡θa
force on each metre of wire(a)
fb=Ib⋅B⋅sin⁡θb
force on each metre of wire(b)
rg=mg⋅vgqg⋅B
a charge circles in a field(ground)
ra=ma⋅vaqa⋅B
a charge circles in a field(a)
rb=mb⋅vbqb⋅B
a charge circles in a field(b)
vg=2⋅π⋅rg⋅νg
once round the circle(ground)
va=2⋅π⋅ra⋅νa
once round the circle(a)
vb=2⋅π⋅rb⋅νb
once round the circle(b)
magneticfield=Bw,b
parallel straight wires