summaryrefslogtreecommitdiff
path: root/Testing_the_interface/chapter4_1.ipynb
diff options
context:
space:
mode:
authorhardythe12015-06-03 15:27:17 +0530
committerhardythe12015-06-03 15:27:17 +0530
commitdf60071cf1d1c18822d34f943ab8f412a8946b69 (patch)
treeab059cf19bad4a1233a464ccf5d72cf8b3fb323c /Testing_the_interface/chapter4_1.ipynb
parentfba055ce5aa0955e22bac2413c33493b10ae6532 (diff)
downloadPython-Textbook-Companions-df60071cf1d1c18822d34f943ab8f412a8946b69.tar.gz
Python-Textbook-Companions-df60071cf1d1c18822d34f943ab8f412a8946b69.tar.bz2
Python-Textbook-Companions-df60071cf1d1c18822d34f943ab8f412a8946b69.zip
add books
Diffstat (limited to 'Testing_the_interface/chapter4_1.ipynb')
-rwxr-xr-xTesting_the_interface/chapter4_1.ipynb116
1 files changed, 116 insertions, 0 deletions
diff --git a/Testing_the_interface/chapter4_1.ipynb b/Testing_the_interface/chapter4_1.ipynb
new file mode 100755
index 00000000..e9b7e3e0
--- /dev/null
+++ b/Testing_the_interface/chapter4_1.ipynb
@@ -0,0 +1,116 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4: Shear Forces and Bending Moments"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.3, page no. 275"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\"\"\"\n",
+ "Finding shear force V and bending movement M at cross section D located 115 ft from left-hand behind support\n",
+ "\"\"\"\n",
+ "\n",
+ "import math\n",
+ "\n",
+ "#initialisation\n",
+ "\n",
+ "q = 0.2 # Uniform load intensity in K/ft\n",
+ "P = 14 # Concentrated load in k\n",
+ "Ra = 11 # Reaction at A from wquation of equilibrium\n",
+ "Rb = 9 # Reaction at B from wquation of equilibrium\n",
+ "\n",
+ "#calculation\n",
+ "V = 11 - 14 - (0.2*15) # shear force in k\n",
+ "\n",
+ "print \"Shear force at section D\", V, \"k\"\n",
+ "M = (11*15)-(14*6)-(0.2*15*7.5) # Bending moment in K-ft\n",
+ "print \"Bending moment at section D\", M, \"k-ft\"\n",
+ "V1 = -9+(0.2*15) # Shear firce from alternative method in k\n",
+ "M1 = (9*9)-(0.2*7.5*15) # Bending moment from alternative method in k-ft"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Shear force at section D -6.0 k\n",
+ "Bending moment at section D 58.5 k-ft\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\"\"\"\n",
+ "Shear force and bending moments\n",
+ "\"\"\"\n",
+ "\n",
+ "import math \n",
+ "\n",
+ "#initialisation\n",
+ "\n",
+ "q = 1 # Uniform load intensity in k/ft\n",
+ "M0 = 12 # Couple in k-ft\n",
+ "Rb = 5.25 # Reaction at B in k\n",
+ "Rc = 1.25 # Reaction at C in k\n",
+ "b = 4 # Length of section AB in ft\n",
+ "\n",
+ "#calculation\n",
+ "\n",
+ "Mb = -(q*(b**2))/2 # Moment acting at B\n",
+ "\n",
+ "#Result\n",
+ "print \"Bending moment at B\", Mb, \"k-ft\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Bending moment at B -8 k-ft\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file