diff options
author | kinitrupti | 2017-05-12 18:53:46 +0530 |
---|---|---|
committer | kinitrupti | 2017-05-12 18:53:46 +0530 |
commit | 6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d (patch) | |
tree | 22789c9dbe468dae6697dcd12d8e97de4bcf94a2 /Fluid_Mechanics_by_John_F._Douglas/Chapter_8.ipynb | |
parent | d36fc3b8f88cc3108ffff6151e376b619b9abb01 (diff) | |
download | Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.gz Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.bz2 Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.zip |
Removed duplicates
Diffstat (limited to 'Fluid_Mechanics_by_John_F._Douglas/Chapter_8.ipynb')
-rwxr-xr-x | Fluid_Mechanics_by_John_F._Douglas/Chapter_8.ipynb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/Fluid_Mechanics_by_John_F._Douglas/Chapter_8.ipynb b/Fluid_Mechanics_by_John_F._Douglas/Chapter_8.ipynb new file mode 100755 index 00000000..cd940a0c --- /dev/null +++ b/Fluid_Mechanics_by_John_F._Douglas/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 |