summaryrefslogtreecommitdiff
path: root/Fluid_Mechanics/Chapter_8.ipynb
diff options
context:
space:
mode:
authornice2014-08-27 16:12:51 +0530
committernice2014-08-27 16:12:51 +0530
commit238d7e632aecde748a97437c2b5774e136a3b4da (patch)
treea05d96f81cf72dc03ceec32af934961cf4ccf7dd /Fluid_Mechanics/Chapter_8.ipynb
parent7e82f054d405211e1e8760524da8ad7c9fd75286 (diff)
downloadPython-Textbook-Companions-238d7e632aecde748a97437c2b5774e136a3b4da.tar.gz
Python-Textbook-Companions-238d7e632aecde748a97437c2b5774e136a3b4da.tar.bz2
Python-Textbook-Companions-238d7e632aecde748a97437c2b5774e136a3b4da.zip
adding book
Diffstat (limited to 'Fluid_Mechanics/Chapter_8.ipynb')
-rwxr-xr-xFluid_Mechanics/Chapter_8.ipynb73
1 files changed, 73 insertions, 0 deletions
diff --git a/Fluid_Mechanics/Chapter_8.ipynb b/Fluid_Mechanics/Chapter_8.ipynb
new file mode 100755
index 00000000..cd940a0c
--- /dev/null
+++ b/Fluid_Mechanics/Chapter_8.ipynb
@@ -0,0 +1,73 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b0713ad3f7c2f18448b69f687926b2d86e094144766f7b44f7fc20525a516074"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 8: Dimensional Analysis"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.1, Page 268"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "import math\n",
+ "\n",
+ "\n",
+ " #Initializing the variables\n",
+ "P1 = 57; #Power in SI\n",
+ "M = 1/14.6; #Ratio of mass in SI/British\n",
+ "L = 1/0.3048; #Ratio of length in SI/British\n",
+ "T = 1; #Ratio of time in SI/British\n",
+ "\n",
+ "#Calculations\n",
+ "'''\n",
+ "n1 is the horsepower and N1 is the corresponding number of British units (ft*lbf/second),\n",
+ "then N1 = 550*n1.\n",
+ "Similarly, for the SI system, n2 in kW,\n",
+ " N2 = 1000*n2\n",
+ "''' \n",
+ "N = (T**3)/(M*L**2) # N2/N1\n",
+ "n = N*550/1000 #n2/n1 \n",
+ "P2 = n*P1 ; #Power in kW\n",
+ "\n",
+ "print \"Power in kW :\",round(P2,1)\n",
+ "print \"Conversion Factor :\",round(n,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power in kW : 42.5\n",
+ "Conversion Factor : 0.746\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file