{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Chapter 8: Forces In Beams" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 8.1: Beams.sce" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "//Initilization of variables\n", "R_A=100 //N\n", "R_B=200 //N\n", "//Calculations\n", "//Shear force at 2m\n", "V=100 //N\n", "//Moment at 2m\n", "M=R_A*2 //N.m\n", "//Result\n", "clc\n", "printf('The shear force at 2m is %fN and the moment at 2m is %fN-m',V,M)" ] } , { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 8.2: Beams.sce" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "//Initilization of variables\n", "//length matrix\n", "L1=[0,4,6] //m\n", "//Bending moment matrix\n", "B=[0,400,0] //N.m\n", "//Shear force plotting\n", "//Here the left side and right side lengths are considered as close as 4 to keep up with right and left distinctions\n", "L=[0,3.999,4,5.99998,6]\n", "S=[100,100,-200,-200,0]\n", "//Calculations cum Result\n", "subplot(221)\n", "plot(L1,B)\n", "xtitle('Bending Moment Diagram','Span','Bending Moment')\n", "subplot(222)\n", "plot(L,S,L,0)\n", "xtitle('Shear Force Diagram','Span','Shear Force')" ] } , { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 8.3: Beams.sce" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "//Initilization of variables\n", "w=196 //N/m\n", "M_app=4000 //N.m\n", "L=6 //m\n", "//Calculations\n", "//Taking Moment about Point L and equating it to 0\n", "R_r=(M_app+w*L*L*0.5)/(3*L) //N\n", "//Taking Moment about Point R and equating it to 0\n", "R_l= ((((2*L)+(L/2))*(w*L))-(M_app))/(3*L) //N\n", "//finding point of zero shear\n", "a=R_l/w\n", "//defining x\n", "x0=[0,18]\n", "x=[0,0.5,1,1.5,2,2.5,3,3.5,a,4,4.5,5,5.5,6] //for 0