summaryrefslogtreecommitdiff
path: root/Mechanical_Engineering_Thermodynamics/Chapter_19.ipynb
diff options
context:
space:
mode:
authorhardythe12015-01-28 14:31:21 +0530
committerhardythe12015-01-28 14:31:21 +0530
commit9add422993fb2649287260bc91d429a07d1810d5 (patch)
treeef48c2b2579e65b982d3f700c4fa76b81d2496c1 /Mechanical_Engineering_Thermodynamics/Chapter_19.ipynb
parent6e3407ba85ae84e1cee1ae0c972fd32c5504d827 (diff)
downloadPython-Textbook-Companions-9add422993fb2649287260bc91d429a07d1810d5.tar.gz
Python-Textbook-Companions-9add422993fb2649287260bc91d429a07d1810d5.tar.bz2
Python-Textbook-Companions-9add422993fb2649287260bc91d429a07d1810d5.zip
added books
Diffstat (limited to 'Mechanical_Engineering_Thermodynamics/Chapter_19.ipynb')
-rwxr-xr-xMechanical_Engineering_Thermodynamics/Chapter_19.ipynb118
1 files changed, 118 insertions, 0 deletions
diff --git a/Mechanical_Engineering_Thermodynamics/Chapter_19.ipynb b/Mechanical_Engineering_Thermodynamics/Chapter_19.ipynb
new file mode 100755
index 00000000..7bea3b13
--- /dev/null
+++ b/Mechanical_Engineering_Thermodynamics/Chapter_19.ipynb
@@ -0,0 +1,118 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 19 - Reciprocating Expanders and Compressors"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1 - Pg 370"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Calculate the Horsepower output and mean effective pressure\n",
+ "#initialization of varaibles\n",
+ "print '%s' %(\"From tables,\")\n",
+ "h1=1185.3 #B/lb\n",
+ "v1=4.896 #cu ft/lb\n",
+ "v2=23.66 #cu ft/lb\n",
+ "h2=1054.3 #B/lb\n",
+ "Pd1=1 #cu ft\n",
+ "Pd2=0.98 #cu ft\n",
+ "N=300 #rpm\n",
+ "#calculations\n",
+ "Wx=h1-h2\n",
+ "Pd=Pd1+Pd2\n",
+ "Cl=0.05\n",
+ "mf=Pd*(1-Cl*(v2/v1 - 1))/v2\n",
+ "P=Wx*mf*N/(2545./60.)\n",
+ "mep=P*33000./(N*Pd)\n",
+ "#results\n",
+ "print '%s %.3f %s' %(\"Horsepower output =\",P,\"hp\")\n",
+ "print '%s %d %s' %(\"\\n Mean effective pressure =\",mep,\"psf\")\n",
+ "#The answers in the book are a bit different due to round off error.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "From tables,\n",
+ "Horsepower output = 62.679 hp\n",
+ "\n",
+ " Mean effective pressure = 3482 psf\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2 - Pg 370"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Calculate the mass flow rate when the clearences are 3% and 6%\n",
+ "#initialization of varaibles\n",
+ "R=53.34\n",
+ "T1=540. #R\n",
+ "P1=15. #psia\n",
+ "T2=720. #R\n",
+ "P2=60. #psia\n",
+ "PD=150. #cu ft/min\n",
+ "p1=0.03\n",
+ "p2=0.06\n",
+ "#calculations\n",
+ "v1=R*T1/(P1*144.)\n",
+ "vratio=T1*P2/(P1*T2)\n",
+ "Nmf=PD*(1-p1*(vratio-1))/v1\n",
+ "Nmf2=PD*(1-p2*(vratio-1))/v1\n",
+ "#results\n",
+ "print '%s %.1f %s' %(\"For clearance of 3 percent, Mass per min =\",Nmf,\"lb/min\")\n",
+ "print '%s %.1f %s' %(\"\\n For clearance of 6 percent, Mass per min =\",Nmf2,\"lb/min\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "For clearance of 3 percent, Mass per min = 10.6 lb/min\n",
+ "\n",
+ " For clearance of 6 percent, Mass per min = 9.9 lb/min\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file