play phryzby with physics

The Resistor on a Ten Volt Battery

solved OhmsLaw

Q. A battery of emf 10 VVc=10V and internal resistance 3 ΩRb=3Ω is connected to a resistorRc=Rb+Rr. If the current in the circuit is 0.5 AIc=0.5A, what is the resistance of the resistor, in ohms?

R = ?V = 10 VI = 0.5 A
Inputs
Vc
10 V
Rb
3 Ω
Ic
0.5 A
Outputs
resistanceRr?

How it's solved

Solved with OhmsLaw

Given

  • Vc=10V
  • Rb=3Ω
  • Ic=0.5A
  • Rc=Rb+Rr from “connected to a resistor”

Find Rr.

Working
  1. ohms law(circuit)Vc=Ic⋅Rc
  2. 10=0.5⋅Rc
  3. Rc=20Ω
  4. connected to a resistorRc=Rb+Rr
  5. 20=3+Rr
  6. Rr=17Ω
  7. Rr≈17Ωto 2 significant figures
Conclusion

The emf drives the current through the resistor and the battery's own resistance in a row, so the two resistances together are the emf over 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 :the_resistor_on_a_ten_volt_battery do4  kind :numerical5  describes "A battery of emf %{emf} and internal resistance %{internal} is connected to a resistor. If the current " \6            "in the circuit is %{current}, %{resistance}, in ohms?"7  given emf: "10 V"8  given internal: "3 Ω"9  given current: "0.5 A"10  asks resistance: "what is the resistance of the resistor"11end
solution.rb
1require_relative "../questions/the_resistor_on_a_ten_volt_battery"2require_relative "../science/current_electricity/ohms_law"34solve :the_resistor_on_a_ten_volt_battery, using: OhmsLaw do5  objects :battery, :resistor, :circuit67  take emf: circuit.voltage8  take internal: battery.resistance9  take current: circuit.current1011  deduce_from "connected to a resistor", circuit.resistance => battery.resistance + resistor.resistance1213  resistance = resistor.resistance14  answer resistance:, in: "Ω", figures: 21516  conclusion "The emf drives the current through the resistor and the battery's own resistance in a row, so " \17             "the two resistances together are the emf over the current."18end
playground.rb
1require_relative "../solutions/the_resistor_on_a_ten_volt_battery"23play_with :the_resistor_on_a_ten_volt_battery do4  title "The Resistor on a Ten Volt Battery"5end
The laws it drew on
quantitywrittenunitswithinfrom
voltageVV—OhmsLaw
currentIA—OhmsLaw
resistanceRΩ0 … ∞OhmsLaw
length of the conductorlm—OhmsLaw
cross sectionAm²—OhmsLaw
resistivityρΩ m—OhmsLaw
voltage of groundVgV—
current of groundIgA—
resistance of groundRgΩ0 … ∞
voltage of batteryVbV—
current of batteryIbA—
resistance of batteryRbΩ0 … ∞
voltage of resistorVrV—
current of resistorIrA—
resistance of resistorRrΩ0 … ∞
voltage of circuitVcV—
current of circuitIcA—
resistance of circuitRcΩ0 … ∞
resistivity of groundρgΩ m—
length of the conductor of groundlgm—
cross section of groundAgm²—
resistivity of batteryρbΩ m—
length of the conductor of batterylbm—
cross section of batteryAbm²—
resistivity of resistorρrΩ m—
length of the conductor of resistorlrm—
cross section of resistorArm²—
resistivity of circuitρcΩ m—
length of the conductor of circuitlcm—
cross section of circuitAcm²—
Vc=Ic⋅Rc
ohms law
Rc=ρc⋅lcAc
resistance from resistivity
Vg=Ig⋅Rg
ohms law(ground)
Vb=Ib⋅Rb
ohms law(battery)
Vr=Ir⋅Rr
ohms law(resistor)
Vc=Ic⋅Rc
ohms law(circuit)
Rg=ρg⋅lgAg
resistance from resistivity(ground)
Rb=ρb⋅lbAb
resistance from resistivity(battery)
Rr=ρr⋅lrAr
resistance from resistivity(resistor)
Rc=ρc⋅lcAc
resistance from resistivity(circuit)
Rc=Rb+Rr
connected to a resistor