{"version":3,"sources":["webpack:///./src/components/physics/electricity/rc/Resistor.vue","webpack:///./src/components/physics/electricity/rc/Boxes.js","webpack:///src/components/physics/electricity/rc/Resistor.vue","webpack:///./src/components/physics/electricity/rc/Resistor.vue?0d61","webpack:///./src/components/physics/electricity/rc/Resistor.vue?9831","webpack:///./src/components/physics/electricity/rc/Resistor.vue?5a1e"],"names":["_c","_self","ref","_vm","_v","_m","attrs","staticStyle","staticRenderFns","render","Boxes","box1","brd2","JXG","JSXGraph","initBoard","boundingbox","keepaspectratio","axis","ticks","grid","pan","enabled","showCopyright","showNavigation","options","layer","create","parse","cssStyle","fontSize","Math","round","canvasWidth","fixed","name","withLabel","label","position","a","baseline","strokeWidth","strokeColor","highline","size","face","fillColor","withTicks","r","c","rotate","b","snapWidth","chg","visible","Value","vertices","borders","fillOpacity","xn","yn","Qr","Qc","x","charge","exp","t","setPenSize","run","moveTo","setTimeout","hideTurtle","on","cs","init","created","_this","title","$store","commit","newTopics","img","action","goto","newshowhome","newPhys","newLeftArrow","newModule","mounted","MathJax","Hub","Queue","component"],"mappings":"yIAA4CA,EAAOC,WAAS,MAAU,KAAgBC,EAAI,WAAI,OAAM,EAAG,MAAC,SAAmgCA,IAAI,MAAM,CAACC,EAAIC,GAAG,kCAAqC,EAAG,GAACD,g9BAAkB,QAACD,IAAI,MAAa,CAACC,EAAIC,GAAG,yCAAyCC,EAAI,GAAEL,GAAG,OAAU,CAAEM,IAAK,a,CAAE,0CAAiB,kBAAE,OAAIN,iBAAS,KAAsCO,SAAW,C,YAAU,yB,YAAiB,CAAQ,cAACD,OAAM,SAAe,OAAK,GAAI,gBAEt6CE,IAA4CR,EAAe,YAAC,MAAU,KAA0HO,UAAY,G,OAAC,YAAkB,6GAAQ,aAAIP,kBAAiB,WAClP,CAAIG,EAAG,KAAC,CAAI,qmB,WAAiB,MAAU,KAA8FI,UAAY,G,OAAC,YAAkB,iFAAQ,aAAIP,kBAAgB,WAG9M,GAASS,KAAM,GAAED,8BAAe,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9f5edd90.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h3',{ref:\"ia\"},[_vm._v(\"\\n RC Circuits\\n \")]),_c('p',[_vm._v(\"\\n Ohm's law, named after German physicist Georg Simon Ohm, is one of the fundamental principles of electricity.\\n Ohm's law relates the voltage applied across a conducting material to the electric current flowing through it.\\n Ohm, while experimenting with electrochemical cells, found that the electric current flowing through a conducting material is directly proportional to the voltage applied.\\n Mathematically, Ohm's law can be expressed as:\\n $$ I \\\\propto V $$\\n Expressed as an equality (by introducing a proportionality constant \\\\(R\\\\)):\\n $$ I = \\\\frac{V}{R}$$\\n where \\\\(V\\\\) is the voltage loss across the conductor, \\\\(I \\\\) is the electric current through it. \\\\(R\\\\) is the ratio of voltage to current, and is known as the electric resistance of the conductor.\\n For certain materials, this ratio \\\\(R\\\\) remains constant over a broad range of values of \\\\(V\\\\) and \\\\(R\\\\). Such conductors are known as Ohmic conductors.\\n \")]),_c('h3',{ref:\"ca\"},[_vm._v(\"\\n Implications of Ohm's Law\\n \")]),_vm._m(0),_c('h3',{ref:\"playgraph\"},[_vm._v(\"\\n Playgraph - Ohm's Law\\n \")]),_vm._m(1),_c('v-layout',{attrs:{\"justify-center\":\"\"}},[_c('div',{staticClass:\"jxgbox edliy-box-about\",staticStyle:{\"width\":\"800px\",\"height\":\"800px\"},attrs:{\"id\":\"jxgbox1\"}})])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_vm._v(\"\\n Based on Ohm's law, the following conclusions can be deduced about electric circuits.\\n \"),_c('ul',{staticStyle:{\"list-style-type\":\"square\"}},[_c('li',[_c('h3',[_vm._v(\" Constant Voltage Circuit \")]),_vm._v(\" When the voltage applied to an electric circuit is kept constant (i.e. connected to a source of constant voltage), the electric current decreases with resistance.\\n \")]),_c('li',[_c('h3',[_vm._v(\" Constant Resistance Circuit\")]),_vm._v(\" When the resistance is kept constant, the electric current linearly increases with applied voltage.\\n \")]),_c('li',[_c('h3',[_vm._v(\" Constant Current Circuit \")]),_vm._v(\" When the electric current flowing through the circuit is kept constant, the electric current linearly increases with applied voltage.\\n \")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',[_vm._v(\"\\n The goal of this interactive session is to help students:\\n \"),_c('ul',{staticStyle:{\"list-style-type\":\"square\"}},[_c('li',[_vm._v(\" learn the Ohm's law.\")]),_c('li',[_vm._v(\" understand how electric current relates to applied voltage in an Ohmic conductor. \")]),_c('li',[_vm._v(\" learn how electric current varies with resistance. \")])])])\n}]\n\nexport { render, staticRenderFns }","const Boxes = {\r\n box1: function () {\r\n var brd2 = JXG.JSXGraph.initBoard('jxgbox1',{boundingbox: [-2, 7, 12, -7],keepaspectratio: true, axis:false, ticks:false, grid:false, pan:{enabled:false}, showCopyright:false, showNavigation:false});\r\n brd2.options.layer['line'] =6;\r\n brd2.options.layer['segment'] =9;\r\n brd2.options.layer['polygon'] =2;\r\n brd2.options.layer['image'] =8;\r\n var title = brd2.create('text',[2, 6.5, 'Turn the switch on/off. Then tap on the battery to start!'],{parse:true, cssStyle:'fontFamily:Oswald',fontSize:function(){return Math.round(16*brd2.canvasWidth/500.)}, fixed:true});\r\n brd2.create('axis', [[-1, -6],[2, -6]],{name:'Time(sec)', withLabel:true, label:{position:'top', fontSize:function(){return Math.round(18*brd2.canvasWidth/500.)}, cssStyle:'fontFamily:Oswald;'}});\r\n brd2.create('axis', [[0, -6],[0, -2]],{name:'Charge (C)',withLabel:true, label:{position:'top',fontSize:function(){return Math.round(18*brd2.canvasWidth/500.)}, cssStyle:'fontFamily:Oswald;'}});\r\n var a = brd2.create('slider',[[-1+5,5],[5+5,5],[0, 2.5, 5]],{baseline:{strokeWidth:7, strokeColor:'grey'},highline:{strokeWidth:7, strokeColor:'black'}, name:'V(Volts)',size:8,face:'square', fillColor:'grey',strokeColor:'black', withTicks:false, label:{fontSize:function(){return Math.round(12*brd2.canvasWidth/500.)}, cssStyle:'fontFamily:Oswald;'}});\r\n var r = brd2.create('slider',[[2.5,0],[2.5,3],[0, 2.5, 5]],{baseline:{strokeWidth:7, strokeColor:'grey'},highline:{strokeWidth:7, strokeColor:'black'}, name:'R(Ω)',size:8,face:'square', fillColor:'grey',strokeColor:'black', withTicks:false, label:{fontSize:function(){return Math.round(12*brd2.canvasWidth/500.)}, cssStyle:'fontFamily:Oswald;'}});\r\n var c = brd2.create('slider',[[5,-1],[8,-1],[0, 2.5, 5]],{baseline:{strokeWidth:7, strokeColor:'grey'},highline:{strokeWidth:7, strokeColor:'black'}, name:'C(F)',size:8,face:'square', fillColor:'grey',strokeColor:'black', withTicks:false, label:{fontSize:function(){return Math.round(12*brd2.canvasWidth/500.)}, cssStyle:'fontFamily:Oswald;'}});\r\n brd2.create('image', ['/assets/switch.svg', [5.35+5,1.55],[1.3,1.3]],{fixed:true, rotate:0});\r\n var b = brd2.create('slider',[[6+5,2.],[6+5,2.4],[0, 1, 1]],{baseline:{strokeWidth:0, strokeColor:'grey'},highline:{strokeWidth:0, strokeColor:'black'},\r\n name:'',size:6.,face:'square', strokeWidth:2, snapWidth:1, fillColor:'grey',strokeColor:'black', withLabel:false});\r\n var chg=brd2.create('image', ['/assets/ui.svg', [3.+5,+3.25],[1.5,1.5]],{fixed:true, rotate:90});\r\n brd2.create('image', ['/assets/resistor.svg', [-1.75+5,1.0],[1.5,1.5]],{fixed:true});\r\n brd2.create('image', ['/assets/capacitor-2.svg', [1.5+5,0],[1.5,1.5]],{fixed:true});\r\n //\r\n brd2.create('image', ['/assets/arrowhead.svg', [0.75+5, -0.2],[0.4,0.4]],{fixed:true, rotate:90, visible:function(){if(b.Value()==0){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [3.8+5,-0.2],[0.4,0.4]],{fixed:true, rotate:90,visible:function(){if(b.Value()==0){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [0.75+5,3.2],[0.4,0.4]],{fixed:true, rotate:270,visible:function(){if(b.Value()==0){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [3.80+5,3.2],[0.4,0.4]],{fixed:true, rotate:270,visible:function(){if(b.Value()==0){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [5.20+5,2.2],[0.4,0.4]],{fixed:true, rotate:180,visible:function(){if(b.Value()==0){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [-1.2+5,0.6],[0.4,0.4]],{fixed:true, rotate:0,visible:function(){if(b.Value()==0){return true}}});\r\n //Off State\r\n brd2.create('image', ['/assets/arrowhead.svg', [0.75+5,3.8],[0.4,0.4]],{fixed:true, rotate:90,visible:function(){if(b.Value()==1){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [3.80+5,3.8],[0.4,0.4]],{fixed:true, rotate:90,visible:function(){if(b.Value()==1){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [-0.8+5,0.8],[0.4,0.4]],{fixed:true, rotate:180,visible:function(){if(b.Value()==1){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [5.2+5,2.0],[0.4,0.4]],{fixed:true, rotate:180,visible:function(){if(b.Value()==1){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [0.75+5, 0.2],[0.4,0.4]],{fixed:true, rotate:270, visible:function(){if(b.Value()==1){return true}}});\r\n brd2.create('image', ['/assets/arrowhead.svg', [3.8+5,0.2],[0.4,0.4]],{fixed:true, rotate:270,visible:function(){if(b.Value()==1){return true}}});\r\n //var res3 = brd2.create('image', ['capacitor-2.svg', [0.5,-5.5],[1.5,1.5]],{attractors:[li1, li2], attractorDistance:1.5, snatchDistance:1.5});\r\n //var res4 = brd2.create('image', ['capacitor-2.svg', [3.5,-5.5],[1.5,1.5]],{attractors:[li1], attractorDistance:1.5, snatchDistance:1.5});\r\n brd2.create('polygon', [[-1+5, -0], [-1+5, 4], [5+5, 4],[5+5, -0]], {fixed:true, vertices:{visible:false, fixed:true}, borders:{strokeColor:'grey', strokeWidth:4}, fillOpacity:0, visible:true,strokeWidth:4, strokeColor:'orange'});\r\n brd2.create('polygon', [[-1+5, -0], [-1+5, 3], [5+5, 3],[5+5, -0]], {fixed:true, vertices:{visible:false, fixed:true}, borders:{strokeColor:'grey', strokeWidth:4}, fillOpacity:0, visible:true,strokeWidth:4, strokeColor:'orange'});\r\n brd2.create('segment', [[-1+5, +4.05], [-1+5, +3.05]], {visible:function(){if(b.Value()==0){return true}else{return false}}, strokeWidth:5, strokeColor:'oldLace'});\r\n brd2.create('segment', [[-0.96+5, +3.0], [0+5, +3.0]], {visible:function(){if(b.Value()==1){return true}else{return false}}, strokeWidth:5, strokeColor:'oldLace'});\r\n brd2.create('point', [-1+5, 4], {size:'3', name:'', fillColor:'black', strokeColor:'black'});\r\n brd2.create('point', [-1+5, 3], {size:'3', name:'', fillColor:'black', strokeColor:'black'});\r\n brd2.create('point', [0+5, 3], {size:'3', name:'', fillColor:'black', strokeColor:'black'});\r\n// brd2.create('functiongraph', [function(x){return x-4}, 0, 3], {size:'3', name:'', fillColor:'black', strokeColor:'black'});\r\n//var chg = brd2.create('image', ['electricity.svg', [6.25,2.25],[0.5,0.5]],{fixed:true});\r\n var xn=0, yn=0, Qr=0, Qc=0, x=0;\r\n var charge = function(x){return b.Value()*(a.Value()*c.Value()-(a.Value()*c.Value()-Qr)*Math.exp(-(x-yn)/r.Value()/c.Value()))+\r\n (1-b.Value())*Qc*Math.exp(-(x-xn)/r.Value()/c.Value())-6};\r\n var t = brd2.create('turtle', [x, charge(x)]);\r\n t.setPenSize(4);\r\n var run = function(){\r\n if ( x < 10) { // stop after two rounds\r\n x +=0.1;\r\n if(b.Value()==1){\r\n xn =x;\r\n Qc =a.Value()*c.Value()-(a.Value()*c.Value() - Qr)*Math.exp(-(xn-yn)/r.Value()/c.Value());\r\n }\r\n else {\r\n yn =x;\r\n Qr = Qc*Math.exp(-(yn-xn)/r.Value()/c.Value());\r\n }\r\n t.moveTo([x, charge(x)]);\r\n setTimeout(run, 200);\r\n }};\r\n t.hideTurtle();\r\n chg.on('down', function(){xn=0; yn=0; x=0; Qr=0; Qc=0; t.cs(); t.init(x, charge(x)); run()});\r\n }\r\n }\r\nexport default Boxes;\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Resistor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Resistor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Resistor.vue?vue&type=template&id=0b2267bd&\"\nimport script from \"./Resistor.vue?vue&type=script&lang=js&\"\nexport * from \"./Resistor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Resistor.vue?vue&type=style&index=0&id=0b2267bd&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Resistor.vue?vue&type=style&index=0&id=0b2267bd&prod&lang=scss&\""],"sourceRoot":""}