struct_post 0.1.3__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {struct_post-0.1.3 → struct_post-0.1.4}/PKG-INFO +1 -1
- {struct_post-0.1.3 → struct_post-0.1.4}/pyproject.toml +1 -1
- struct_post-0.1.4/struct_post/beam.py +49 -0
- {struct_post-0.1.3 → struct_post-0.1.4}/struct_post.egg-info/PKG-INFO +1 -1
- {struct_post-0.1.3 → struct_post-0.1.4}/struct_post.egg-info/SOURCES.txt +2 -1
- {struct_post-0.1.3 → struct_post-0.1.4}/LICENSE +0 -0
- {struct_post-0.1.3 → struct_post-0.1.4}/README.md +0 -0
- {struct_post-0.1.3 → struct_post-0.1.4}/setup.cfg +0 -0
- {struct_post-0.1.3 → struct_post-0.1.4}/struct_post/__init__.py +0 -0
- /struct_post-0.1.3/struct_post/postanalysis.py → /struct_post-0.1.4/struct_post/coupon.py +0 -0
- {struct_post-0.1.3 → struct_post-0.1.4}/struct_post.egg-info/dependency_links.txt +0 -0
- {struct_post-0.1.3 → struct_post-0.1.4}/struct_post.egg-info/requires.txt +0 -0
- {struct_post-0.1.3 → struct_post-0.1.4}/struct_post.egg-info/top_level.txt +0 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
import pandas as pd
|
2
|
+
def four_point_bending (data: pd.DataFrame,
|
3
|
+
width: float,
|
4
|
+
depth: float,
|
5
|
+
beam_span: float):
|
6
|
+
import pandas as pd
|
7
|
+
import numpy as np
|
8
|
+
|
9
|
+
#geo
|
10
|
+
sample_name = data[1]
|
11
|
+
force = data[0]['Moog Force_kN'] * 1000
|
12
|
+
delta_1 = abs(data[0]['LVDT 1_mm'])
|
13
|
+
delta_2 = abs(data[0]['LVDT 2_mm'])
|
14
|
+
delta_3 = abs(data[0]['LVDT 3_mm'])
|
15
|
+
delta_4 = abs(data[0]['LVDT 4_mm'])
|
16
|
+
delta_5 = abs(data[0]['LVDT 5_mm'])
|
17
|
+
delta_6 = abs(data[0]['LVDT 6_mm'])
|
18
|
+
|
19
|
+
F_ult = force.max()
|
20
|
+
f_b = (F_ult * beam_span) / (width * depth **2) #MPa
|
21
|
+
|
22
|
+
|
23
|
+
delta_ms = (delta_3 + delta_4)/2
|
24
|
+
delta_rel = delta_ms - (delta_1 + delta_2 + delta_5 + delta_6) / 4
|
25
|
+
|
26
|
+
|
27
|
+
lower_bound = 0.1 * F_ult
|
28
|
+
upper_bound = 0.4 * F_ult
|
29
|
+
|
30
|
+
calcs_reg = (lower_bound <= force) & (force <= upper_bound)
|
31
|
+
|
32
|
+
F_ms = force[calcs_reg]
|
33
|
+
delta_ms_calcs = delta_ms[calcs_reg]
|
34
|
+
delat_rel_calcs = delta_rel[calcs_reg]
|
35
|
+
|
36
|
+
Delta_ms, intercept_ms = np.polyfit(delta_ms_calcs,F_ms,1)
|
37
|
+
Delta_rel, intercept_rel = np.polyfit(delat_rel_calcs,F_ms,1)
|
38
|
+
|
39
|
+
E_app = (23/108) * (beam_span/depth)**3 * Delta_ms * (1/width)
|
40
|
+
E_true = (1/36) * (beam_span/depth)**3 * Delta_rel * (1/width)
|
41
|
+
|
42
|
+
results = {
|
43
|
+
"E_app": E_app,
|
44
|
+
"E_true": E_true,
|
45
|
+
}
|
46
|
+
|
47
|
+
print(f"Sample Name: {sample_name}")
|
48
|
+
print('-' * 40)
|
49
|
+
return sample_name, results
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|