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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: struct_post
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A module designed to analyse common structural test results.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "struct_post"
3
- version = "0.1.3"
3
+ version = "0.1.4"
4
4
  description = "A module designed to analyse common structural test results."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: struct_post
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A module designed to analyse common structural test results.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -2,7 +2,8 @@ LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
4
  struct_post/__init__.py
5
- struct_post/postanalysis.py
5
+ struct_post/beam.py
6
+ struct_post/coupon.py
6
7
  struct_post.egg-info/PKG-INFO
7
8
  struct_post.egg-info/SOURCES.txt
8
9
  struct_post.egg-info/dependency_links.txt
File without changes
File without changes
File without changes