diff options
author | kinitrupti | 2017-05-12 18:53:46 +0530 |
---|---|---|
committer | kinitrupti | 2017-05-12 18:53:46 +0530 |
commit | f270f72badd9c61d48f290c3396004802841b9df (patch) | |
tree | bc8ba99d85644c62716ce397fe60177095b303db /Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter1.ipynb | |
parent | 64d949698432e05f2a372d9edc859c5b9df1f438 (diff) | |
download | Python-Textbook-Companions-f270f72badd9c61d48f290c3396004802841b9df.tar.gz Python-Textbook-Companions-f270f72badd9c61d48f290c3396004802841b9df.tar.bz2 Python-Textbook-Companions-f270f72badd9c61d48f290c3396004802841b9df.zip |
Removed duplicates
Diffstat (limited to 'Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter1.ipynb')
-rwxr-xr-x | Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter1.ipynb | 229 |
1 files changed, 229 insertions, 0 deletions
diff --git a/Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter1.ipynb b/Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter1.ipynb new file mode 100755 index 00000000..ecf3e043 --- /dev/null +++ b/Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter1.ipynb @@ -0,0 +1,229 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 1 - Survey of Dimensions and Units"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ " Example 1 - Pg 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Calculate the force required to accelerate\n",
+ "#Initialization of variables\n",
+ "gc=32.1739 #lbm ft/lbf s^2\n",
+ "m=10 #lbm\n",
+ "a=10 #ft/s^2\n",
+ "#calculations\n",
+ "F=m*a/gc\n",
+ "#results\n",
+ "print '%s %.3f %s' %(\"Force to accelerate =\",F,\"lbf\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force to accelerate = 3.108 lbf\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2 - Pg 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the force required to accelerate\n",
+ "#Initialization of variables\n",
+ "gc=32.1739 #lbm ft/lbf s^2\n",
+ "m=10 #lbm\n",
+ "a=gc #ft/s^2\n",
+ "#calculations\n",
+ "F=m*a/gc\n",
+ "#results\n",
+ "print '%s %d %s' %(\"Force to accelerate =\",F,\"lbf\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force to accelerate = 10 lbf\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3 - Pg 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the force required to accelerate\n",
+ "#Initialization of variables\n",
+ "gc=32.1739 #lbm ft/lbf s^2\n",
+ "F=5.00e-9 #lbf hr/ft^2\n",
+ "#calculations\n",
+ "F2=F*3600*gc\n",
+ "#results\n",
+ "print '%s %.2e %s' %(\"Force required =\",F2,\"lbm/ft sec\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force required = 5.79e-04 lbm/ft sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ " Example 4 -Pg 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the required velocity\n",
+ "#Initialization of variables\n",
+ "v=88 #ft/s\n",
+ "#calculations\n",
+ "v2=v*3600./5280.\n",
+ "#results\n",
+ "print '%s %d %s' %(\"velocity =\",v2,\"mph\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "velocity = 60 mph\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5 - Pg 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the required velocity\n",
+ "#Initialization of variables\n",
+ "v=88 #ft/s\n",
+ "#calculations\n",
+ "v2=v*1/5280.*3600.\n",
+ "#results\n",
+ "print '%s %d %s' %(\"velocity =\",v2,\"mph\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "velocity = 60 mph\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6 - Pg 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the density of water and specific weight in this system\n",
+ "#Initialization of variables\n",
+ "rho=62.305 #lbf/ft^2\n",
+ "g=32.1739 #ft/s^2\n",
+ "#calculations\n",
+ "gam=rho/g\n",
+ "#results\n",
+ "print '%s %.3f %s' %(\"Density of water in this system =\",gam,\"lbf/ft^2\")\n",
+ "print '%s %.3f %s' %(\"\\n Specific weight =\",rho,\"lbf/ft^2\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Density of water in this system = 1.937 lbf/ft^2\n",
+ "\n",
+ " Specific weight = 62.305 lbf/ft^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |