summaryrefslogtreecommitdiff
path: root/Thermodynamics:_From_concepts_to_applications/Chapter15_2.ipynb
diff options
context:
space:
mode:
authorhardythe12015-04-07 15:58:05 +0530
committerhardythe12015-04-07 15:58:05 +0530
commit92cca121f959c6616e3da431c1e2d23c4fa5e886 (patch)
tree205e68d0ce598ac5caca7de839a2934d746cce86 /Thermodynamics:_From_concepts_to_applications/Chapter15_2.ipynb
parentb14c13fcc6bb6d01c468805d612acb353ec168ac (diff)
downloadPython-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.gz
Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.bz2
Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.zip
added books
Diffstat (limited to 'Thermodynamics:_From_concepts_to_applications/Chapter15_2.ipynb')
-rwxr-xr-xThermodynamics:_From_concepts_to_applications/Chapter15_2.ipynb101
1 files changed, 101 insertions, 0 deletions
diff --git a/Thermodynamics:_From_concepts_to_applications/Chapter15_2.ipynb b/Thermodynamics:_From_concepts_to_applications/Chapter15_2.ipynb
new file mode 100755
index 00000000..ac478dc7
--- /dev/null
+++ b/Thermodynamics:_From_concepts_to_applications/Chapter15_2.ipynb
@@ -0,0 +1,101 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:f3cec47bab65968aba0bcccd8c2f1c496fe12768e6187c410c88539ccdcef3ee"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter15-multicomponet systems"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example1-pg436"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#calculate volume of the phase\n",
+ "##initialisation of variables\n",
+ "m2= 50. ##gms\n",
+ "M= 46. ##gms\n",
+ "m1= 50. ##gms\n",
+ "M1= 18. ##gms\n",
+ "v1= 17402. ##cm^3/kmol\n",
+ "v2= 56090. ##cm^3/kmol\n",
+ "##CALCULATIONS\n",
+ "x2= (m2/M)/((m2/M)+(m1/M1))\n",
+ "V= (v1*(m1/M1)+v2*(m2/M))*math.pow(10,-3)\n",
+ "##RESULTS\n",
+ "print'%s %.1f %s'% ('volume of the phase=',V,'cm^3')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "volume of the phase= 109.3 cm^3\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example3-pg450"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#calcualte difference in enthalpy and amount of heat removed\n",
+ "##initialisation of variables\n",
+ "nw= 9 ##kmol\n",
+ "na= 1 ##kmol\n",
+ "##CALCULATIONS\n",
+ "dh= 75*nw*nw/math.pow(na+1.8*nw,2)\n",
+ "Q= -75*na*nw/(nw+1.8*na)\n",
+ "##RESULTS\n",
+ "print'%s %.2f %s'% ('difference in enthalpy=',dh,'kJ/kg')\n",
+ "print'%s %.1f %s'% ('amount of heat removed=',Q,'kJ')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference in enthalpy= 20.53 kJ/kg\n",
+ "amount of heat removed= -62.5 kJ\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file