{"version":3,"sources":["webpack:///./src/components/physics/fluids/bernoulli/BernoullisPrinciple.vue?1132","webpack:///./src/components/physics/fluids/bernoulli/BernoullisPrinciple.vue","webpack:///./src/components/physics/fluids/bernoulli/Boxes.js","webpack:///src/components/physics/fluids/bernoulli/BernoullisPrinciple.vue","webpack:///./src/components/physics/fluids/bernoulli/BernoullisPrinciple.vue?428e","webpack:///./src/components/physics/fluids/bernoulli/BernoullisPrinciple.vue?d63e"],"names":["ref","attrs","_c","staticClass","_v","staticStyle","_vm","Boxes","box1","brd","JXG","JSXGraph","initBoard","axis","boundingbox","showCopyright","pan","enabled","zoom","showNavigation","suspendUpdate","col","width","p1","create","name","size","face","strokeColor","fillColor","shadow","p2","fixed","p3","p4","withLines","v2","v3","v4","g1","g2","g3","Y","g4","strokeWidth","vel1","baseline","highline","withTicks","withLabel","pre1","fontSize","rho","A1","Math","abs","A2","vv2","Value","A2overA1","P2","pow","on","moveTo","X","toFixed","useMathJax","parse","unsuspendUpdate","data","v1","P1","undefined","created","_this","title","$store","commit","newTopics","img","action","goto","newshowhome","newPhys","mounted","MathJax","Hub","Queue","component","staticRenderFns"],"mappings":"kHAAA,W,qECA4D,EAAU,W,IAAgBA,EAAI,KAAQ,EAAK,EAAI,S,OAAqyC,iBAAO,IAAK,SAA4FA,GAAI,6xCAAc,IAAK,QAAo3EA,GAAI,wFAAa,IAAK,eAAyuBA,GAAI,+2EAAY,IAAK,cAAwEC,GAAK,GAAC,guB,IAAC,a,CAAa,6DAAoB,U,MAAM,CAA4B,WAAIC,aAAa,QAAED,IAAM,+BAAoB,UAAE,MAAK,CAAOE,iBAAY,K,CAAsC,QAAQ,C,YAAiB,yBAAO,YAAC,CAACF,MAAM,QAAC,OAAK,SAAS,MAAM,CACl9J,gBACyC,IAAsB,EAAmBG,Y,IAAmJC,O,EAAa,W,OAA0B,2JAAE,YAAWC,CACxR,6B,gSCHIC,EAAQ,CACVC,KAAM,WACF,IAAIC,EAAMC,IAAIC,SAASC,UAAU,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Q,GAAI,MAAO,CAACd,SAAS,GAAInB,OAAO,IACtGvB,EAAI2D,oBAGG7D,ICiBA,GACfkB,KAAA,qBACA4C,KAAA,WACA,OACAC,GAAA,EACAC,GAAA,EACAnB,IAAA,EACAhB,QAAAoC,EACAZ,QAAAY,IAGAC,QAAA,eAAAC,EAAA,KAEAC,EAAA,wBACA,KAAAC,OAAAC,OAAA,yBAAAF,GACA,KAAAC,OAAAC,OAAA,wBAAAF,GACA,IAAAG,EAAA,CACA,CAAAH,MAAA,sCAAAI,IAAA,sBAAAC,OAAA,kBAAAN,EAAAO,KAAA,WACA,CAAAN,MAAA,sCAAAI,IAAA,sBAAAC,OAAA,kBAAAN,EAAAO,KAAA,gBACA,CAAAN,MAAA,sBAAAI,IAAA,sBAAAC,OAAA,kBAAAN,EAAAO,KAAA,gBACA,CAAAN,MAAA,+BAAAI,IAAA,sBAAAC,OAAA,kBAAAN,EAAAO,KAAA,UACA,CAAAN,MAAA,2CAAAI,IAAA,mBAAAC,OAAA,kBAAAN,EAAAO,KAAA,gBAEA,KAAAL,OAAAC,OAAA,2BAAAC,GACA,IAAAI,GAAA,EACA,KAAAN,OAAAC,OAAA,4BAAAK,GACA,IAAAC,GAAA,EACA,KAAAP,OAAAC,OAAA,yBAAAM,IAEAC,QAAA,WACAC,QAAAC,IAAAC,MAAA,WAAAF,QAAAC,MACA/E,EAAAC,KAAA,KAAA8D,GAAA,KAAAC,GAAA,KAAAnB,OCvI0Y,I,wBCQtYoC,EAAY,eACd,EACA,EACAC,GACA,EACA,KACA,KACA,MAIa,aAAAD,E","file":"js/chunk-e462f682.037c2231.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!./BernoullisPrinciple.vue?vue&type=style&index=0&id=2eabfa8c&prod&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h3',{ref:\"intro\"},[_vm._v(\"\\n Statement of Bernoulli's Principle\\n \")]),_c('p',[_vm._v(\"\\n Bernoulli's principle states that for an inviscid, incompressible flow, the sum of static head,\\n kinetic head and hydrostatic head remains constant along a streamline.\\n Let \\\\(P\\\\) be the static presure, \\\\(v\\\\) be the velocity and \\\\(h\\\\) be the elevation of a point along the streamline.\\n Then, according to Bernoulli's principle:\\n $$ P + \\\\frac{1}{2} \\\\rho v^2 + \\\\rho g h = constant $$\\n Thus, Bernoulli's principle can be used to relate pressure, velocity and elevation\\n at any two points along a streamline. For example:\\n $$ P_1 + \\\\frac{1}{2} \\\\rho v_{1}^{2} + \\\\rho g z_1 = P_2 + \\\\frac{1}{2} \\\\rho v_{2}^{2} + \\\\rho g z_{2} $$\\n \")]),_c('p',[_vm._v(\"\\n Further, for a constant elevation flow i.e. \\\\(z_1 = z_2\\\\), Bernoulli's equation becomes:\\n $$ P_1 + \\\\frac{1}{2} \\\\rho v_{1}^{2} = P_2 + \\\\frac{1}{2} \\\\rho v_{2}^{2} $$\\n along a streamline in an inviscid, incompressible flow.\\n Thus, an increase in fluid velocity is accompanied by a decrease in fluid pressure, and vice versa.\\n\\n Bernoulli's principle has a number of applications ranging from velocity measurement in a pitot tube,\\n design of lift in airfoils, to design of hydraulic ducts in chemical plants.\\n \")]),_c('h3',{ref:\"appl\"},[_vm._v(\"\\n Conditions for Applicabiilty of Bernoulli's Principle\\n \")]),_vm._m(0),_c('h3',{ref:\"derivations\"},[_vm._v(\"\\n Derivation of Bernoulli's principle\\n \")]),_c('p',[_vm._v(\"\\n Bernoulli's principle is essentially a statement of conservation of total energy. The real fluids always have viscous losses due to viscosity (resulting in inter-layer frictions).\\n Bernoulli's principle is an idealization based on the notion of an inviscid flow. During such a flow, the total energy of the fluid remains constant along a streamline. The total energy of a fluid is comprised of\\n the potential energy (due to the action of gravity on the fluid) and the kinetic energy (due to velocity of the fluid elements). Now, consider a fluid element of volume \\\\(\\\\Delta V\\\\) traveling from point '1' to point '2' along a duct\\n as shown in the figure below.\\n The change in gravitational potential energy of this fluid element is given as:\\n $$ \\\\Delta \\\\mathcal U = \\\\rho g \\\\Delta V (h_1 - h_2) $$\\n where \\\\(\\\\rho\\\\) is the density of the fluid element, \\\\(h_1\\\\) is the elevation of section '1' and \\\\(h_2\\\\) is the elevation of section '2'.\\n The change in kinetic energy of this fluid element is given as:\\n $$ \\\\Delta \\\\mathcal K = \\\\frac{1}{2} \\\\rho \\\\Delta V (v_2^{2} - v_1^{2}) $$\\n where \\\\(v_1\\\\) and \\\\(v_2\\\\) are fluid velocities at sections '1' and '2', respectively.\\n The external work done on the fluid element is given as:\\n $$ \\\\mathcal W_{ext} = \\\\delta(P\\\\ \\\\Delta V) = \\\\delta P \\\\Delta V + P \\\\delta \\\\Delta V$$\\n Since the flow is incompressible, we have \\\\(\\\\delta V = 0\\\\). Thus, we have:\\n $$ \\\\mathcal W_{ext} = (P_2 - P_1) V $$\\n where \\\\(P_1 \\\\) is the fluid pressure at point '1' of the streamline, and \\\\(P_2\\\\) is the fluid pressure at point '2' of the streamline.\\n Now, according to the work-energy theorem, the change in total energy should equal the external work done on the fluid element. Mathematically, it can be expressed as:\\n $$\\\\mathcal W_{ext} = \\\\Delta \\\\mathcal K + \\\\Delta \\\\mathcal U$$\\n Substituting the various values, we obtain:\\n $$ (P_1 - P_2) \\\\Delta V = \\\\frac{1}{2} \\\\rho \\\\Delta V (v_2^{2} - v_1^{2}) + \\\\rho g \\\\Delta V (h_2 - h_1) $$\\n Upon rearranging, we obtain:\\n $$ P_1 + \\\\frac{1}{2} \\\\rho v_1^{2} + \\\\rho g h_1 = P_2 + \\\\frac{1}{2} \\\\rho v_2^{2} + \\\\rho g h_2 $$\\n Then, the general expression for Bernoulli's equation is:\\n $$ P +\\\\frac{1}{2} \\\\rho v_1^{2} + \\\\rho gh = constant $$\\n \")]),_c('h3',{ref:\"continuity\"},[_vm._v(\"\\n Continuity Equation\\n \")]),_c('br'),_c('p',[_vm._v(\"\\n For incompressible flows, the velocity of a fluid element can be related to the geometry of the duct via continuity equation. The continuity equation states:\\n $$ A_1 v_1 = A_2 v_2 $$\\n where \\\\(A_1\\\\) and \\\\(A_2\\\\) are the cross-sectional areas at the two sections, and \\\\(v_1\\\\) and \\\\(v_2\\\\) are the respective velocities at those sections. While Bernoulli's equation is a statement of conservation of energy, the continuity equation is a statement of the conservation of mass.\\n Bernoulli's equation in conjunction with continuity equation allows us\\n to fully determined fluid pressure and velocity at any section along\\n the streamline.\\n \")]),_c('h3',{ref:\"PlayGraph\"},[_vm._v(\"\\n PlayGraph: Fluid Flow in a Vertical Duct\\n \")]),_c('v-img',{attrs:{\"contain\":\"\",\"max-height\":\"300px\",\"src\":\"assets/bernoullis-law.png\"}}),_c('v-layout',{attrs:{\"justify-center\":\"\"}},[_c('div',{staticClass:\"jxgbox edliy-box-about\",staticStyle:{\"width\":\"800px\",\"height\":\"800px\"},attrs:{\"id\":\"box1\"}})])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_vm._v(\"\\n Bernoulli's equation, in the strictest sense, is applicable only when the following flow conditions\\n are satisfied:\\n \"),_c('ul',{staticStyle:{\"list-style-type\":\"square\"}},[_c('li',[_vm._v(\"\\n Fluid is inviscid ― which means it has zero viscosity and hence the viscous losses are absent.\\n \")]),_c('li',[_vm._v(\"\\n Flow is incompressible ― which means the density of a fluid element along a streamline\\n remains constant.\\n \")])])])\n}]\n\nexport { render, staticRenderFns }","const Boxes = {\r\n box1: function () {\r\n let brd = JXG.JSXGraph.initBoard('box1',{axis:false, boundingbox: [-1, 4, 10, -2], showCopyright: false, pan: {enabled: false}, zoom: {enabled: false}, showNavigation: false});\r\n brd.suspendUpdate();\r\n\r\n var col = 'blue';\r\n let width=0.5;\r\n let aux=(brd.create('point',[2, 2], {name: '', size: 0, face: 'square', strokeColor:'black', fillColor:'yellow', shadow: true,}));\r\n\r\n //First polygon\r\n let p1=(brd.create('point',[1, 1], {name: 'Drag me!', size: 2.5, face: 'square', strokeColor:'black', fillColor:'yellow', shadow: true}));\r\n let p2=(brd.create('point',[2, 1], {name: '', size: 0, strokeColor:col, fillColor:col, fixed: true}));\r\n let p3=(brd.create('point',[1, width], {name: '', size: 0, strokeColor:col, fillColor:col}));\r\n let p4=(brd.create('point',[2, width], {name: '', size: 0, strokeColor:col, fillColor:col, fixed: true}));\r\n brd.create('polygon', [p1,p3,p4,p2], {fillColor: '#800000', strokeColor: '#800000',withLines:false});\r\n //var ele=brd.create('slider',[[2,0],[2,5],[0,2,5]],{size:1});\r\n //Second polygon\r\n let v1=(brd.create('point',[2, 1-width*0.6], {name: '', size: 0, fixed: true}));\r\n let v2=(brd.create('point',[2, 2], {name: 'Drag me!', size: 2.5, face: 'square', strokeColor:'black', fillColor:'yellow', shadow: true,}));\r\n let v3=(brd.create('point',[2+width*0.6, 2], {name: '', size: 0, strokeColor:col, fillColor:col}));\r\n let v4=(brd.create('point',[2+width*0.6, 1-width], {name: '', size: 0, fixed: true}));\r\n brd.create('polygon', [p4,v2,v3,v4], {fillColor: '#800000', strokeColor: '#800000', fixed: true, withLines:false});\r\n //Third polygon\r\n let g1=(brd.create('point',[2+width*0.6, 2-width], {name: '', size: 0}));\r\n let g2=(brd.create('point',[2+width*0.6, 2], {name: '', size: 0}));\r\n let g3=(brd.create('point',[3, v2.Y()+0.25], {name: '', size: 0, face: 'square', strokeColor:'black', fillColor:'yellow', shadow: true,}));\r\n let g4=(brd.create('point',[3, v2.Y()-width-0.25], {name: '', size: 0}));\r\n brd.create('polygon', [g1,g2,g3,g4], {fillColor: '#800000', strokeColor: '#800000', strokeWidth:0,withLines:false});\r\n\r\n // Velocity 1 Slider\r\n var vel1 = brd.create('slider',[[5,3.5],[6, 3.5], [1.0, 1.0, 10]],{baseline:{strokeWidth:7, strokeColor:'grey'}, highline:{strokeWidth:7, strokeColor:'#800000'}, face:'square', fillColor:'#800000',strokeColor:'black', withTicks:false, withLabel: false});\r\n\r\n // Preasure 1 Slider\r\n var pre1 = brd.create('slider',[[5,2.5],[6, 2.5], [0, 50, 100]],{baseline:{strokeWidth:7, strokeColor:'grey'}, highline:{strokeWidth:7, strokeColor:'#800000'}, face:'square', fillColor:'#800000',strokeColor:'black', withTicks:false, withLabel: false});\r\n // Entry arrow\r\n brd.create('arrow', [[0, 0.7], [0.5,0.7]], {strokeColor: '#800000', strokeWidth:5});\r\n brd.create('text', [0.2, 1, 'v_1'], {fontSize:20});\r\n\r\n // End arrow\r\n let endArrow = brd.create('arrow', [[3.5,1.7], [4, 1.7]], {strokeColor: '#800000', strokeWidth:5});\r\n brd.create('text', [3.7, 2, 'v_2'], {fontSize:20});\r\n\r\n // Continuity equation A1 * v1 = A2 * v2\r\n // So, v2 = (A1 * v1)/A2\r\n const rho = 1;\r\n\r\n var A1 = function () { return Math.abs(p1.Y()-p3.Y()) };\r\n var A2 = function () { return Math.abs(g3.Y()-g4.Y()) }\r\n let vv2 = function () { return A1() * vel1.Value() / A2() };\r\n let A2overA1=function () { return A2()/A1()};\r\n let P2 = function () {\r\n return pre1.Value() + .5 * rho * Math.pow(vel1.Value(),2) + rho*9.8*0 - 5 * rho * Math.pow(vv2(),2) - rho*9.8*v2.Y()\r\n };\r\n\r\n brd.on('move', function() {\r\n if (p1.Y() < 1){\r\n p1.moveTo([p1.X(), 1]);\r\n }\r\n p1.moveTo([1, p1.Y()]);\r\n p3.moveTo([1, 1-width/2-(p1.Y() - 1 + width/2)]);\r\n\r\n v2.moveTo([2, v2.Y()]);\r\n v3.moveTo([v3.X(), v2.Y()]);\r\n\r\n g1.moveTo([g1.X(), v2.Y()-width]);\r\n g2.moveTo([g2.X(), v2.Y()]);\r\n g3.moveTo([3,v2.Y()+0.25]);\r\n let a = 2-width/2-(g3.Y() - 2 + width/2);\r\n g4.moveTo([3, v2.Y()-width-0.25]);\r\n\r\n });\r\n // Input values\r\n brd.create('text', [5, 3, 'v_1 = '], {fontSize:20, fixed: true});\r\n brd.create('text', [5.5, 3, function () { return vel1.Value().toFixed(2) + ' m/s'}], {fontSize:20, fixed: true});\r\n brd.create('text', [5, 2, 'P_1 = '], {fontSize:20, fixed: true});\r\n brd.create('text', [5.5, 2, function () { return pre1.Value().toFixed(2) + ' MPa'}], {fontSize:20, fixed: true});\r\n brd.create('text', [5, 1.5, '\\\\(\\\\rho = 1 \\\\ kg/m^3\\\\), constant'], {useMathJax: true, parse: false, fontSize: 20, fixed: true});\r\n // Outout values\r\n brd.create('text', [7, 3.5, 'v_2 ='], {fontSize:20, fixed: true});\r\n brd.create('text', [7.5, 3.5, function () { return vv2().toFixed(2) + ' m/s'}], {fontSize:20, fixed: true});\r\n brd.create('text', [7, 3, 'P_2 ='], {fontSize:20, fixed: true});\r\n brd.create('text', [7.5, 3, function () { return P2().toFixed(2) + ' MPa'}], {fontSize:20, fixed: true});\r\n brd.create('text', [7, 2.5, 'A_2/A_1 ='], {fontSize:20, fixed: true});\r\n brd.create('text', [7.8, 2.5, function () { return A2overA1().toFixed(2)+ ' '}], {fontSize:20, fixed: true});\r\n brd.unsuspendUpdate();\r\n },\r\n}\r\nexport default Boxes;\r\n","\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!./BernoullisPrinciple.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!./BernoullisPrinciple.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BernoullisPrinciple.vue?vue&type=template&id=2eabfa8c&\"\nimport script from \"./BernoullisPrinciple.vue?vue&type=script&lang=js&\"\nexport * from \"./BernoullisPrinciple.vue?vue&type=script&lang=js&\"\nimport style0 from \"./BernoullisPrinciple.vue?vue&type=style&index=0&id=2eabfa8c&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":""}