{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.math.sign.js","webpack:///./src/components/physics/springs/energy/Spring.vue?58b0","webpack:///./node_modules/core-js/modules/_math-sign.js","webpack:///./src/components/physics/springs/energy/Spring.vue","webpack:///./src/components/physics/springs/energy/Boxes.js","webpack:///src/components/physics/springs/energy/Spring.vue","webpack:///./src/components/physics/springs/energy/Spring.vue?feec","webpack:///./src/components/physics/springs/energy/Spring.vue?b9f8"],"names":["$export","S","sign","module","exports","Math","x","staticClass","class","_vm","$vuetify","_c","staticStyle","ref","attrs","staticRenderFns","render","Boxes","box1","board1","JXG","JSXGraph","initBoard","boundingbox","axis","grid","keepaspectratio","showNavigation","showCopyright","zoom","enabled","pan","makeResponsive","options","layer","image","highlight","point","line","showInfoBox","i","placeLogo","placeTitle","create","strokeColor","strokeWidth","round","canvasWidth","withLabel","name","straightFirst","straightLast","lastArrow","label","display","fontSize","canvasHeight","CssStyle","position","offset","k1","baseline","lineCap","highline","unitLabel","size","face","fillColor","withTicks","cssStyle","line1","visible","msg","writeMiddleText","setAttribute","color","shuffle","placeShuffle","on","toggle","sover","placeStartOver","hand","rotate","moveTo","X","point1","point2","anchorX","dash","fixed","toFixed","Value","abs","energy","force","placeDash","Y","writeRightText","writeHTMLText","isInDragMode","springHangup1","i1","numberOfSpringRings1","springRings1","withLines","vertices","hook","mode","BOARD_MODE_DRAG","created","_this","title","$store","commit","newTopics","img","action","goto","newshowhome","newPhys","newLeftArrow","newModule","mounted","MathJax","Hub","Queue","metaInfo","titleTemplate","meta","content","component"],"mappings":"qGACA,IAAIA,EAAU,EAAQ,QAEtBA,EAAQA,EAAQC,EAAG,OAAQ,CAAEC,KAAM,EAAQ,W,oCCH3C,W,qBCCAC,EAAOC,QAAUC,KAAKH,MAAQ,SAAcI,GAE1C,OAAmB,IAAXA,GAAKA,IAAWA,GAAKA,EAAIA,EAAIA,EAAI,GAAK,EAAI,I,qECHQ,EAAU,W,IAAiBC,OAAgCC,EAAK,EAAC,S,O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,E","file":"js/chunk-ee0680ae.b07d9196.js","sourcesContent":["// 20.2.2.28 Math.sign(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', { sign: require('./_math-sign') });\n","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!./Spring.vue?vue&type=style&index=0&id=8a0e94ea&prod&lang=scss&\"","// 20.2.2.28 Math.sign(x)\nmodule.exports = Math.sign || function sign(x) {\n // eslint-disable-next-line no-self-compare\n return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"font-weight-light\",class:{'pa-5 headline': _vm.$vuetify.breakpoint.lgAndUp,'pa-2 subtitle-1': _vm.$vuetify.breakpoint.mdOnly, 'pa-1 body-2': _vm.$vuetify.breakpoint.smAndDown}},[_c('div',{staticClass:\"font-weight-medium\",class:{'display-1': _vm.$vuetify.breakpoint.lgAndUp,'headline': _vm.$vuetify.breakpoint.mdOnly, 'subheading': _vm.$vuetify.breakpoint.smAndDown}},[_c('span',{staticStyle:{\"font-family\":\"Oswald\"}},[_vm._v(\" Potential Energy \")])]),_c('div',{ref:\"ia\",staticStyle:{\"margin-top\":\"20px\"}}),_vm._v(\"\\n Potential Energy of a body that is under the influence of a force is always stated with respect\\n to some reference point. At the reference point, the potential energy is considered to be zero.\\n The potential energy change on moving from \\\\(x=x_A\\\\) to \\\\(x=x_B\\\\) under the influence of a force \\\\(F\\\\)\\n is given by:\\n $$U_B-U_A=-\\\\int_{x_A}^{x_B} \\\\textbf{F}\\\\cdot d\\\\textbf{x}$$\\n If we take \\\\(x=x_A\\\\) as the reference point, and measure the value of potential energy \"),_c('i',[_vm._v(\"with respect to\")]),_vm._v(\" A,\\n the potential energy at A can be taken as 0.\\n \"),_c('div',{staticClass:\"font-weight-medium\",class:{'display-1': _vm.$vuetify.breakpoint.lgAndUp,'headline': _vm.$vuetify.breakpoint.mdOnly, 'subheading': _vm.$vuetify.breakpoint.smAndDown}},[_c('span',{staticStyle:{\"font-family\":\"Oswald\"}},[_vm._v(\" Elastic Energy stored in a spring \")])]),_c('div',{ref:\"ib\",staticStyle:{\"margin-top\":\"20px\"}}),_vm._v(\"\\n Potential energy may be present in many forms. In case of a spring, when we stretch it, the spring has some\\n \\\"potential\\\" to move/do work. Therefore, it possesses some potential energy. If we choose the natural length(zero extension/compression)\\n of the spring as the reference point and define our origin there, we can calculate the potential energy due a displacement \\\\(\\\\textbf{x}\\\\)\\n as:\\n $$U=-\\\\int_{0}^x (-k)\\\\textbf{x}\\\\cdot d\\\\textbf{x}=\\\\frac{1}{2}kx^2$$\\n \"),_c('div',{staticClass:\"font-weight-medium\",class:{'display-1': _vm.$vuetify.breakpoint.lgAndUp,'headline': _vm.$vuetify.breakpoint.mdOnly, 'subheading': _vm.$vuetify.breakpoint.smAndDown}},[_c('span',{staticStyle:{\"font-family\":\"Oswald\"}},[_vm._v(\" Learn Interactively | Force and Energy in a Spring \")])]),_c('div',{ref:\"ic\",staticStyle:{\"margin-top\":\"20px\"}}),_vm._v(\"\\n Shown in the MagicGraph is a spring that is connected to a block on one end and tied to a rigid wall\\n on the another end. The block can be dragged on the floor without any friction.\\n \"),_c('div',{ref:\"ic\",staticStyle:{\"margin-top\":\"20px\"}}),_c('h5',[_vm._v(\"Session Objectives \")]),_c('div',{ref:\"id\",staticStyle:{\"margin-top\":\"10px\"}}),_vm._v(\"\\n In this visually interactive module, you will learn about the restoring force and elastic energy stored in a spring.\\n \"),_c('div',{ref:\"ic\",staticStyle:{\"margin-top\":\"20px\"}}),_c('h5',[_vm._v(\"Getting Started \")]),_c('div',{ref:\"ie\",staticStyle:{\"margin-top\":\"10px\"}}),_vm._v(\"\\n Start by pulling or pushing the block on frictionless floor. As you pull or push the block, the spring stretches or compresses. Observe how the restoring force and stored energy change with the amount of extenstion or compression.\\n \")]),_c('v-responsive',[_c('v-layout',{attrs:{\"justify-center\":\"\"}},[_c('div',{staticClass:\"edliy-box-about\",attrs:{\"id\":\"jxgbox1\"}})]),_c('v-layout',{attrs:{\"justify-center\":\"\"}},[_c('h5',{staticClass:\"edliy-text-about\"},[_vm._v(\"\\n Quick Tip: Drag the block to stretch or compress the spring. Use \"),_c('i',{staticClass:\"shuffler ma-1\"}),_vm._v(\" button to switch between force and energy. Use \"),_c('i',{staticClass:\"undoer ma-1\"}),_vm._v(\" button to reset sprint to its natural length.\\n \")])])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {\r\n makeResponsive,\r\n //makeResponsive(brd1);\r\n placeTitle,\r\n //placeTitle(brd1,'title', 'subtitle');\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 //placeArrow(board, pt1, pt2, width, cols)\r\n placeGravity,\r\n placeText,\r\n //placeText(board, positionX, positionY, message)\r\n placeLine,\r\n placePoint,\r\n placeGlider,\r\n placeRuler,\r\n placeLeftText,\r\n placeSliderSwitch,\r\n placeBoldText,\r\n //placeBoldText(brd6, -9, 1, 'Liquid');\r\n placeDash,\r\n // placeDash(board, [x1, y1], [x2, y2], width, cols)\r\n writeRightText,\r\n writeLeftText,\r\n placeLabel,\r\n placeLogo,\r\n placeShuffle,\r\n toggle,\r\n writeHTMLText,\r\n alert,\r\n writeMiddleText,\r\n placeStartOver\r\n} from '../Utils';\r\nconst Boxes = {\r\n box1: function () {\r\n var board1 = JXG.JSXGraph.initBoard('jxgbox1', {boundingbox:[-4,10,12,-6], axis:false, grid:true,\r\n keepaspectratio:true, showNavigation:false, showCopyright:false, zoom:{enabled:false}, pan:{enabled:false}});\r\n makeResponsive(board1);\r\n board1.options.layer['axis'] =2;\r\n board1.options.layer['polygon'] =5;\r\n board1.options.layer['glider'] =11;\r\n board1.options.layer['point'] =11;\r\n board1.options.layer['segment'] =4;\r\n board1.options.layer['image'] =17;\r\n board1.options.layer['text'] =12;\r\n board1.options.image.highlight=false;\r\n board1.options.point.highlight=false;\r\n board1.options.line.highlight=false;\r\n board1.options.point.showInfoBox=false;\r\n var i=0;\r\n placeLogo(board1);\r\n placeTitle(board1, 'Force & Energy of a Spring', '');\r\n let xAxis =board1.create('axis', [[0, 0],[5, 0]], { strokeColor:'grey',\r\n highlight:false, strokeWidth: ()=>Math.round(2*board1.canvasWidth/800.),\r\n withLabel:true, name: '', straightFirst:false, straightLast:true, lastArrow:false,\r\n label: {\r\n display:'internal',\r\n fontSize:function(){return 24*board1.canvasHeight/800},\r\n CssStyle: 'fontFamily:Oswald;fontWeight:bold',\r\n position: 'rt',\r\n offset: [-20, 20]}});\r\n//\r\n let yAxis =board1.create('axis', [[5, 0],[5, +1]], { strokeColor:'grey',\r\n highlight:false, strokeWidth: ()=>Math.round(2*board1.canvasWidth/800.),\r\n withLabel:true, name: '', straightFirst:false, straightLast:true, lastArrow:false,\r\n label: {\r\n display:'internal',\r\n fontSize:function(){return 24*board1.canvasHeight/800},\r\n CssStyle: 'fontFamily:Oswald;fontWeight:bold',\r\n position: 'rt',\r\n offset: [-20, 20]}});\r\n\r\n//\r\n\t\tvar k1 = board1.create('slider',[[-2.,0],[-2.,4],[1, 2.5, 5]],{baseline:{strokeWidth:7, strokeColor:'grey',lineCap:'round'},highline:{strokeWidth:7, strokeColor:'black',lineCap:'round'}, name:'   k', unitLabel:' N/m', size:8, face:'circle', fillColor:'grey',strokeColor:'black', withTicks:false, label:{offset:[0,25], fontSize:function(){return 18*board1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'}});\r\n//\r\n\t var line1 = board1.create('line', [[1,-2], [100, -2]], {visible: false, straightFirst: false, straightLast: false});\r\n\r\n var msg = writeMiddleText(board1, 4, 8.5, function(){if(i==0){return '(Plot of Energy vs. Deflection)'}else{return ' (Plot of of Force vs. Deflection)'}});\r\n msg.setAttribute({visible:true, color:'red'});\r\n//\r\n var shuffle =placeShuffle(board1,'left');\r\n shuffle.on('down', function(){i=toggle(i);});\r\n\r\n var sover = placeStartOver(board1, 'right');\r\n//\r\n\t var hand = board1.create('image', ['/assets/right.svg', [6.7, -2.1],[2,2]],{rotate:90});\r\n//\r\n\t board1.on('move', function(){hand.moveTo([hand.X(), -2.1])});\r\n//\r\n\t var point1 = board1.create('glider', [function(){return hand.X()-1.7}, -2, line1], {name: '', color:'blue', size:function(){return 36*board1.canvasHeight/800}, face:'square'});\r\n//\r\n\t var force1 = board1.create('arrow', [[function(){return point1.X();}, -2], [function(){return point1.X()-Math.sign(point1.X()-5)*2;}, -2] ], {visible:()=>i==1, strokeWidth:4, strokeColor:'black', point2:{size:1, face:'square', name:'F'}});\r\n//\r\n\t board1.create('text', [function(){return point1.X()-2.25*Math.sign(point1.X()-5);}, -2, 'F'], {display:'internal', color:'blue', visible:()=>point1.X()!=5&&i==1, fontSize:function(){return 18*board1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n\t var massvalue1 = board1.create('text', [function(){return point1.X();}, -2.,'M'], {fontSize:function(){return 18*board1.canvasHeight/800}, display:'internal', anchorX:'middle', cssStyle:'fontFamily:Oswald;'});\r\n//\r\n\t var kvalue1 = board1.create('text', [function(){return point1.X()*0.5;}, 0.5-2,'k'], {display:'internal', fontSize:function(){return 18*board1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n\t board1.create('segment', [[5, -0.75-2], [5, -2-1.5] ], {strokeWidth:1, strokeColor:'black',dash:1});\r\n//\r\n board1.create('segment', [[function(){return point1.X();}, -0.75-2], [function(){return point1.X()}, 2-2] ], {dash:1, strokeWidth:1, strokeColor:'black'});\r\n//\r\n\t board1.create('segment', [[function(){return point1.X()}, 1.5-2],[0, 1.5-2] ], {fixed:true, strokeColor:'black', strokeWidth:1});\r\n//\r\n\t board1.create('point', [function(){return point1.X()-0.1}, 1.5-2], {name: '', color:'black', size:function(){return 4*board1.canvasHeight/800}, face:'triangleright'});\r\n//\r\n\t board1.create('point', [0.1, 1.5-2], {name: '', color:'black', size:function(){return 4*board1.canvasHeight/800}, face:'triangleleft', fixed:true});\r\n//\r\n\t board1.create('point', [4.9, -1.-2], {name: '', face:'triangleright', color:'black', size:function(){return 4*board1.canvasHeight/800}, fixed:true});\r\n//\r\n\t board1.create('point', [0.1, -1.-2], {name: '', face:'triangleleft', color:'black', size:function(){return 4*board1.canvasHeight/800}, fixed:true});\r\n//\r\n\t board1.create('segment', [[5, -1.-2],[0, -1.-2] ], {fixed:true, strokeColor:'black', strokeWidth:1});\r\n//\r\n\t board1.create('text', [2.25, -3.-0.25, 'Lo = 5.00 m'], {fixed:true,\r\n fontSize:function(){return 18*board1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n\t board1.create('text', [()=>point1.X()/2, 1.75-2.5, function(){return 'L =' + (point1.X()).toFixed(2) + ' m'}],\r\n {fixed:true, anchorX:'middle',\r\n fontSize:function(){return 18*board1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n//\r\n board1.create('functiongraph', [function(x){return 0.5*k1.Value()*(x-5)*(x-5)}, 5, function(){return point1.X()}],{strokeColor:'red', strokeWidth:4, highlight:false, visible:()=>i==0});\r\n\r\n board1.create('functiongraph', [function(x){return k1.Value()*Math.abs(x-5)}, 5, function(){return point1.X()}],{strokeColor:'blue', strokeWidth:4, highlight:false, visible:()=>i==1});\r\n//\r\n var energy =board1.create('point', [function(){return point1.X();}, function(x){return 0.5*k1.Value()*(point1.X()-5.0)*(point1.X()-5.0)}],{name:'', size:()=>5*board1.canvasWidth/800, face:'+', strokeColor:'black', fillColor:'black', visible:()=>i==0});\r\n//\r\n var force =board1.create('point', [function(){return point1.X();}, function(x){return k1.Value()*Math.abs(point1.X()-5.0)}],{name:'', size:()=>5*board1.canvasWidth/800, face:'+', strokeColor:'black', fillColor:'black', visible:()=>i==1});\r\n//\r\n placeDash(board1, [()=>energy.X(), ()=>energy.Y()], [()=>energy.X(), 0], 1, 'black').setAttribute({visible:()=>i==0});\r\n//\r\n placeDash(board1, [()=>energy.X(), ()=>energy.Y()], [5, ()=>energy.Y()], 1, 'black').setAttribute({visible:()=>i==0});\r\n//\r\n placeDash(board1, [()=>force.X(), ()=>force.Y()], [()=>force.X(), 0], 1, 'black').setAttribute({visible:()=>i==1});;\r\n//\r\n placeDash(board1, [()=>force.X(), ()=>force.Y()], [5, ()=>force.Y()], 1, 'black').setAttribute({visible:()=>i==1});\r\n//\r\n// writeRightText(board1, 4.75, ()=>energy.Y(), ()=>(energy.Y()).toFixed(2)+' J').setAttribute({visible:()=>i==0});\r\n writeRightText(board1, 4.75, 7.5, 'U(J)').setAttribute({visible:()=>i==0});\r\n\r\n writeHTMLText(board1, 10.5, 0.5, 'L-L_0(m)');\r\n//\r\n writeRightText(board1, 4.75, 7.5, 'F(N)').setAttribute({visible:()=>i==1});\r\n//\r\n// writeRightText(board1, 4.75, ()=>force.Y(), ()=>(force.Y()).toFixed(2)+' N').setAttribute({visible:()=>i==1})\r\n//\r\n// board1.create('text', [3, -4.5, function(){if(point1.X()>5){return 'Spring is Elongated (L > L0)'} else if(point1.X()<5){return 'Spring is Compressed (L < L0)'} else{return 'Spring is at Equilibrium Length (L = L0)'}}],{fixed:true, fontSize:function(){return 20*board1.canvasHeight/800}, cssStyle:'fontFamily:Oswald;'});\r\n var isInDragMode = false;\r\n//\r\n\t var springHangup1 = board1.create('point', [0, -2], {color: 'black', name: '', fixed: true, visible:false});\r\n//\r\n\t var i1=0;\r\n\t var numberOfSpringRings1 = 50;\r\n\t var springRings1 = [];\r\n//\r\n\tfor(i1=0; i10)\r\n board1.create('segment', [springRings1[i1-1], springRings1[i1]], {color: 'black', strokeWidth: 1});\r\n\t\t};\r\n\tvar vbase1=board1.create('polygon',[[0,-6.75],[18,-6.75],[18,-2.75],[0, -2.75]], {fillColor:'grey', withLines:false, vertices:{visible:false}});\r\n//\r\n\tvar hbase1=board1.create('polygon',[[-5,-6.75],[0,-6.75],[0,18],[-5, 18]], {fillColor:'grey', withLines:false, vertices:{visible:false}});\r\n//\r\n\tboard1.create('segment', [springHangup1, springRings1[0]], {color: 'black', strokeWidth: 1});\r\n//\r\n\tboard1.create('segment', [springRings1[numberOfSpringRings1-1], point1], {color: 'black', strokeWidth: 1});\r\n\r\n\tsover.on('up', function(){hand.moveTo([6.7,-0.1-2], 500-k1.Value())});\r\n//\r\n\tfunction hook() {\r\n\t\tif(!isInDragMode) {\r\n\t\t\tif(board1.mode === board1.BOARD_MODE_DRAG) {\r\n\t\t\t\tisInDragMode = true;\r\n\t\t\t}\r\n\t\t}\r\n if(isInDragMode) {\r\n if(board1.mode !== board1.BOARD_MODE_DRAG) {\r\n isInDragMode = false;\r\n }\r\n }\r\n}\r\n\tboard1.on('move', function(){hook()});\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!./Spring.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!./Spring.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Spring.vue?vue&type=template&id=8a0e94ea&\"\nimport script from \"./Spring.vue?vue&type=script&lang=js&\"\nexport * from \"./Spring.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Spring.vue?vue&type=style&index=0&id=8a0e94ea&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":""}