diff options
author | hardythe1 | 2015-05-05 14:21:39 +0530 |
---|---|---|
committer | hardythe1 | 2015-05-05 14:21:39 +0530 |
commit | fba055ce5aa0955e22bac2413c33493b10ae6532 (patch) | |
tree | be70ef4fccd07c9c88de778014219201b4ea971f /Thermodynamics:_From_concepts_to_applications/Chapter16_1.ipynb | |
parent | 67068710030ddd6b6c809518c34af2e04e0bf7ca (diff) | |
download | Python-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.tar.gz Python-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.tar.bz2 Python-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.zip |
add books
Diffstat (limited to 'Thermodynamics:_From_concepts_to_applications/Chapter16_1.ipynb')
-rwxr-xr-x | Thermodynamics:_From_concepts_to_applications/Chapter16_1.ipynb | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/Thermodynamics:_From_concepts_to_applications/Chapter16_1.ipynb b/Thermodynamics:_From_concepts_to_applications/Chapter16_1.ipynb deleted file mode 100755 index b1fb1e8a..00000000 --- a/Thermodynamics:_From_concepts_to_applications/Chapter16_1.ipynb +++ /dev/null @@ -1,109 +0,0 @@ -{
- "metadata": {
- "name": "",
- "signature": "sha256:e59b2fd71b4552cea44cac8d6a7db5757cb1bae32cfc202beb06aefa6735b63c"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "heading",
- "level": 1,
- "metadata": {},
- "source": [
- "Chapter16-equlibrium"
- ]
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example1-pg349"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "import math\n",
- "#calculate entropy at the equllibrium state\n",
- "##initialisation of variables\n",
- "m= 10. ##kg\n",
- "R= 8.314 ##J/mol K\n",
- "k= 1.4\n",
- "M= 29. ##kg\n",
- "TA= 20. ##C\n",
- "TB= 200. ##C\n",
- "##CALCULATIONS\n",
- "T= (TA+TB)/2\n",
- "dS= 0.5*m*R*(math.log(273.15+T)*math.log(273.15+T))/((273.15+TA)*(273.15+TB))/((k-1)*M)\n",
- "##RESULTS\n",
- "print'%s %.4f %s'% ('entropy at the equillibrium state=',dS,'kJ/K')\n",
- "\n",
- "\n",
- "##answer GIVEN IN THE TEXTBOOK IS WRONG\n"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "entropy at the equillibrium state= 0.0009 kJ/K\n"
- ]
- }
- ],
- "prompt_number": 2
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example2-pg357"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "import math\n",
- "#calcualte equlibrium pressure and diameter of droplet\n",
- "##initialisation of variables\n",
- "psat= 143.3 ##kPa\n",
- "R= 8.314 ##J/mol K\n",
- "T= 110. ##C\n",
- "m= 18.02 ##gms\n",
- "pv= 150. ##kPa\n",
- "v= 0.001052 ##m^3/kg\n",
- "s= math.pow(10,-3)\n",
- "##CALCULATIONS\n",
- "PL= psat+((R*(273.15+T)/(m*0.0010502))*math.log(pv/psat))\n",
- "D= (4*s/(PL-pv))*(75.64-13.91*(T/100)-3*(T/100)*(T/100))*10*10*10\n",
- "##RESULTS\n",
- "print'%s %.f %s'% ('equilibrium pressure=',PL-13,'kPa')\n",
- "print'%s %.4f %s'% ('diameter of droplet=',D,'mm')\n"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "equilibrium pressure= 7822 kPa\n",
- "diameter of droplet= 0.0295 mm\n"
- ]
- }
- ],
- "prompt_number": 3
- }
- ],
- "metadata": {}
- }
- ]
-}
\ No newline at end of file |