Question 2.21: Write a computer program to calculate normal and shear stres...
Write a computer program to calculate normal and shear stress on any inclined plane. It should calculate principal stresses and their location. Input data for the program will be the direct and shear stresses on two mutually perpendicular planes (\sigma_x ,\sigma _y,\tau _{x y}) and the angle of the inclined plane.
Learn more on how we answer questions.
The following computer program in Qbasic will solve for \sigma_x^{\prime} = FX1, \tau _{x^{\prime}y^{\prime}}, = SXY1, principal direct and shear stresses = FMAX, FMIN, SMAX. Location of principal direct stress = TP.
REM CALCULATE – DIRECT AND SHEAR . FORCE ON PLANE . INCLINED AT ANGLE . THETA DEG. TO X-AXIS .CALCULATE – PRINCIPAL STRESSE . ANI THEIR LOCATION .SIGN CONVENTION – TENSION +VE, COMP.-ve, .SHEAR CLOCKWISE + VE, THETA .ANTICLOCKWISE + VE .FX, FY = DIRECT FORCE IN X, Y .DIRECTION |
If screen input for Ex. 2.3 is : -40, 80, 60, 135 then screen output will be as follows,
FX1 = 80 SXY1 = 60
FMAX = 104.8528 FMIN = —64.85281
ANGLE TP = 22.5
SMAX = 84.85281