Cantilevered Beam - Concentrated Load At Any Point

"); $lgt=(double)$_REQUEST['lgt']; //cast as "double" so it will work with pow() later $totload=$_REQUEST['totload']; $dim_a=(double)$_REQUEST['dim_a']; //cast as "double" so it will work with pow() later $mi=$_REQUEST['mi']; $xdis=(double)$_REQUEST['xdis']; //cast as "double" so it will work with pow() later if($lgt<=0) { $lgt="0"; } echo("Length of Beam: "); echo(" inches".N2L); //echo(NL); if($totload<=0) { $totload="0"; } echo("Concentrated Load: "); echo(" kips".N2L); if($dim_a<=0) { $dim_a="0"; } echo("\"a\" Dimension: "); echo(" inches".N2L); $dim_b=$lgt-$dim_a; if($mi<=0) { $mi="0"; } echo("Moment of Inertia: " ); echo(" inches4".N2L); if($xdis<=0) { $xdis="0"; } echo("Distance \"x\" from end of beam (not required): " ); echo(" inches".N2L); echo ("
"); if(!$totload or !$lgt or !$dim_a) { //If no numbers have been entered, don't do anything. }elseif($xdis>=$lgt) { echo ("\"x\" distance must be less than the beam length"); }else { $eqtab=8*$totload*$dim_b/$lgt; echo ("Equivalent Tabular Load = ".number_format($eqtab,2)." kips.".NL); $mmax=$totload*$dim_b; echo("Maximum Moment (at fixed end) = ".number_format($mmax,3)." kip-inches.".NL); if($xdis) { if($xdis>$dim_a){ $matx=$totload*($xdis-$dim_a); echo("Moment at distance \"x\" = ".number_format($matx,3)." kip-inches.".NL); }} If($mi>0) { $maxdef=$totload*pow($dim_b,2)*(3*$lgt-$dim_b)/(6*29000*$mi); echo("Maximum Deflection (at free end) = ".number_format($maxdef,3)." inches.".NL); $defata=$totload*pow($dim_b,3)/(3*29000*$mi); echo("Deflection at point of load (\"a\") = ".number_format($defata,3)." inches.".NL); if($xdis) { if($xdis<$dim_a){ $defatx=$totload*pow($dim_b,2)*(3*$lgt-3*$xdis-$dim_b)/(6*29000*$mi); echo("Deflection at distance \"x\" from end of beam (x < a) = ".number_format($defatx,3)." inches.".NL); } elseif($xdis>=$dim_a){ $defatx=$totload*pow(($lgt-$xdis),2)*(3*$dim_b-$lgt+$xdis)/(6*29000*$mi); echo("Deflection at distance \"x\" from end of beam (x > or = a) = ".number_format($defatx,3)." inches.".NL); }} } else { echo("You must enter a moment of inertia value to calculate deflection"); } } ?>
Calculations Index Circle Calc. Rectangular Calc. Home