From 64d949698432e05f2a372d9edc859c5b9df1f438 Mon Sep 17 00:00:00 2001 From: kinitrupti Date: Fri, 12 May 2017 18:40:35 +0530 Subject: Revised list of TBCs --- .../Chapter10.ipynb | 30 ++++++++++++---------- 1 file changed, 16 insertions(+), 14 deletions(-) mode change 100755 => 100644 Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb (limited to 'Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb') diff --git a/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb b/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb old mode 100755 new mode 100644 index cf4b44fb..49866ab5 --- a/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb +++ b/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb @@ -16,7 +16,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 3, "metadata": { "collapsed": false }, @@ -43,6 +43,7 @@ } ], "source": [ + "import math\n", "Pa = 1.5 # Pressure in vessel A in MPa\n", "Ta = 50 # Temperature in vessel A in K\n", "ca = 0.5 # Content in vessel A in kg mol\n", @@ -85,7 +86,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 4, "metadata": { "collapsed": false }, @@ -110,19 +111,19 @@ "\n", " The change in enthalpy is 373.92 kJ\n", "\n", - " The change in entropy is 0.0 kJ/k\n" + " The change in entropy is 0.885987320143 kJ/k\n" ] } ], "source": [ - "\n", + "import math\n", "cp = 1.968 # Heat capacity in kJ/kg\n", "cv = 1.507 # Heat capacity in kJ/kg\n", "R_ = 8.314 # Gas constant\n", "V = 0.3 # Volume of chamber in m**3\n", "m = 2 # mass of gas in kg\n", - "T1 = 5# Initial gas temperature in degree Celsius\n", - "T2 = 100 # Final gas temperature in degree Celsius\n", + "T1 = 5.0# Initial gas temperature in degree Celsius\n", + "T2 = 100.0 # Final gas temperature in degree Celsius\n", "R = cp-cv # Universal gas constant\n", "mu = R_/R # molecular weight\n", "Q12 = m*cv*(T2-T1) # The heat transfer at constant volume\n", @@ -151,7 +152,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 5, "metadata": { "collapsed": false }, @@ -198,7 +199,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 6, "metadata": { "collapsed": false }, @@ -217,7 +218,7 @@ } ], "source": [ - "\n", + "import math\n", "m = 0.5 # mass of air in kg\n", "P1 = 80 # Initial pressure kPa\n", "T1 = 60 # Initial temperature in degree Celsius\n", @@ -251,7 +252,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 7, "metadata": { "collapsed": false }, @@ -272,6 +273,7 @@ } ], "source": [ + "import math\n", "P1 = 700 # Initial pressure of gas in kPa\n", "T1 = 260 # Initial temperature of gas in degree Celcius \n", "T3 = T1 # Temperature at state 3\n", @@ -308,7 +310,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 8, "metadata": { "collapsed": false }, @@ -329,7 +331,7 @@ } ], "source": [ - "\n", + "import math\n", "P1 = 300 # Initial gas pressure in kPa\n", "V1 = 0.07 # Initial volume of gas in m**3\n", "m = 0.25 # Mass of gas in kg\n", @@ -527,7 +529,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 9, "metadata": { "collapsed": false }, @@ -550,7 +552,7 @@ } ], "source": [ - "\n", + "import math\n", "an = 20.183 # molecular weight of neon\n", "Pc = 2.73 # Critical pressure\n", "Tc = 44.5 # Critical tmperature in Kelvin\n", -- cgit