In [1]:
import sys
import platform
from math import sqrt, pi
print('Python version: ', sys.version)
print('Running on: ', sys.platform)
Given: A steel bar with a cross-section of 130 mm2 and a length of 50.8 mm is axially loaded in tension with a force of 57.0 kN. The modulus of elasticity of the steel is 210 GPa.
Find: What is the axial stress in the bar?
Solution:
F = 57.0 kN
F = 5700 N
A0 = 130 mm2
σ = ?
$$ \sigma = \frac{F}{A_0} $$
In [2]:
F = 57000
A0 = 130
stress = F/A0
print(stress)
Find: What is the resulting strain?
Solution:
σ = 438.46 MPa
E = 210 GPa
E = 210000 MPa
ε = ?
$$ E = \frac{\Delta\sigma}{\Delta\epsilon} $$
In [3]:
E = 210000
# E = stress/strain
strain = stress/E
print(strain)
Find: What is the change in length of the bar?
Solution:
ε = 0.0020879
L0 = 50.8 mm
ΔL = ?
$$ \epsilon = \frac{\Delta L}{L_0} $$$$ \Delta L = \epsilon L_0 $$
In [4]:
L0=50.8
deltaL =strain*L0
print(deltaL)
Find: What is the final length of the bar?
Solution:
L0 = 50.8 mm
ΔL = 0.10607 mm
Lf = ?
$$ L_f = L_0 +\Delta L $$
In [5]:
Lf = L0 + deltaL
print(Lf)
In [6]:
SF =1.9
stress_y = 40
stress_app = stress_y/SF
print('Stress: ',stress_app)
F = 350
A0 = F/stress_app
print('Cross-sectional Area: ', A0)
d = sqrt(4*A0/pi)
print('Diameter, d = ', d)
In [7]:
A_Al=400
F = 50000
stress_Al= F/A_Al
print(stress_Al)
b. What is the stress in the Brass?
In [8]:
A_Br = 300
stress_Br = F/A_Br
print(stress_Br)
c. What is the final length of the entire composite rod once the load P is applied?
In [9]:
E_Al = 70000
strain_Al = stress_Al/E_Al
print(strain_Al)
In [10]:
L0_Al = 600
dL_Al = strain_Al*L0_Al
print(dL_Al)
In [11]:
E_Br = 105000
strain_Br = stress_Br/E_Br
print(strain_Br)
In [12]:
L0_Br = 800
dL_Br = strain_Br*L0_Br
print(dL_Br)
In [13]:
Lf = L0_Al + dL_Al + L0_Br + dL_Br
print(Lf)
d. What is the factor of safety against yeild for the brass?
In [14]:
stress_y_Br = 410
SF_Br = stress_y_Br / stress_Br
print(SF_Br)
In [ ]: