From 41f1f72e9502f5c3de6ca16b303803dfcf1df594 Mon Sep 17 00:00:00 2001 From: Thomas Stephen Lee Date: Fri, 4 Sep 2015 22:04:10 +0530 Subject: add/remove/update books --- .../Chapter4.ipynb | 720 --------------------- 1 file changed, 720 deletions(-) delete mode 100755 Thermodynamics_An_Engineering_Approach/Chapter4.ipynb (limited to 'Thermodynamics_An_Engineering_Approach/Chapter4.ipynb') diff --git a/Thermodynamics_An_Engineering_Approach/Chapter4.ipynb b/Thermodynamics_An_Engineering_Approach/Chapter4.ipynb deleted file mode 100755 index b9e964f0..00000000 --- a/Thermodynamics_An_Engineering_Approach/Chapter4.ipynb +++ /dev/null @@ -1,720 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 4: Energy Analysis of Closed Systems" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4-2 ,Page No.169" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#Given values\n", - "m=10;#mass in lbm\n", - "Po=60;#steam oressure in psia\n", - "T1=320;#intial temp in F\n", - "T2=400;#final temp in F\n", - "\n", - "#from Table A\u20136E\n", - "v1=7.4863;#at 60 psia and 320 F\n", - "v2=8.3548;#at 60 psia and 400 F\n", - "\n", - "#calculations\n", - "#W = P dV which on integrating gives W = m * P * (V2 - V1)\n", - "W=m*Po*(v2-v1)/5.404;#coverting into Btu from psia-ft^3\n", - "print'work done by the steam during this process %f Btu'%round(W,1)\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "work done by the steam during this process 96.400000 Btu\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4-3 ,Page No.170" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "from math import log\n", - "#given data\n", - "P1=100;#pressure in kPa\n", - "V1=0.4;#intial vol in m^3\n", - "V2=0.1;#final vol in m^3\n", - "\n", - "#calculations\n", - "#for isothermal W = P1*V1* ln(V2/V1)\n", - "W=P1*V1*log(V2/V1);\n", - "print'the work done during this process %f kJ'%round(W,1)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the work done during this process -55.500000 kJ\n" - ] - } - ], - "prompt_number": 1 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4-4 ,Page No.171" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#given data\n", - "V1=0.05;#Volumne of gas in m^3\n", - "P1=200;#Pressure in kPa\n", - "k=150;#Spring constant in kN/m\n", - "A=0.25;#Cross-sectional area in m^2\n", - "\n", - "#calculations\n", - "\n", - "#Part - a\n", - "V2=2*V1;\n", - "x2=(V2-V1)/A;#printlacement of spring\n", - "F=k*x2;#compression force\n", - "P2=P1+F/A;#additional pressure is equivalent the compression of spring\n", - "print'the final pressure inside the cylinder %i kPa'%P2;\n", - "\n", - "#Part - b\n", - "#work done is equivalent to the area of the P-V curve of Fig 4-10\n", - "W=(P1+P2)/2*(V2-V1);#area of trapezoid = 1/2 * sum of parallel sides * dist. b/w them\n", - "print'the total work done by the gas %i kJ'%W;\n", - "\n", - "#Part - c\n", - "x1=0;#intial compression of spring\n", - "Wsp=0.5*k*(x2**2-x1**2);\n", - "print'the fraction of this work done against the spring to compress it %i kJ'%Wsp\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the final pressure inside the cylinder 320 kPa\n", - "the total work done by the gas 13 kJ\n", - "the fraction of this work done against the spring to compress it 3 kJ\n" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4-5 ,Page No.174" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#given values\n", - "m=0.025;#mass of saturated water vapor in kg\n", - "V=120;#rated voltage of heater in V\n", - "I=0.2;#rated current in A\n", - "t=300;#total time taken in sec\n", - "P1=300;#constant pressure in kPa\n", - "Qout=3.7;#heat lost in kJ\n", - "\n", - "#from Table A\u20135\n", - "#at P1 the conditon is sat. vap\n", - "h1=2724.9;\n", - "\n", - "#Calculations\n", - "\n", - "#Part - a\n", - "#therotical proving\n", - "\n", - "#Part - b\n", - "We=V*I*t/1000;#electrical work in kJ\n", - "#from eqn 4 -18 i.e derived in earler part\n", - "#it states it Ein - Eout = Esystem\n", - "# it applies as Win - Qout = H = m (h2 - h1)\n", - "h2=(We-Qout)/m+h1;\n", - "##from Table A\u20135\n", - "#at h2 we get\n", - "P2=300;\n", - "T=200;\n", - "print'the final temperature of the steam %i C'%T\n" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "the final temperature of the steam 200 C\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 4-6 ,Page No.176" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "#given data\n", - "m=5.0;#mass of water in kg\n", - "P1=200;#pressure on one side in kPa\n", - "T=25;#temperature in C\n", - "\n", - "#from Table A\u20134\n", - "#the liq. is in compressed state at 200 kPa and 25 C\n", - "vf=0.001;\n", - "vg=43.340;\n", - "uf=104.83;\n", - "ufg=2304.3;\n", - "v1=vf;\n", - "u1=uf;\n", - "\n", - "#calculations\n", - "\n", - "#Part - a\n", - "V1=m*v1;\n", - "Vtank=2*V1;\n", - "print'the volume of the tank %f m^3'%round(Vtank,2);\n", - "\n", - "#Part - b\n", - "V2=Vtank;\n", - "v2=V2/m;\n", - "#from Table A\u20134 \n", - "# at T=25 vf=0.101003 m^3/kg and vg=43.340 m^3/kg\n", - "# vf