Simple Beam - 2 Equal Concentrated Loads Symetrically Placed

"; echo("
"); $lgt=$_REQUEST['lgt']; $totload=$_REQUEST['totload']; $adim=$_REQUEST['adim']; $mi=$_REQUEST['mi']; $xdis=$_REQUEST['xdis']; if($lgt<=0) { $lgt="0"; } echo("Length of Beam: Concentrated Load: Dimension \"a\": Moment of Inertia: 4".N2L); if($xdis<=0) { $xdis="0"; } echo("Distance \"x\" from end of beam (not required):
"); if(!$totload or !$lgt or !$adim) { //If no numbers have been entered, don't do anything. }elseif($xdis>=$lgt) { echo ("\"x\" distance must be less than the beam length".NL); }else { $react=$totload/2; echo("Reaction at each end = $totload kips.".NL); $mmax=$totload*$adim; echo("Maximum Moment (between loads) = ".number_format($mmax,3)." kip-inches.".NL); if($xdis) { If ($xdis>=$adim && $xdis<=($lgt-$adim)){ $matx=$mmax; echo("Moment at distance \"x\" from end of beam = ".number_format($matx,3)." kip-inches.".NL); } else if($xdis>($lgt-$adim)) { $xdis=$lgt-$xdis; $matx=$totload*$xdis; echo("Moment at distance \"x\" from end of beam = ".number_format($matx,3)." kip-inches.".NL); } else { $matx=$totload*$xdis; echo("Moment at distance \"x\" from end of beam = ".number_format($matx,3)." kip-inches.".NL); } } If($mi>0) { $maxdef=$totload*$adim*((3*pow($lgt,2))-4*pow($adim,2))/(24*29000*$mi); echo("Maximum Deflection (at center) = ".number_format($maxdef,3)." inches.".NL); if($xdis) { If($xdis>($lgt/2)) { $xdis=$lgt-$xdis; } If($xdis<$adim) { $defatx=$totload*$xdis*((3*$lgt*$adim)-(3*pow($adim,2))-(pow($xdis,2)))/(6*29000*$mi); echo("Deflection at distance \"x\" from end of beam = ".number_format($defatx,3)." inches.".NL); } else { $defatx=$totload*$adim*((3*$lgt*$xdis)-(3*pow($xdis,2))-(pow($adim,2)))/(6*29000*$mi); echo("Deflection at distance \"x\" from end of beam = ".number_format($defatx,3)." inches.".NL); } } } else { echo("You must enter a moment of inertia value to calculate deflection".NL); } } ?>
Calculations Index Circle Calc. Rectangular Calc. Home