summaryrefslogtreecommitdiff
path: root/Mechanics_of_Materials_by_Pytel_and_Kiusalaas/Chapter07_2.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:40:35 +0530
committerkinitrupti2017-05-12 18:40:35 +0530
commit64d949698432e05f2a372d9edc859c5b9df1f438 (patch)
tree012fd5b4ac9102cdcf5bc56305e49d6714fa5951 /Mechanics_of_Materials_by_Pytel_and_Kiusalaas/Chapter07_2.ipynb
parent9c6ab8cbf3e1a84c780386abf4852d84cdd32d56 (diff)
downloadPython-Textbook-Companions-64d949698432e05f2a372d9edc859c5b9df1f438.tar.gz
Python-Textbook-Companions-64d949698432e05f2a372d9edc859c5b9df1f438.tar.bz2
Python-Textbook-Companions-64d949698432e05f2a372d9edc859c5b9df1f438.zip
Revised list of TBCs
Diffstat (limited to 'Mechanics_of_Materials_by_Pytel_and_Kiusalaas/Chapter07_2.ipynb')
-rwxr-xr-xMechanics_of_Materials_by_Pytel_and_Kiusalaas/Chapter07_2.ipynb115
1 files changed, 0 insertions, 115 deletions
diff --git a/Mechanics_of_Materials_by_Pytel_and_Kiusalaas/Chapter07_2.ipynb b/Mechanics_of_Materials_by_Pytel_and_Kiusalaas/Chapter07_2.ipynb
deleted file mode 100755
index 1ab7377d..00000000
--- a/Mechanics_of_Materials_by_Pytel_and_Kiusalaas/Chapter07_2.ipynb
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "metadata": {
- "name": "",
- "signature": "sha256:a060d639455e309e0ebbb56cdce11ccc2075e0745b360f129a4aa2a2ff9becd3"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "heading",
- "level": 1,
- "metadata": {},
- "source": [
- "Chapter 07:Statically Indeterminate Beams"
- ]
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 7.7.3, Page No:251"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "import math\n",
- "import numpy as np\n",
- "\n",
- "#Variable Decleration\n",
- "P=5000 #Load in N\n",
- "L=2 #Half span in m\n",
- "\n",
- "#Calculations\n",
- "#After carrying put the variable computation \n",
- "#We obtain three equations which can be solved simultaneously\n",
- "A=np.array([[1,1,0],[-L*2,0,1],[32,0,-24]]) #Array of the unknowns\n",
- "B=np.array([P,-P*L,2000]) #Array of RHS\n",
- "C=np.linalg.solve(A,B)\n",
- "\n",
- "#Result\n",
- "print \"The values are as follows\"\n",
- "print \"Ra=\",C[0],\"N Rb=\",C[1],\"N and Ma=\",C[2],\"N.m\"\n",
- "\n",
- "#Answer in the textbook is incorrect"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- " The values are as follows\n",
- "Ra= 3718.75 N Rb= 1281.25 N and Ma= 4875.0 N.m\n"
- ]
- }
- ],
- "prompt_number": 9
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 7.7.4, Page No:252"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "import math\n",
- "import numpy as np\n",
- "\n",
- "#Variable Decleration\n",
- "w=60 #Continous Load in lb/ft\n",
- "L1=3 #Length in ft\n",
- "L2=9 #Length in ft\n",
- "\n",
- "#Calculations\n",
- "#After carrying out the variable computations we get\n",
- "A=np.array([[1,1,0,0],[(L1+L2),0,1,1],[0.5*(L1+L2)**2,0,-(L1+L2),0],[6**-1*(L1+L2)**3,0,-0.5*(L1+L2)**2,0]])\n",
- "B=np.array([w*L2,w*L2*0.5*L2,L2**3*10,L2**4*2.5])\n",
- "C=np.linalg.solve(A,B)\n",
- "\n",
- "#Result\n",
- "print \"The values are as follows\"\n",
- "print \"Ra=\",round(C[0]),\"lb Ma=\",round(C[2]),\"lb.ft Rb=\",round(C[1]),\"lb and Mb=\",round(C[3]),\"lb.ft\"\n",
- "\n",
- "#NOTE:The answer for Mb in the textbook is incorrect"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The values are as follows\n",
- "Ra= 190.0 lb Ma= 532.0 lb.ft Rb= 350.0 lb and Mb= -380.0 lb.ft\n"
- ]
- }
- ],
- "prompt_number": 12
- }
- ],
- "metadata": {}
- }
- ]
-} \ No newline at end of file