struct_post 0.1.3__py3-none-any.whl → 0.1.4.1__py3-none-any.whl

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/__init__.py CHANGED
@@ -4,4 +4,4 @@ from importlib import metadata
4
4
 
5
5
  __version__ = metadata.version("struct_post")
6
6
 
7
- from . import postanalysis
7
+ from . import coupon, beam
struct_post/beam.py ADDED
@@ -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.1
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
@@ -0,0 +1,8 @@
1
+ struct_post/__init__.py,sha256=Djkjogyef9M5cnplx6UyoDDMRHUQnp9jHCCkDhnteds,138
2
+ struct_post/beam.py,sha256=y-dV-taU1JNcyZYVTeJDe0i2aOkDoCUp4Ar5I8QC9iw,1495
3
+ struct_post/coupon.py,sha256=pi-aGs-EnKosq7QwPR1unskTVoNZ8kZ3o3gQjlFSf34,9835
4
+ struct_post-0.1.4.1.dist-info/licenses/LICENSE,sha256=0KCwPGoSiY1zA6U97FZJob9MJbaJOo6sRZF-xv6A1YI,1089
5
+ struct_post-0.1.4.1.dist-info/METADATA,sha256=yh1S4yDu0nl9tL_IRaj8FLYz7GgNYso9sQpXqYx0ZWA,658
6
+ struct_post-0.1.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ struct_post-0.1.4.1.dist-info/top_level.txt,sha256=jgiqPN0SMTMUomzOey9HfIrScTFmOzyuLpwIJ-Sz1-0,12
8
+ struct_post-0.1.4.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- struct_post/__init__.py,sha256=Ar5laTT1WBJdruVSNNZ0hCbIkBaXO-W1n5GF5_DX6e8,138
2
- struct_post/postanalysis.py,sha256=pi-aGs-EnKosq7QwPR1unskTVoNZ8kZ3o3gQjlFSf34,9835
3
- struct_post-0.1.3.dist-info/licenses/LICENSE,sha256=0KCwPGoSiY1zA6U97FZJob9MJbaJOo6sRZF-xv6A1YI,1089
4
- struct_post-0.1.3.dist-info/METADATA,sha256=9EE0TZ0kJrpe1Z34IoSIG649Ajuo8R8g7mqjIvVEL50,656
5
- struct_post-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- struct_post-0.1.3.dist-info/top_level.txt,sha256=jgiqPN0SMTMUomzOey9HfIrScTFmOzyuLpwIJ-Sz1-0,12
7
- struct_post-0.1.3.dist-info/RECORD,,
File without changes