summaryrefslogtreecommitdiff
path: root/Fluid_Mechanics/Chapter_8.ipynb
blob: cd940a0c71422dab8009bf3c50df6c57c8ade639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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": {}
  }
 ]
}