summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrupti Kini2016-10-03 23:30:50 +0600
committerTrupti Kini2016-10-03 23:30:50 +0600
commitdb54a9c91f13d85ebf57db5ac1345ab05460e2ca (patch)
tree67e3ae9d1003ce49640a37403c49c0c70430faa5
parentde4dd01af3bd234abcd62728d509a067cc7e149a (diff)
downloadPython-Textbook-Companions-db54a9c91f13d85ebf57db5ac1345ab05460e2ca.tar.gz
Python-Textbook-Companions-db54a9c91f13d85ebf57db5ac1345ab05460e2ca.tar.bz2
Python-Textbook-Companions-db54a9c91f13d85ebf57db5ac1345ab05460e2ca.zip
Added(A)/Deleted(D) following books
A f_by_df/abhishek.ipynb A f_by_df/abhishek_1.ipynb A f_by_df/screenshots/anshul.png A f_by_df/screenshots/blank1.png A f_by_df/screenshots/blog.png A f_by_df/screenshots/sai.png A f_by_df/screenshots/snippet1.png A f_by_df/screenshots/srinivas.png A hfgd_by_Gayakwad/README.txt A hfgd_by_Gayakwad/abhishek.ipynb A hfgd_by_Gayakwad/screenshots/anshul.png A hfgd_by_Gayakwad/screenshots/anshul_1.png A hfgd_by_Gayakwad/screenshots/anshul_2.png A rewrew_by_J._B._Gupta/README.txt A rewrew_by_J._B._Gupta/aviral.ipynb A rewrew_by_J._B._Gupta/screenshots/array_factor.png A rewrew_by_J._B._Gupta/screenshots/book.png A rewrew_by_J._B._Gupta/screenshots/error.png A sample_notebooks/JeevanLal/aditya.ipynb
-rw-r--r--f_by_df/abhishek.ipynb112
-rw-r--r--f_by_df/abhishek_1.ipynb112
-rw-r--r--f_by_df/screenshots/anshul.pngbin0 -> 75019 bytes
-rw-r--r--f_by_df/screenshots/blank1.png0
-rw-r--r--f_by_df/screenshots/blog.pngbin0 -> 163202 bytes
-rw-r--r--f_by_df/screenshots/sai.pngbin0 -> 175362 bytes
-rw-r--r--f_by_df/screenshots/snippet1.pngbin0 -> 98375 bytes
-rw-r--r--f_by_df/screenshots/srinivas.pngbin0 -> 158914 bytes
-rw-r--r--hfgd_by_Gayakwad/README.txt10
-rw-r--r--hfgd_by_Gayakwad/abhishek.ipynb112
-rw-r--r--hfgd_by_Gayakwad/screenshots/anshul.pngbin0 -> 75019 bytes
-rw-r--r--hfgd_by_Gayakwad/screenshots/anshul_1.pngbin0 -> 75019 bytes
-rw-r--r--hfgd_by_Gayakwad/screenshots/anshul_2.pngbin0 -> 75019 bytes
-rw-r--r--rewrew_by_J._B._Gupta/README.txt10
-rw-r--r--rewrew_by_J._B._Gupta/aviral.ipynb146
-rw-r--r--rewrew_by_J._B._Gupta/screenshots/array_factor.pngbin0 -> 24790 bytes
-rw-r--r--rewrew_by_J._B._Gupta/screenshots/book.pngbin0 -> 139678 bytes
-rw-r--r--rewrew_by_J._B._Gupta/screenshots/error.pngbin0 -> 163496 bytes
-rw-r--r--sample_notebooks/JeevanLal/aditya.ipynb279
19 files changed, 781 insertions, 0 deletions
diff --git a/f_by_df/abhishek.ipynb b/f_by_df/abhishek.ipynb
new file mode 100644
index 00000000..3f7271ea
--- /dev/null
+++ b/f_by_df/abhishek.ipynb
@@ -0,0 +1,112 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:cda4775b9259e49c042e3120b0a25eb239766f3373696622080f812fe1f53fa9"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 01:Introduction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1.1:pg-20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Given Data\n",
+ "d_r = 13640 # Density of mercury in kg/m^3\n",
+ "g = 9.79 # Acceleration due to gravity in m/s^2\n",
+ "z = 562e-03 # Difference in height in m\n",
+ "z0 = 761e-03 # Reading of barometer in m\n",
+ "P = (d_r*g*(z+z0))*(0.987/1e05) # Gas Pressure in atm\n",
+ "\n",
+ "print \"\\n Example 1.1\\n\"\n",
+ "print \"\\n Gas Pressure is \",round(P,2),\" atm\"\n",
+ "#The answers vary due to round off error\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " Example 1.1\n",
+ "\n",
+ "\n",
+ " Gas Pressure is 1.74 atm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1.2:pg-21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given Data\n",
+ "d_r = 13.6e03 # Density of mercury in kg/m^3\n",
+ "g = 9.81 # Acceleration due to gravity in m/s^2\n",
+ "z = 710e-03 # Steam flow pressure in m\n",
+ "z0 = 772e-03 # Reading of barometer in m\n",
+ "P = 1.4e06 # Gauge pressure of applied steam in Pa\n",
+ "P0 = d_r*g*z0 # Atmospheric pressure in Pa\n",
+ "Pi = P+P0 # Inlet steam pressure in Pa\n",
+ "Pc = d_r*g*(z0-z) # Condenser pressure in Pa\n",
+ "\n",
+ "print \"\\n Example 1.2\\n\"\n",
+ "print \"\\n Inlet steam pressure is\",round(Pi/1e6,2),\" MPa\"\n",
+ "print \"\\n Condenser pressure is\",round(Pc/1e3,2),\" kPa\"\n",
+ "#The answers vary due to round off error\n",
+ "\n",
+ "\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " Example 1.2\n",
+ "\n",
+ "\n",
+ " Inlet steam pressure is 1.5 MPa\n",
+ "\n",
+ " Condenser pressure is 8.27 kPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/f_by_df/abhishek_1.ipynb b/f_by_df/abhishek_1.ipynb
new file mode 100644
index 00000000..3f7271ea
--- /dev/null
+++ b/f_by_df/abhishek_1.ipynb
@@ -0,0 +1,112 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:cda4775b9259e49c042e3120b0a25eb239766f3373696622080f812fe1f53fa9"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 01:Introduction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1.1:pg-20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Given Data\n",
+ "d_r = 13640 # Density of mercury in kg/m^3\n",
+ "g = 9.79 # Acceleration due to gravity in m/s^2\n",
+ "z = 562e-03 # Difference in height in m\n",
+ "z0 = 761e-03 # Reading of barometer in m\n",
+ "P = (d_r*g*(z+z0))*(0.987/1e05) # Gas Pressure in atm\n",
+ "\n",
+ "print \"\\n Example 1.1\\n\"\n",
+ "print \"\\n Gas Pressure is \",round(P,2),\" atm\"\n",
+ "#The answers vary due to round off error\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " Example 1.1\n",
+ "\n",
+ "\n",
+ " Gas Pressure is 1.74 atm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1.2:pg-21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given Data\n",
+ "d_r = 13.6e03 # Density of mercury in kg/m^3\n",
+ "g = 9.81 # Acceleration due to gravity in m/s^2\n",
+ "z = 710e-03 # Steam flow pressure in m\n",
+ "z0 = 772e-03 # Reading of barometer in m\n",
+ "P = 1.4e06 # Gauge pressure of applied steam in Pa\n",
+ "P0 = d_r*g*z0 # Atmospheric pressure in Pa\n",
+ "Pi = P+P0 # Inlet steam pressure in Pa\n",
+ "Pc = d_r*g*(z0-z) # Condenser pressure in Pa\n",
+ "\n",
+ "print \"\\n Example 1.2\\n\"\n",
+ "print \"\\n Inlet steam pressure is\",round(Pi/1e6,2),\" MPa\"\n",
+ "print \"\\n Condenser pressure is\",round(Pc/1e3,2),\" kPa\"\n",
+ "#The answers vary due to round off error\n",
+ "\n",
+ "\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " Example 1.2\n",
+ "\n",
+ "\n",
+ " Inlet steam pressure is 1.5 MPa\n",
+ "\n",
+ " Condenser pressure is 8.27 kPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/f_by_df/screenshots/anshul.png b/f_by_df/screenshots/anshul.png
new file mode 100644
index 00000000..a8cec645
--- /dev/null
+++ b/f_by_df/screenshots/anshul.png
Binary files differ
diff --git a/f_by_df/screenshots/blank1.png b/f_by_df/screenshots/blank1.png
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/f_by_df/screenshots/blank1.png
diff --git a/f_by_df/screenshots/blog.png b/f_by_df/screenshots/blog.png
new file mode 100644
index 00000000..57995442
--- /dev/null
+++ b/f_by_df/screenshots/blog.png
Binary files differ
diff --git a/f_by_df/screenshots/sai.png b/f_by_df/screenshots/sai.png
new file mode 100644
index 00000000..744dca5f
--- /dev/null
+++ b/f_by_df/screenshots/sai.png
Binary files differ
diff --git a/f_by_df/screenshots/snippet1.png b/f_by_df/screenshots/snippet1.png
new file mode 100644
index 00000000..3dc79b8d
--- /dev/null
+++ b/f_by_df/screenshots/snippet1.png
Binary files differ
diff --git a/f_by_df/screenshots/srinivas.png b/f_by_df/screenshots/srinivas.png
new file mode 100644
index 00000000..e947b0fb
--- /dev/null
+++ b/f_by_df/screenshots/srinivas.png
Binary files differ
diff --git a/hfgd_by_Gayakwad/README.txt b/hfgd_by_Gayakwad/README.txt
new file mode 100644
index 00000000..55aba71c
--- /dev/null
+++ b/hfgd_by_Gayakwad/README.txt
@@ -0,0 +1,10 @@
+Contributed By: Jeevan Lal
+Course: me
+College/Institute/Organization: MPBtech. ECE, 6th SemVNIT Nagpur
+Department/Designation: MPBtech. ECE, 6th SemVNIT Nagpur
+Book Title: hfgd
+Author: Gayakwad
+Publisher: sdf
+Year of publication: 2001
+Isbn: 444
+Edition: 9 \ No newline at end of file
diff --git a/hfgd_by_Gayakwad/abhishek.ipynb b/hfgd_by_Gayakwad/abhishek.ipynb
new file mode 100644
index 00000000..3f7271ea
--- /dev/null
+++ b/hfgd_by_Gayakwad/abhishek.ipynb
@@ -0,0 +1,112 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:cda4775b9259e49c042e3120b0a25eb239766f3373696622080f812fe1f53fa9"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 01:Introduction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1.1:pg-20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Given Data\n",
+ "d_r = 13640 # Density of mercury in kg/m^3\n",
+ "g = 9.79 # Acceleration due to gravity in m/s^2\n",
+ "z = 562e-03 # Difference in height in m\n",
+ "z0 = 761e-03 # Reading of barometer in m\n",
+ "P = (d_r*g*(z+z0))*(0.987/1e05) # Gas Pressure in atm\n",
+ "\n",
+ "print \"\\n Example 1.1\\n\"\n",
+ "print \"\\n Gas Pressure is \",round(P,2),\" atm\"\n",
+ "#The answers vary due to round off error\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " Example 1.1\n",
+ "\n",
+ "\n",
+ " Gas Pressure is 1.74 atm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1.2:pg-21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given Data\n",
+ "d_r = 13.6e03 # Density of mercury in kg/m^3\n",
+ "g = 9.81 # Acceleration due to gravity in m/s^2\n",
+ "z = 710e-03 # Steam flow pressure in m\n",
+ "z0 = 772e-03 # Reading of barometer in m\n",
+ "P = 1.4e06 # Gauge pressure of applied steam in Pa\n",
+ "P0 = d_r*g*z0 # Atmospheric pressure in Pa\n",
+ "Pi = P+P0 # Inlet steam pressure in Pa\n",
+ "Pc = d_r*g*(z0-z) # Condenser pressure in Pa\n",
+ "\n",
+ "print \"\\n Example 1.2\\n\"\n",
+ "print \"\\n Inlet steam pressure is\",round(Pi/1e6,2),\" MPa\"\n",
+ "print \"\\n Condenser pressure is\",round(Pc/1e3,2),\" kPa\"\n",
+ "#The answers vary due to round off error\n",
+ "\n",
+ "\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " Example 1.2\n",
+ "\n",
+ "\n",
+ " Inlet steam pressure is 1.5 MPa\n",
+ "\n",
+ " Condenser pressure is 8.27 kPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/hfgd_by_Gayakwad/screenshots/anshul.png b/hfgd_by_Gayakwad/screenshots/anshul.png
new file mode 100644
index 00000000..a8cec645
--- /dev/null
+++ b/hfgd_by_Gayakwad/screenshots/anshul.png
Binary files differ
diff --git a/hfgd_by_Gayakwad/screenshots/anshul_1.png b/hfgd_by_Gayakwad/screenshots/anshul_1.png
new file mode 100644
index 00000000..a8cec645
--- /dev/null
+++ b/hfgd_by_Gayakwad/screenshots/anshul_1.png
Binary files differ
diff --git a/hfgd_by_Gayakwad/screenshots/anshul_2.png b/hfgd_by_Gayakwad/screenshots/anshul_2.png
new file mode 100644
index 00000000..a8cec645
--- /dev/null
+++ b/hfgd_by_Gayakwad/screenshots/anshul_2.png
Binary files differ
diff --git a/rewrew_by_J._B._Gupta/README.txt b/rewrew_by_J._B._Gupta/README.txt
new file mode 100644
index 00000000..897785b9
--- /dev/null
+++ b/rewrew_by_J._B._Gupta/README.txt
@@ -0,0 +1,10 @@
+Contributed By: Jeevan Lal
+Course: me
+College/Institute/Organization: MPBtech. ECE, 6th SemVNIT Nagpur
+Department/Designation: MPBtech. ECE, 6th SemVNIT Nagpur
+Book Title: rewrew
+Author: J. B. Gupta
+Publisher: sdf
+Year of publication: 1
+Isbn: 2
+Edition: 9 \ No newline at end of file
diff --git a/rewrew_by_J._B._Gupta/aviral.ipynb b/rewrew_by_J._B._Gupta/aviral.ipynb
new file mode 100644
index 00000000..5780e6b5
--- /dev/null
+++ b/rewrew_by_J._B._Gupta/aviral.ipynb
@@ -0,0 +1,146 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 5:INTRODUCTION TO THERMAL POWER PLANT"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex5.1:pg-271"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "The coal required per hour,W= 50.95 tons/hr\n"
+ ]
+ }
+ ],
+ "source": [
+ "# Example 5_1\n",
+ " \n",
+ "# Given data\n",
+ "P=100.0;# Plant capacity in Mw\n",
+ "CV=25600.0;# Calorific value in kJ/kg\n",
+ "n_th=30.0;# The thermal efficiency of the plant in %\n",
+ "n_eg=92.0;# Electrical generation efficiency in %\n",
+ "\n",
+ "# Calculation\n",
+ "# Mechanical energy available=W*CV*(n_th/100) in kJ/hr\n",
+ "# Electrical energy available=W*CV*(n_th/100)*(n_eg/100) in kJ/hr\n",
+ "q_e=P*10**3*3600;# Heat equivalent in kJ/hr\n",
+ "W=(q_e/(CV*(n_th/100)*(n_eg/100)));# The coal required per hour in kg/hr\n",
+ "W=(W/1000);# The coal required per hour in tons/hr\n",
+ "print \"\\nThe coal required per hour,W=\",round(W,2),\" tons/hr\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex5.2:pg-273"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ " The capacity of the power plant,P= 62.05 MW\n"
+ ]
+ }
+ ],
+ "source": [
+ "# Example 5_2\n",
+ " \n",
+ "# Given data\n",
+ "CV=28900.0;#kJ/kg\n",
+ "n_b=83.0;# The boiler efficiency in %\n",
+ "n_t=32.0;# The turbine efficiency in %\n",
+ "n_g=97.0;# The generator efficiency in %\n",
+ "W=30.0;# The coal consumption of the station in tons/hr\n",
+ "\n",
+ "# Calculation\n",
+ "P=((W*1000*CV)*(n_b/100)*(n_t/100)*(n_g/100))/(3600*1000);# The capacity of the power plant in MW\n",
+ "print \"\\n The capacity of the power plant,P=\",round(P,2),\" MW\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex5.3:pg-273"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The volume of gas required per hour,V= 450.0 m**3/hr\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Example 5_3\n",
+ "\n",
+ "# Given values\n",
+ "P=100.0;# Power in kW\n",
+ "CV=4000.0;# Calorific value in kJ/m**3\n",
+ "n_o=0.20;# Over all efficiency of the plant\n",
+ "\n",
+ "# Calculation\n",
+ "V=(3600*P)/(CV*n_o);# m**3/hr\n",
+ "print \"The volume of gas required per hour,V=\",round(V,2),\" m**3/hr\"\n"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.11"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/rewrew_by_J._B._Gupta/screenshots/array_factor.png b/rewrew_by_J._B._Gupta/screenshots/array_factor.png
new file mode 100644
index 00000000..9e294010
--- /dev/null
+++ b/rewrew_by_J._B._Gupta/screenshots/array_factor.png
Binary files differ
diff --git a/rewrew_by_J._B._Gupta/screenshots/book.png b/rewrew_by_J._B._Gupta/screenshots/book.png
new file mode 100644
index 00000000..824a4542
--- /dev/null
+++ b/rewrew_by_J._B._Gupta/screenshots/book.png
Binary files differ
diff --git a/rewrew_by_J._B._Gupta/screenshots/error.png b/rewrew_by_J._B._Gupta/screenshots/error.png
new file mode 100644
index 00000000..04a3d5f0
--- /dev/null
+++ b/rewrew_by_J._B._Gupta/screenshots/error.png
Binary files differ
diff --git a/sample_notebooks/JeevanLal/aditya.ipynb b/sample_notebooks/JeevanLal/aditya.ipynb
new file mode 100644
index 00000000..a77ec491
--- /dev/null
+++ b/sample_notebooks/JeevanLal/aditya.ipynb
@@ -0,0 +1,279 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 5 General Case of Forces in a plane"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "# Example 5.2 Equations of equilibrium"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "('The reaction at P is', 5656.85424949238, 'N')\n",
+ "('The reaction at Q is ', 4000.0, 'N')\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "\n",
+ "#Initialization of Variables\n",
+ "W=2000 #N\n",
+ "Lab=2 #m #length of the member from the vertical to the 1st load of 2000 N\n",
+ "Lac=5 #m #length of the member from the vertical to the 2nd load of 2000 N\n",
+ "Lpq=3.5 #m\n",
+ "\n",
+ "#Calculations\n",
+ "Rq=((W*Lab)+(W*Lac))/Lpq #N #take moment abt. pt P\n",
+ "Xp=Rq #N #sum Fx=0\n",
+ "Yp=2*W #N #sum Fy=0\n",
+ "Rp=math.sqrt(Xp**2+Yp**2) #N\n",
+ "\n",
+ "#Resuts\n",
+ "print('The reaction at P is' ,Rp ,'N')\n",
+ "print('The reaction at Q is ',Rq ,'N')"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "# Example 5.3 Equations of equilibrium"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "('The reaction at A i.e Ra is ', matrix([[ 120.27406887]]), 'N')\n",
+ "('The reaction at B i.e Rb is ', matrix([[ 35.13703443]]), 'N')\n",
+ "('The required tension in the string is ', matrix([[ 40.57275258]]), 'N')\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math,numpy\n",
+ "#Initilization of vaiables\n",
+ "W=25 #N # self weight of the ladder\n",
+ "M=75 #N # weight of the man standing o the ladder\n",
+ "theta=63.43 #degree # angle which the ladder makes with the horizontal\n",
+ "alpha=30 #degree # angle made by the string with the horizontal\n",
+ "Loa=2 #m # spacing between the wall and the ladder\n",
+ "Lob=4 #m #length from the horizontal to the top of the ladder touching the wall(vertical)\n",
+ "\n",
+ "#Calculations\n",
+ "#Using matrix to solve the simultaneous eqn's 3 & 4\n",
+ "A=numpy.matrix('2 -4; 1 -0.577')\n",
+ "B=numpy.matrix('100;100')\n",
+ "C=numpy.linalg.inv(A)*B\n",
+ "\n",
+ "#Results\n",
+ "print('The reaction at A i.e Ra is ',C[0] ,'N')\n",
+ "print('The reaction at B i.e Rb is ',C[1] ,'N')\n",
+ "\n",
+ "#Calculations\n",
+ "T=C[1]/math.cos(math.radians(alpha)) #N # from (eqn 1)\n",
+ "\n",
+ "#Results\n",
+ "print('The required tension in the string is ',T, 'N')"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "# Example 5.4 Equations of Equilibrium"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "('The reaction at B i.e Rb is ', 25.0, 'N')\n",
+ "('The horizontal reaction at A i.e Xa is ', 21.650635094610966, 'N')\n",
+ "('The vertical reaction at A i.e Ya is ', 112.5, 'N')\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "#Initilization of variables\n",
+ "W=100 #N\n",
+ "theta=60 #degree angle made by the ladder with the horizontal\n",
+ "alpha=30 #degree angle made by the ladder with the vertical wall\n",
+ "Lob=4 #m length from the horizontal to the top of the ladder touching the wall(vertical)\n",
+ "Lcd=2 #m length from the horizontal to the centre of the ladder where the man stands\n",
+ "\n",
+ "#Calculations\n",
+ "Lab=Lob*(1/math.cos(math.radians(alpha))) #m length of the ladder\n",
+ "Lad=Lcd*math.tan(math.radians(alpha)) #m\n",
+ "Rb=(W*Lad)/Lab #N take moment at A\n",
+ "Xa=Rb*math.sin(math.radians(theta)) #N From eq'n 1\n",
+ "Ya=W+Rb*math.cos(math.radians(theta)) #N From eq'n 2\n",
+ "\n",
+ "#Results\n",
+ "print('The reaction at B i.e Rb is ',Rb, 'N')\n",
+ "print('The horizontal reaction at A i.e Xa is ',Xa, 'N')\n",
+ "print('The vertical reaction at A i.e Ya is ',Ya,'N')\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "# Example 5.5 Equations of Equilibrium"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "('The horizontal reaction at A i.e Xa is ', 28.867513459481287, 'N')\n",
+ "('The vertical reaction at A i.e Ya is ', 100, 'N')\n",
+ "('The reaction at B i.e Rb is ', 28.867513459481287, 'N')\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "#Initilization of variables\n",
+ "W=100 #N self weight of the man\n",
+ "alpha=30 #degree angle made by the ladder with the wall\n",
+ "Lob=4 #m length from the horizontal to the top of the ladder touching the wall(vertical)\n",
+ "Lcd=2 #m\n",
+ "\n",
+ "#Calculations\n",
+ "# using the equiblirium equations\n",
+ "Ya=W #N From eq'n 2\n",
+ "Lad=Lcd*math.tan(math.radians(alpha)) #m Lad is the distance fom pt A to the point where the line from the cg intersects the horizontal\n",
+ "Rb=(W*Lad)/Lob #N Taking sum of moment abt A\n",
+ "Xa=Rb #N From eq'n 1\n",
+ "\n",
+ "#Results\n",
+ "print('The horizontal reaction at A i.e Xa is ',Xa, 'N')\n",
+ "print('The vertical reaction at A i.e Ya is ',Ya,'N' )\n",
+ "print('The reaction at B i.e Rb is ',Rb ,'N')\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "# Example 5.6 Equations of Equilibrium"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "('The horizontal reaction at A i.e Xa is ', 3.84, 'N')\n",
+ "('The vertical reaction at A i.e Ya is ', 7.12, 'N')\n",
+ "('Therefore the reaction at A i.e Ra is ', 8.089499366462674, 'N')\n",
+ "('The reaction at D i.e Rd is ', 4.8, 'N')\n"
+ ]
+ }
+ ],
+ "source": [
+ "import math\n",
+ "#Initilization of variables\n",
+ "d=0.09 #m diametre of the right circular cylinder\n",
+ "h=0.12 #m height of the cyinder\n",
+ "W=10 #N self weight of the bar\n",
+ "l=0.24 #m length of the bar\n",
+ "\n",
+ "#Calculations\n",
+ "theta=math.degrees(math.atan(h/d)) #angle which the bar makes with the horizontal\n",
+ "Lad=math.sqrt(d**2+h**2) #m Lad is the length of the bar from point A to point B\n",
+ "Rd=(W*h*(math.cos(theta*math.pi/180)))/Lad #N Taking moment at A\n",
+ "Xa=Rd*(math.sin(theta*math.pi/180)) #N sum Fx=0.... From eq'n 1\n",
+ "Ya=W-(Rd*(math.cos(theta*math.pi/180))) #N sum Fy=0..... From eq'n 2\n",
+ "Ra=math.sqrt(Xa**2+Ya**2) #resultant of Xa & Ya\n",
+ "\n",
+ "#Results\n",
+ "print('The horizontal reaction at A i.e Xa is ',Xa, 'N')\n",
+ "print('The vertical reaction at A i.e Ya is ',Ya, 'N')\n",
+ "print('Therefore the reaction at A i.e Ra is ',Ra,'N')\n",
+ "print('The reaction at D i.e Rd is ',Rd,'N')"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python [Root]",
+ "language": "python",
+ "name": "Python [Root]"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.12"
+ },
+ "widgets": {
+ "state": {},
+ "version": "1.1.2"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}