File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
+ """
4
+ Shear stress is a component of stress that is coplanar to the material cross-section.
5
+ It arises due to a shear force, the component of the force vector parallel to the
6
+ material cross-section.
3
7
4
- def sheer_stress (
8
+ https://en.wikipedia.org/wiki/Shear_stress
9
+ """
10
+
11
+
12
+ def shear_stress (
5
13
stress : float ,
6
14
tangential_force : float ,
7
15
area : float ,
8
16
) -> tuple [str , float ]:
9
17
"""
10
18
This function can calculate any one of the three -
11
- 1. Sheer Stress
19
+ 1. Shear Stress
12
20
2. Tangential Force
13
21
3. Cross-sectional Area
14
22
This is calculated from the other two provided values
15
23
Examples -
16
- >>> sheer_stress (stress=25, tangential_force=100, area=0)
24
+ >>> shear_stress (stress=25, tangential_force=100, area=0)
17
25
('area', 4.0)
18
- >>> sheer_stress (stress=0, tangential_force=1600, area=200)
26
+ >>> shear_stress (stress=0, tangential_force=1600, area=200)
19
27
('stress', 8.0)
20
- >>> sheer_stress (stress=1000, tangential_force=0, area=1200)
28
+ >>> shear_stress (stress=1000, tangential_force=0, area=1200)
21
29
('tangential_force', 1200000)
22
30
"""
23
31
if (stress , tangential_force , area ).count (0 ) != 1 :
You can’t perform that action at this time.
0 commit comments