summaryrefslogtreecommitdiff
path: root/sample_notebooks/RavirajJadeja
diff options
context:
space:
mode:
authorThomas Stephen Lee2015-08-28 16:53:23 +0530
committerThomas Stephen Lee2015-08-28 16:53:23 +0530
commitdb0855dbeb41ecb8a51dde8587d43e5d7e83620f (patch)
treeb95975d958cba9af36cb1680e3f77205354f6512 /sample_notebooks/RavirajJadeja
parent5a86a20b9de487553d4ef88719fb0fd76a5dd6a7 (diff)
downloadPython-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.tar.gz
Python-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.tar.bz2
Python-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.zip
add books
Diffstat (limited to 'sample_notebooks/RavirajJadeja')
-rwxr-xr-xsample_notebooks/RavirajJadeja/ch16.ipynb64
1 files changed, 64 insertions, 0 deletions
diff --git a/sample_notebooks/RavirajJadeja/ch16.ipynb b/sample_notebooks/RavirajJadeja/ch16.ipynb
new file mode 100755
index 00000000..2b395898
--- /dev/null
+++ b/sample_notebooks/RavirajJadeja/ch16.ipynb
@@ -0,0 +1,64 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:3c3856bc217e5f495e078375001a6745906e09c45dfca2c5d1fe105500ef94b8"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 16 : Machinery and Equipment"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.2 Page No : 16-11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\t\n",
+ "#initialisation of variables\n",
+ "p = 500\t#ft\n",
+ "p1 = 6\t#in\n",
+ "t = 500\t#cfm\n",
+ "p2 = 7\t#psig\n",
+ "P = p2+14.7\t#psia\n",
+ "T = 520*(P/14.7)**0.283\t#F\n",
+ "f = 0.048*p1**0.027/(t)**0.148\t#in\n",
+ "\t\n",
+ "#CALCULATIONS\n",
+ "delP = 20.*10**-3*p*T*(t)**2/(38*10**3*P*p1**5)\t#psia\n",
+ "\t\n",
+ "#RESULTS\n",
+ "print 'the pressure drop = %.2f psia'%(delP)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the pressure drop = 0.23 psia\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file