Simply Supported Beam Analysis [Visual C++]

January 21, 2017 | Author: praxie | Category: N/A
Share Embed Donate


Short Description

This cpp code gives the end reaction, shear and bending moment values (latter two at user-defined locations) generated i...

Description

f:\Simply Supported Beam\Simply Supported Beam\Simply Supported Beam.cpp // // // // // // //

Analysis of a single span simply supported beam Computation of end reactions, shear and bending moment Underlying Concept: Principle of superposition Environment: Visual C++ 2008 Express Edition Programmer: Prof. S A Vasanwala Debugger: Prakash Agarwal Date: 05/02/2010

#include #include #include

// cin, cout objects // setw(), setprecision() function // exit() function

using namespace std; const int elements = 102;

// maximum number of sections under... // ...which user can split the beam

void main(void) { double RL = 0.0, RR = 0.0, R1, R2, l, a, c, W, W1, dist, s, t, b1, moment[elements] = {}, shear[elements] = {}; int

no_load, no_section, type, j, k;

// // // //

// // // // // // // // // // // // //

Reactions at left and right support Reactions at left and right support... ...for individual load Span of beam Distance from left support Cover for UDL loading Total weight of load under consideration Weight of UDL load used in moment... ...calculation at a section Distance of section from left support Temporary variables Moment at a section Shear at a section

Number of loads on span Number of sections Load type Loop control variables

cout > l; cout no_section; cout > no_load; for (k = 1; k
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF