question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :mica_slid_in_after_disconnecting do 4 kind :numerical 5 describes "In a parallel plate capacitor with air between the plates, each plate has an area of %{area} and the " \ 6 "distance between the plates is 3 mm. It is charged by a %{supply} supply. A 3 mm thick mica sheet (of " \ 7 "dielectric constant = %{constant}) is inserted between the plates after the supply was disconnected. " \ 8 "%{voltage}, in volts?" 9 given area: "6e-3 m2" 10 given supply: "100 V" 11 given constant: "6" 12 asks voltage: "What is the potential difference between the plates now" 13 end
1 require_relative "../questions/mica_slid_in_after_disconnecting" 2 require_relative "../science/electrostatic_potential_and_capacitance/capacitance" 3 4 solve :mica_slid_in_after_disconnecting , using: Capacitance do 5 objects :air , :mica 6 7 take area: air . area 8 take supply: air . voltage 9 take constant: mica . dielectric_constant 10 11 deduce_from "with air between the plates" , air . dielectric_constant => 1 12 deduce_from "distance between the plates is 3 mm" , air . plate_separation => "3 mm" 13 deduce_from "A 3 mm thick mica sheet" , mica . plate_separation => air . plate_separation , mica . area => air . area 14 deduce_from "after the supply was disconnected" , mica . charge => air . charge 15 16 voltage = mica . voltage 17 answer voltage :, in: "V" , figures: 3 18 19 conclusion "Cut off from the supply, the plates keep their charge; the mica multiplies the capacitance, so the " \ 20 "voltage falls by the same factor." 21 end
1 require_relative "../solutions/mica_slid_in_after_disconnecting" 2 3 play_with :mica_slid_in_after_disconnecting do 4 title "Mica Slid In After Disconnecting" 5 end