summaryrefslogtreecommitdiff
path: root/Industrial_Instrumentation/Chapter_3.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Industrial_Instrumentation/Chapter_3.ipynb')
-rw-r--r--Industrial_Instrumentation/Chapter_3.ipynb526
1 files changed, 274 insertions, 252 deletions
diff --git a/Industrial_Instrumentation/Chapter_3.ipynb b/Industrial_Instrumentation/Chapter_3.ipynb
index 6d26bc18..b7ff3a1a 100644
--- a/Industrial_Instrumentation/Chapter_3.ipynb
+++ b/Industrial_Instrumentation/Chapter_3.ipynb
@@ -1,391 +1,413 @@
{
"metadata": {
- "name": "Chapter_3"
- },
- "nbformat": 2,
+ "name": "",
+ "signature": "sha256:40aab97a0942d997de9cd8ee539182af9fd67e045ac34df8f9ba65083df3fe50"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h1>Chapter_3: Force Torque and Velocity<h1>"
]
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.1, Page Number: 163<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''Force calculation'''",
- "",
- "#variable declaration",
- "m1=20 #mass of the body in Kg ",
- "a=5 #acceleration in m/s^2",
- "",
- "#calculation",
- "F=m1*a",
- "",
- "#result",
+ "\n",
+ "\n",
+ "#variable declaration\n",
+ "m1=20 #mass of the body in Kg \n",
+ "a=5 #acceleration in m/s^2\n",
+ "\n",
+ "#calculation\n",
+ "F=m1*a\n",
+ "\n",
+ "#result\n",
"print('F = %d Newtons'%F)"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
"F = 100 Newtons"
]
}
- ],
+ ],
"prompt_number": 6
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.2, Page Number: 163<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''Weight calculation'''",
- "",
- "#variable declaration",
- "m1=50 #mass of the body in Kg ",
- "g1=9.8 #acceleration due to gravity",
- "",
- "#calculation",
- "W2=m1*g1",
- "",
- "#result",
+ "\n",
+ "\n",
+ "#variable declaration\n",
+ "m1=50 #mass of the body in Kg \n",
+ "g1=9.8 #acceleration due to gravity\n",
+ "\n",
+ "#calculation\n",
+ "W2=m1*g1\n",
+ "\n",
+ "#result\n",
"print('W = %d Newtons = %d kgf' %(W2,m1))"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
"W = 490 Newtons = 50 kgf"
]
}
- ],
+ ],
"prompt_number": 7
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.3, Page Number: 164<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''calculation of specific gravity'''",
- "",
- "#variable declaration",
- "wt_material=2500.0 #weight of 1 m^3 material",
- "wt_water=1000.0 #weight of 1 m^3 water",
- "",
- "#calculation",
- "spe_grav=wt_material/wt_water",
- "",
- "#result",
+ "\n",
+ "\n",
+ "#variable declaration\n",
+ "wt_material=2500.0 #weight of 1 m^3 material\n",
+ "wt_water=1000.0 #weight of 1 m^3 water\n",
+ "\n",
+ "#calculation\n",
+ "spe_grav=wt_material/wt_water\n",
+ "\n",
+ "#result\n",
"print('Specific gravity of the material = %.1f' %spe_grav)"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
"Specific gravity of the material = 2.5"
]
}
- ],
+ ],
"prompt_number": 8
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.4, Page Number: 164<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''Estimation of uncertainty due to sensitivity'''",
- "",
- "import math",
- "#variable declaration",
- "L=20.0 # length in cm",
- "W=2000.0 # Weight of mass in gm ",
- "db=0.02 # length in cm ",
- "Wb=100.0 # Weight of mass in gm ",
- "dG=0.5 # length in cm",
- "",
- "#calculation",
- "S=L/(2*W*db+Wb*dG)",
- "fi=0.2",
- "DeltaW=fi*math.pi/(180*S)",
- "",
- "#result",
- "print('S = %.3f rad/g' %S)",
+ "\n",
+ "\n",
+ "import math\n",
+ "#variable declaration\n",
+ "L=20.0 # length in cm\n",
+ "W=2000.0 # Weight of mass in gm \n",
+ "db=0.02 # length in cm \n",
+ "Wb=100.0 # Weight of mass in gm \n",
+ "dG=0.5 # length in cm\n",
+ "\n",
+ "#calculation\n",
+ "S=L/(2*W*db+Wb*dG)\n",
+ "fi=0.2\n",
+ "DeltaW=fi*math.pi/(180*S)\n",
+ "\n",
+ "#result\n",
+ "print('S = %.3f rad/g' %S)\n",
"print('\\nDeltaW = %.3f g' %DeltaW)"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
- "S = 0.154 rad/g",
- "",
+ "S = 0.154 rad/g\n",
+ "\n",
"DeltaW = 0.023 g"
]
}
- ],
+ ],
"prompt_number": 9
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.5, Page Number: 164<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''Torque Calculation'''",
- "",
- "import math",
- "",
- "#variable declaration",
- "hp=746.0 # horse power",
- "P=5*hp # Saft power in Watts",
- "N=1500.0 # speed in rpm",
- "",
- "#calculation",
- "n=N/60.0",
- "T=P*60/(2*math.pi*n)",
- "",
- "#result",
+ "\n",
+ "\n",
+ "import math\n",
+ "\n",
+ "#variable declaration\n",
+ "hp=746.0 # horse power\n",
+ "P=5*hp # Saft power in Watts\n",
+ "N=1500.0 # speed in rpm\n",
+ "\n",
+ "#calculation\n",
+ "n=N/60.0\n",
+ "T=P*60/(2*math.pi*n)\n",
+ "\n",
+ "#result\n",
"print('T = %.0f Newton meters' %(math.ceil(T)))"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
"T = 1425 Newton meters"
]
}
- ],
+ ],
"prompt_number": 10
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.6, Page Number: 165<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''Force calculation'''",
- "",
- "#variable declaration",
- "ch_l=0.075 #change in length",
- "orig_l=50.0 #Original length",
- "",
- "#calculation",
- "S=ch_l/orig_l",
- "E=9.66*10**5",
- "stress=E*S",
- "area=1.5",
- "f=stress*area",
- "",
- "#result",
+ "\n",
+ "\n",
+ "#variable declaration\n",
+ "ch_l=0.075 #change in length\n",
+ "orig_l=50.0 #Original length\n",
+ "\n",
+ "#calculation\n",
+ "S=ch_l/orig_l\n",
+ "E=9.66*10**5\n",
+ "stress=E*S\n",
+ "area=1.5\n",
+ "f=stress*area\n",
+ "\n",
+ "#result\n",
"print('Strain = %.4f cm/cm\\nStress =%d kg/cm^2\\nForce = %.1f kg'%(S,stress,f))"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
- "Strain = 0.0015 cm/cm",
- "Stress =1449 kg/cm^2",
+ "Strain = 0.0015 cm/cm\n",
+ "Stress =1449 kg/cm^2\n",
"Force = 2173.5 kg"
]
}
- ],
+ ],
"prompt_number": 11
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.7, Page Number: 165<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''resistance strain gauge'''",
- "",
- "import math",
- "",
- "#(a)",
- "",
- "#variable declaration",
- "R1=120.0 # resistance in Ohm",
- "R2=120.0 # resistance in Ohm",
- "R3=120.0 # resistance in Ohm",
- "R4=120.0 # resistance in Ohm",
- "Rg=100.0 # resistance in Ohm",
- "",
- "#calculation",
- "C=(R1*R2*R4)+(R1*R3*R4)+(R1*R2*R3)+(R2*R3*R4)+(Rg*(R1+R4)*(R2+R3))",
- "C=C/(10**7)",
- "",
- "#result",
- "print('(a)\\nC=%.3f*10^7' %C)",
- "E=10",
- "F=(E*R3*R1*2*10**3)/(C*10**7)",
- "print('\\nF = %.1f *10^3 A/mm = %.1f mA/mm'%(F,F))",
- "",
- "#(b)",
- "",
- "#calculation",
- "Fe=2*10**-4",
- "E=10",
- "DeltaE=Fe*E/(4+4*10**-4)",
- "DeltaE=DeltaE*10**3",
- "",
- "#Result",
+ "\n",
+ "\n",
+ "import math\n",
+ "\n",
+ "#(a)\n",
+ "\n",
+ "#variable declaration\n",
+ "R1=120.0 # resistance in Ohm\n",
+ "R2=120.0 # resistance in Ohm\n",
+ "R3=120.0 # resistance in Ohm\n",
+ "R4=120.0 # resistance in Ohm\n",
+ "Rg=100.0 # resistance in Ohm\n",
+ "\n",
+ "#calculation\n",
+ "C=(R1*R2*R4)+(R1*R3*R4)+(R1*R2*R3)+(R2*R3*R4)+(Rg*(R1+R4)*(R2+R3))\n",
+ "C=C/(10**7)\n",
+ "\n",
+ "#result\n",
+ "print('(a)\\nC=%.3f*10^7' %C)\n",
+ "E=10\n",
+ "F=(E*R3*R1*2*10**3)/(C*10**7)\n",
+ "print('\\nF = %.1f *10^3 A/mm = %.1f mA/mm'%(F,F))\n",
+ "\n",
+ "#(b)\n",
+ "\n",
+ "#calculation\n",
+ "Fe=2*10**-4\n",
+ "E=10\n",
+ "DeltaE=Fe*E/(4+4*10**-4)\n",
+ "DeltaE=DeltaE*10**3\n",
+ "\n",
+ "#Result\n",
"print('\\n(b)\\nDeltaEg=%.1f mV' %DeltaE)"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
- "(a)",
- "C=1.267*10^7",
- "",
- "F = 22.7 *10^3 A/mm = 22.7 mA/mm",
- "",
- "(b)",
+ "(a)\n",
+ "C=1.267*10^7\n",
+ "\n",
+ "F = 22.7 *10^3 A/mm = 22.7 mA/mm\n",
+ "\n",
+ "(b)\n",
"DeltaEg=0.5 mV"
]
}
- ],
+ ],
"prompt_number": 12
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.8, PAge Number: 167<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''speed measurement using stroboscope'''",
- "",
- "#(a)",
- "import math",
- "",
- "#variable Declaration",
- "r1=2500.0 # Highest flasing rate ",
- "r2=1500.0 # next Highest flasing rate ",
- "",
- "#calculation",
- "n=(r1*r2)/(r1-r2)",
- "",
- "#result",
- "print('(a)\\nn = %d rpm'%n)",
- "",
- "#(b)",
- "",
- "#variable declaration",
- "N=5.0 # Fift time syncronization for same speed",
- "",
- "#calculation",
- "r5=n*r1/((r1*(N-1))+n)",
- "r5=math.ceil(r5)",
- "",
- "#result",
+ "\n",
+ "\n",
+ "#(a)\n",
+ "import math\n",
+ "\n",
+ "#variable Declaration\n",
+ "r1=2500.0 # Highest flasing rate \n",
+ "r2=1500.0 # next Highest flasing rate \n",
+ "\n",
+ "#calculation\n",
+ "n=(r1*r2)/(r1-r2)\n",
+ "\n",
+ "#result\n",
+ "print('(a)\\nn = %d rpm'%n)\n",
+ "\n",
+ "#(b)\n",
+ "\n",
+ "#variable declaration\n",
+ "N=5.0 # Fift time syncronization for same speed\n",
+ "\n",
+ "#calculation\n",
+ "r5=n*r1/((r1*(N-1))+n)\n",
+ "r5=math.ceil(r5)\n",
+ "\n",
+ "#result\n",
"print('\\n(b)\\nr5=%d Flashes/Minute' %r5)"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
- "(a)",
- "n = 3750 rpm",
- "",
- "(b)",
+ "(a)\n",
+ "n = 3750 rpm\n",
+ "\n",
+ "(b)\n",
"r5=682 Flashes/Minute"
]
}
- ],
+ ],
"prompt_number": 13
- },
+ },
{
- "cell_type": "markdown",
+ "cell_type": "markdown",
+ "metadata": {},
"source": [
"<h3>Example 3.9, Page Number: 167<h3>"
]
- },
+ },
{
- "cell_type": "code",
- "collapsed": false,
+ "cell_type": "code",
+ "collapsed": false,
"input": [
- "'''speed measurement using proximity'''",
- "",
- "#variable declaration",
- "rpm=1500.0 #rotation in rpm",
- "f=200.0 #frequency",
- "",
- "#calculation",
- "N=60*f/rpm",
- "",
- "#result",
+ "\n",
+ "\n",
+ "#variable declaration\n",
+ "rpm=1500.0 #rotation in rpm\n",
+ "f=200.0 #frequency\n",
+ "\n",
+ "#calculation\n",
+ "N=60*f/rpm\n",
+ "\n",
+ "#result\n",
"print('No of teeth on the wheel\\nN=%d' %N)"
- ],
- "language": "python",
+ ],
+ "language": "python",
+ "metadata": {},
"outputs": [
{
- "output_type": "stream",
- "stream": "stdout",
+ "output_type": "stream",
+ "stream": "stdout",
"text": [
- "No of teeth on the wheel",
+ "No of teeth on the wheel\n",
"N=8"
]
}
- ],
+ ],
"prompt_number": 14
}
- ]
+ ],
+ "metadata": {}
}
]
} \ No newline at end of file