diff options
author | kinitrupti | 2017-05-12 18:40:35 +0530 |
---|---|---|
committer | kinitrupti | 2017-05-12 18:40:35 +0530 |
commit | 64d949698432e05f2a372d9edc859c5b9df1f438 (patch) | |
tree | 012fd5b4ac9102cdcf5bc56305e49d6714fa5951 /Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb | |
parent | 9c6ab8cbf3e1a84c780386abf4852d84cdd32d56 (diff) | |
download | Python-Textbook-Companions-64d949698432e05f2a372d9edc859c5b9df1f438.tar.gz Python-Textbook-Companions-64d949698432e05f2a372d9edc859c5b9df1f438.tar.bz2 Python-Textbook-Companions-64d949698432e05f2a372d9edc859c5b9df1f438.zip |
Revised list of TBCs
Diffstat (limited to 'Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb')
-rw-r--r--[-rwxr-xr-x] | Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb b/Basic_And_Applied_Thermodynamics_by_P._K._Nag/Chapter10.ipynb index cf4b44fb..49866ab5 100755..100644 --- 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", |