question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :the_conduction_current_into_a_capacitor do 4 kind :numerical 5 describes "A parallel plate capacitor made of circular plates each of radius R = 6.0 cm has a capacitance C = " \ 6 "%{capacitance}. The capacitor is connected to a %{supply} ac supply with a (angular) frequency of " \ 7 "%{angular}. %{current}, in μA?" 8 given capacitance: "100 pF" 9 given supply: "230 V" 10 given angular: "300 rad/s" 11 asks current: "What is the rms value of the conduction current" 12 end
1 require_relative "../questions/the_conduction_current_into_a_capacitor" 2 require_relative "../science/alternating_current/reactance" 3 4 solve :the_conduction_current_into_a_capacitor , using: Reactance do 5 objects :capacitor 6 7 take capacitance: capacitor . capacitance 8 take supply: capacitor . voltage_across_the_capacitor 9 take angular: capacitor . angular_frequency 10 11 current = capacitor . rms_current 12 answer current :, in: "μA" , figures: 2 13 14 conclusion "A small capacitor on a slowly alternating supply has a huge reactance, so only a tiny current " \ 15 "flows in and out of its plates." 16 end
1 require_relative "../solutions/the_conduction_current_into_a_capacitor" 2 3 play_with :the_conduction_current_into_a_capacitor do 4 title "The Conduction Current into a Capacitor" 5 end