Couples of moment M = 2 kN .m are applied as shown to a curved
bar having a rectangular cross section with h = 100 mm and b = 25 mm. Write a computer program and use it to calculate the stresses at points A and B for values of the ratio r1/h from 10 to 1 using decrements of 1, and from 1 to 0.1 using decrements of 0.1. Using appropriate smaller increments, determine the ratio r1/h for which the maximum stress in the curved bar is 50% larger than the maximum stress in a straight bar of the same cross section.
INPUT AND VARIABLES
Input : h=100 cm, b=25 cm, M=2 kN.m
For straight bar, sigma (straight)= Mc/I =6M/h2b Other variables: 1.r2=h+r1 2.R=h / ln(r2/r1) 3.rbar = (r1+r2)/2 4.e = rbar R 5.A = b*h =2500 mm2 6.sigma1 = M (r1-R) / (A*r1*e) 7.sigma2 = M (r2-R) / (A*r2*e) A loop which takes value of r1 from 1000 mm to 100 mm using decrements of 100 and another loop which takes value of r1 from 100 to 10 using decrement of 10.
NOMENCLATURE
b=Width of rectangular bar
h=Height of rectangular bar
M=Moment applied
rbar=Radius of neutral axis
Sigma1=Stress at point A
Sigma2=Stress at point B
Sigmas=Stress at point A and B when bar is straight
ratio=sigma1/sigmas
FLOW CHART
Take input from user : b(cm), h(cm), M(N.m)
Find the sigmaS for given rectangular bar
These values will be used in loops to find sigmaA, sigmaB, ratio