{"version":3,"sources":["webpack:///./src/components/physics/sp/sp/SimplePendulum.vue?9d04","webpack:///./src/components/physics/sp/sp/SimplePendulum.vue","webpack:///./src/components/physics/sp/sp/Boxes.js","webpack:///src/components/physics/sp/sp/SimplePendulum.vue","webpack:///./src/components/physics/sp/sp/SimplePendulum.vue?e116","webpack:///./src/components/physics/sp/sp/SimplePendulum.vue?0958"],"names":["ref","attrs","staticClass","staticStyle","_vm","_c","_self","Boxes","box1","JXG","Options","board","minimizeReflow","JSXGraph","initBoard","boundingbox","keepaspectratio","axis","grid","ticks","showCopyright","showNavigation","pan","enabled","zoom","options","layer","makeResponsive","placeLogo","create","fixed","fontSize","canvasHeight","cssStyle","cc","baseline","strokeWidth","strokeColor","highline","name","size","face","fillColor","withTicks","label","offset","p1","withLines","vertices","visible","pb","c1","dash","Value","p2","shadow","p3","isInDragMode","radius","straightFirst","straightLast","gg","rotate","Math","abs","startAnimation","startTheta","c","g","l","moveAlong","f","t","x","sin","area","numberOfEvaluations","data","Numerics","rungeKutta","duration","NaN","angle2","PI","floor","X","cos","Y","hook","mode","BOARD_MODE_DRAG","stopAllAnimation","sqrt","toFixed","on","created","_this","$store","commit","title","newTopics","img","action","goto","newshowhome","newPhys","newLeftArrow","newModule","mounted","MathJax","Hub","Queue","component","staticRenderFns"],"mappings":"kHAAA,W,8FCA4D,EAAU,W,IAAgBA,EAAI,KAAe,EAAK,EAAI,S,OAAksB,iBAAS,IAAK,gBAAicA,GAAI,6rBAAmB,IAAK,UAA8jCA,GAAI,4bAAa,IAAK,oBAAwtBA,GAAI,yjCAAO,IAAK,cAAwgBC,GAAK,GAAC,gtB,IAAC,QAAmB,6eAAE,MAAK,CAAOC,iBAAY,K,CAAyB,QAAK,CAAS,8BAAG,MAAM,CACtsH,mBACyC,IAAC,IAAqB,EAAe,Y,IAACC,O,EAAa,W,OAA0B,QAAE,YAAWC,CAClI,kBAAW,WAAcC,CAAE,EAACD,KAAIE,GAAMD,GAAE,iSAAC,W,IAAgBF,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IAAAC,GAAA,EACA,KAAAT,OAAAC,OAAA,8BAAAQ,GACA,IAAAC,GAAA,EACA,KAAAV,OAAAC,OAAA,2BAAAS,IAEAC,QAAA,WACAC,QAAAC,IAAAC,MAAA,WAAAF,QAAAC,MACAvG,EAAAC,SClGqY,I,wBCQjYwG,EAAY,eACd,EACA,EACAC,GACA,EACA,KACA,KACA,MAIa,aAAAD,E","file":"js/chunk-4eacfe1c.e72df8da.js","sourcesContent":["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!./SimplePendulum.vue?vue&type=style&index=0&id=b9129d3e&prod&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h3',{ref:\"Introduction\"},[_vm._v(\"\\n Definition of a Simple Pendulum\\n \")]),_c('p',[_vm._v(\"\\n A simple pendulum consists of a point mass (called a bob) suspended from a frictionless pivot using a massless string or rod. As the suspended mass is displaced from its equilibrium position, it experiences a restoring force due to the action of gravity — as a result of which the mass oscillates back and forth around its equilibrium position at a constant amplitude. Note that, realistically speaking, there is always friction acting at the pivot and air resistance opposing the motion of the mass, and the string or the rod is not exactly massless. Thus, a simple pendulum represents a mathematical idealization.\\n \")]),_c('h3',{ref:\"Period\"},[_vm._v(\"\\n Time Period of Oscillation\\n \")]),_c('p',[_vm._v(\"\\n The time taken in one complete cycle (starting from one extreme to another extreme and back) is called time period of oscillation. The time period of oscillation for a simple pendulum depends on the length of the rod (\\\\(L\\\\)) and the acceleration due to gravity (\\\\(g\\\\)) — given the amplitude of the oscillation is small.\\n $$T = 2\\\\pi \\\\sqrt{\\\\frac{L}{g}}$$\\n \")]),_c('h3',{ref:\"EquationofMotion\"},[_vm._v(\"\\n Equation of Motion for a Simple Pendulum\\n \")]),_c('p',[_vm._v(\"\\n Consider a simple pendulum consisting of a bob of mass \\\\(m\\\\) suspended from a pivot O using a massless rod/string of length \\\\(L\\\\). When the bob is given an angular displacement (say \\\\(\\\\theta\\\\) ) from the vertical position, the weight of the bob generates a restoring moment about the pivot. This restoring moment tends to bring the bob back to the vertical position. The restoring moment about the pivot due to weight of the mass is given as:\\n $$\\\\tau_o = -mgL\\\\sin \\\\theta \\\\tag{1}$$\\n Now, recall that Newton's second law for rotational motion is given as:\\n $$ \\\\tau_o = I_o \\\\ddot{\\\\theta} \\\\tag{2}$$\\n where \\\\(I_o\\\\) is the moment of inertia of the bob about the pivot, and is given as:\\n $$I_o = m L^2$$\\n By combining equations (1) and (2), we obtain:\\n $$ mL^2 \\\\ddot{\\\\theta} + mgL \\\\sin \\\\theta =0$$\\n After a slight rearrangement, we obtain the equation of motion for the pendulum as:\\n $$ \\\\ddot{\\\\theta} + \\\\frac{g}{L} \\\\sin \\\\theta =0$$\\n \")]),_c('h3',{ref:\"smallAngle\"},[_vm._v(\"\\n Small-Angle Approximation and Simple Harmonic Motion\\n \")]),_c('p',[_vm._v(\"\\n If the amplitude of angular displacement is small enough for the small-angle approximation (\\\\(\\\\sin \\\\theta \\\\approx \\\\theta\\\\)) to hold, then the equation of motion reduces to the equation of simple harmonic motion.\\n $$ \\\\ddot{\\\\theta} + \\\\frac{g}{L}\\\\theta =0$$\\n The solution of the above equation is given as:\\n $$\\\\theta = \\\\theta_0 \\\\cos(\\\\omega t)$$\\n where \\\\(\\\\omega = \\\\sqrt{g/L}\\\\) is the frequency of oscillation, and is related to time period of oscillation as:\\n $$\\\\omega = \\\\frac{2 \\\\pi}{T}$$\\n This gives the time period of oscillation as\\n $$T = 2 \\\\pi \\\\sqrt{\\\\frac{L}{g}}$$\\n \")]),_c('h3',{ref:\"play\"},[_vm._v(\"\\n MagicGraph: Oscillations of a Simple Pendulum\\n \")]),_c('p',[_vm._v(\"\\n Through this MagicGraph, you will learn about the time period of the oscillations of a simple pendulum.\\n The pendulum consists of a bob of mass \\\\(m\\\\) that is suspended from a pivot O by means of a massless rod of length \\\\(L\\\\). The acceleration due to gravity is \\\\(g\\\\).\\n \")]),_c('h5',[_vm._v(\" To Get Started: \")]),_vm._m(0),_c('br'),_c('h5',[_vm._v(\" To Explore: \")]),_vm._m(1),_c('br'),_c('v-responsive',[_c('v-layout',{attrs:{\"justify-center\":\"\"}},[_c('div',{staticClass:\"edliy-box-about\",attrs:{\"id\":\"jxgbox1\"}})])],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('ul',{staticStyle:{\"list-style-type\":\"square\"}},[_c('li',[_vm._v(\" Choose a value for the length of the rod using the slider on the left. \")]),_c('li',[_vm._v(\" Choose a value for the gravity using the slider on the right.\")]),_c('li',[_vm._v(\" Drag the bob away from the vertical position. Then, let it go and observe the oscillations of the pendulum.\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('ul',{staticStyle:{\"list-style-type\":\"square\"}},[_c('li',[_vm._v(\" How the oscillations of the pendulum change as you change the length? \")]),_c('li',[_vm._v(\" How the oscillations of the pendulum change as you change the gravity? \")])])\n}]\n\nexport { render, staticRenderFns }","import {\r\n makeResponsive,\r\n placeTitle,\r\n placeImage,\r\n placeInput,\r\n placeSlider,\r\n hoverMe,\r\n placeRec,\r\n hiddenPt,\r\n fixedPt,\r\n clearInputFields,\r\n dragMe,\r\n placeArrow,\r\n placeGravity,\r\n placeText,\r\n placeMiddleText,\r\n placeLine,\r\n placePoint,\r\n placeGlider,\r\n placeRuler,\r\n placeLeftText,\r\n placeCircle,\r\n placeAngle,\r\n placeDash,\r\n placeLabel,\r\n placeRightText,\r\n//placePoint(board, positionX, positionY, size, cols1, cols2)\r\n//placeDash(board, Pt1, Pt2, width, cols)\r\n placeArc,\r\n placeLogo,\r\n placeShuffle,\r\n placeTest\r\n} from '../../../../common/edliy_utils-fractions';\r\nconst Boxes = {\r\n box1: function () {\r\n\tJXG.Options.board.minimizeReflow = 'none';\r\n var board = JXG.JSXGraph.initBoard('jxgbox1', {boundingbox: [-7, 1.8, 7, -12.2], keepaspectratio: true, axis:false, grid:true, ticks:false,\r\n showCopyright:false, showNavigation:false, pan:{enabled:false}, zoom:{enabled:false}});\r\n\t JXG.Options.board.minimizeReflow = 'none';\r\n board.options.layer['image']=20;\r\n makeResponsive(board);\r\n placeLogo(board);\r\n //Length of the pendulum\r\n\tboard.create('text', [-2.95, 1, 'Oscillations of a Pendulum'], {fixed:true, fontSize:function(){return 32*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n\tboard.create('text', [-3.95, -11.65, 'Length (m)'], {fixed:true, fontSize:function(){return 24*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n\tboard.create('text', [2.5, -11.65, 'Gravity (m/s2)'], {fixed:true, fontSize:function(){return 24*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n\tboard.create('text', [-5., -9, 'Time Period (sec) ='], {fixed:true, fontSize:function(){return 24*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n var cc = board.create('slider',[[-6, -11.1],[-1,-11.1],[4,4.5,8]],{baseline:{strokeWidth:7, strokeColor:'grey'},\r\n highline:{strokeWidth:7, strokeColor:'black'}, name:'',size:function(){return 8*board.canvasHeight/800},face:'square', fillColor:'grey',strokeColor:'black',\r\n withTicks:false,label:{offset:[2,-15], fontSize:function(){return 20*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'}});\r\n //\r\n var sup = board.create('polygon', [[-8, 0.0], [8, 0.0], [8, 5], [-8, 5]], {fillColor:'grey', strokeColor:'grey', withLines:false, vertices:{visible:false}, fixed:true});\r\n var p1 = board.create('point', [0.0, 0.0], {visible:true, name: 'O', size: 4, fillColor:'black', strokeColor:'black' , fixed:true, label:{fontSize:function(){return 18*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'}});\r\n var pb = board.create('point', [0.0, -5.0], {visible:false, name: '', size: 4, fillColor:'black', strokeColor:'black', fixed:true });\r\n var vert = board.create('line', [p1, pb], {visible:true, strokeColor:'grey', strokeWidth:1, dash:2, fixed:true});\r\n var p1p = board.create('point', [0.0, 0.0], {visible:true, name: '', size: 3, fillColor:'grey', strokeColor:'black', fixed:true});\r\n var c1 = board.create('circle', [[0,0], [0,function(){return cc.Value();}]], {visible:false, name: 'circle', size: 3, fixed:true});\r\n var p2 = board.create('glider', [3,-4, c1], {visible: true, name: 'Drag me!', size:function(){return 18*board.canvasHeight/800}, fillColor:'orange', strokeColor:'black', shadow:true, label:{fontSize:function(){return 18*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'}});\r\n var p3 = board.create('point', [0, -5], {name:'', size:0, fixed:true});\r\n var ang =board.create('minorsector', [p1, p2, p3],{radius:2, fixed:true});\r\n //var grr=board.create('functiongraph', [function(t){ return -8-2*Math.cos(t/2); },-10, 10],{strokeColor: \"#cccccc\", strokeWidth:3});\r\n // var p3 = board.create('point', [\r\n // function(){return 2*Math.atan2(p2.X(),-p2.Y())},\r\n // function(){return -8-2*Math.cos(Math.atan2(p2.X(),-p2.Y()))}],\r\n // {visible: true, name:'', size: 3});\r\n var linee = board.create('line', [p1, p2], {visible:true, strokeColor:'grey', strokeWidth:6, straightFirst: false,straightLast: false});\r\n var isInDragMode = false;\r\n\tboard.create('segment', [[0.51,-11.1],[0.51, -10.80]],{strokeColor:'black'});\r\n\tboard.create('segment', [[2.25,-11.1],[2.25, -10.80]],{strokeColor:'black'});\r\n\tboard.create('segment', [[5.47,-11.1],[5.47, -10.80]],{strokeColor:'black'});\r\n\r\n\tboard.create('image', ['/assets/moonn.svg', [0.1, -10.75],[.7,.7]],{fixed:true});\r\n\t//board.create('image', ['/assets/mars.svg', [1.05, -11.75],[.7,.7]],{fixed:true});\r\n board.create('image', ['/assets/earth.svg', [1.9, -10.75],[.7,.7]],{fixed:true});\r\n\tboard.create('image', ['/assets/jupiter.svg', [5.1, -10.75],[.7,.7]],{fixed:true});\r\n var gg = board.create('slider',[[0.5,-11.1],[5.5,-11.1],[1.62,9.8,24.8]],{baseline:{strokeWidth:7, strokeColor:'grey'},\r\n highline:{strokeWidth:7, strokeColor:'black'}, name:'',size:function(){return 8*board.canvasHeight/800},face:'square', fillColor:'grey',strokeColor:'black',\r\n withTicks:false,label:{offset:[2,-15], fontSize:function(){return 20*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'}});\r\n\r\n\tboard.create('text', [0.1, -9.5, 'Moon'], {fixed:true, fontSize:function(){return 18*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;', rotate:45, visible:function(){if(Math.abs(gg.Value()-1.7) <=0.25){return true} else{return false}}});\r\n\r\n\tboard.create('text', [1.9, -9.5, 'Earth'], {fixed:true, fontSize:function(){return 18*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;', visible:function(){if(Math.abs(gg.Value()-9.8) <=0.25){return true} else{return false}}});\r\n\r\n\tvar kk = board.create('text', [5.1, -9.5, 'Jupiter'], {fixed:true, fontSize:function(){return 18*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;', visible:function(){if(Math.abs(gg.Value()-24.7) <=0.25){return true} else{return false}}});\r\n\r\n\tboard.create('text', [-2., -9, function(){return (2*Math.PI*Math.sqrt(cc.Value()/gg.Value())).toFixed(2)}], {fixed:true, fontSize:function(){return 24*board.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n function startAnimation(startTheta) {\r\n var c = 0.0, g = gg.Value(), l = cc.Value();\r\n p2.moveAlong(function() {\r\n var f = function(t, x) {\r\n return [x[1], -c * x[1] - g / l * (Math.sin(x[0]))];};\r\n var area = [0, 200];\r\n var numberOfEvaluations = (area[1] - area[0]) * 100;\r\n var data = JXG.Math.Numerics.rungeKutta('heun', [startTheta, 0], area, numberOfEvaluations, f);\r\n var duration = 50000;\r\n return function(t) {\r\n if (t >= duration)\r\n return NaN;\r\n var angle2=-Math.PI/2+data[Math.floor(t / duration * numberOfEvaluations)][0];\r\n return [p1.X()+l*Math.cos(angle2),p1.Y()+l*Math.sin(angle2)];};\r\n }());\r\n }\r\n function hook() {\r\n if(!isInDragMode) {\r\n if(board.mode === board.BOARD_MODE_DRAG) {\r\n board.stopAllAnimation();\r\n isInDragMode = true;\r\n }\r\n }\r\n if(isInDragMode) {\r\n if(board.mode !== board.BOARD_MODE_DRAG) {\r\n isInDragMode = false;\r\n // var angle=Math.atan2(p2.Y()-p1.Y(),p2.X()-p1.X())+Math.PI*1/2;\r\n startAnimation(Math.PI/5.);\r\n }\r\n }\r\n }\r\n board.on('move', function(){hook()});\r\n startAnimation(0.0);\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!./SimplePendulum.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!./SimplePendulum.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SimplePendulum.vue?vue&type=template&id=b9129d3e&\"\nimport script from \"./SimplePendulum.vue?vue&type=script&lang=js&\"\nexport * from \"./SimplePendulum.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SimplePendulum.vue?vue&type=style&index=0&id=b9129d3e&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"],"sourceRoot":""}