struct_post 0.1.2__py3-none-any.whl → 0.1.4__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 +7 -0
- struct_post/beam.py +49 -0
- struct_post-0.1.4.dist-info/METADATA +28 -0
- struct_post-0.1.4.dist-info/RECORD +8 -0
- struct_post-0.1.4.dist-info/top_level.txt +1 -0
- struct_post-0.1.2.dist-info/METADATA +0 -17
- struct_post-0.1.2.dist-info/RECORD +0 -6
- struct_post-0.1.2.dist-info/top_level.txt +0 -1
- /postanalysis.py → /struct_post/coupon.py +0 -0
- {struct_post-0.1.2.dist-info → struct_post-0.1.4.dist-info}/WHEEL +0 -0
- {struct_post-0.1.2.dist-info → struct_post-0.1.4.dist-info}/licenses/LICENSE +0 -0
struct_post/__init__.py
ADDED
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
|
@@ -0,0 +1,28 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: struct_post
|
3
|
+
Version: 0.1.4
|
4
|
+
Summary: A module designed to analyse common structural test results.
|
5
|
+
Requires-Python: >=3.10
|
6
|
+
Description-Content-Type: text/markdown
|
7
|
+
License-File: LICENSE
|
8
|
+
Requires-Dist: matplotlib>=3.10.6
|
9
|
+
Requires-Dist: openpyxl>=3.1.5
|
10
|
+
Requires-Dist: pandas>=2.3.2
|
11
|
+
Dynamic: license-file
|
12
|
+
|
13
|
+
# struct_post
|
14
|
+
|
15
|
+
A module designed to analyze common structural test results.
|
16
|
+
|
17
|
+
The common structural tests include:
|
18
|
+
|
19
|
+
- Material coupon test
|
20
|
+
- Four-point bending test
|
21
|
+
- Three-point bending test
|
22
|
+
|
23
|
+
## Installation
|
24
|
+
|
25
|
+
You can install `struct_post` directly from PyPI:
|
26
|
+
|
27
|
+
```bash
|
28
|
+
pip install struct_post
|
@@ -0,0 +1,8 @@
|
|
1
|
+
struct_post/__init__.py,sha256=Ar5laTT1WBJdruVSNNZ0hCbIkBaXO-W1n5GF5_DX6e8,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.dist-info/licenses/LICENSE,sha256=0KCwPGoSiY1zA6U97FZJob9MJbaJOo6sRZF-xv6A1YI,1089
|
5
|
+
struct_post-0.1.4.dist-info/METADATA,sha256=nryZqujvPBIdEMQwAbUdaz22F9RcU19TdlnLkX00itU,656
|
6
|
+
struct_post-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
struct_post-0.1.4.dist-info/top_level.txt,sha256=jgiqPN0SMTMUomzOey9HfIrScTFmOzyuLpwIJ-Sz1-0,12
|
8
|
+
struct_post-0.1.4.dist-info/RECORD,,
|
@@ -0,0 +1 @@
|
|
1
|
+
struct_post
|
@@ -1,17 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: struct_post
|
3
|
-
Version: 0.1.2
|
4
|
-
Summary: A module designed to analyse common structural test results.
|
5
|
-
Requires-Python: >=3.10
|
6
|
-
Description-Content-Type: text/markdown
|
7
|
-
License-File: LICENSE
|
8
|
-
Requires-Dist: matplotlib>=3.10.6
|
9
|
-
Requires-Dist: openpyxl>=3.1.5
|
10
|
-
Requires-Dist: pandas>=2.3.2
|
11
|
-
Dynamic: license-file
|
12
|
-
|
13
|
-
# struct_post
|
14
|
-
A module designed to analyze common structural test results. The common stuctural tests include:
|
15
|
-
- Material coupon test
|
16
|
-
- Four-pont bending test
|
17
|
-
- Three-point bending test
|
@@ -1,6 +0,0 @@
|
|
1
|
-
postanalysis.py,sha256=pi-aGs-EnKosq7QwPR1unskTVoNZ8kZ3o3gQjlFSf34,9835
|
2
|
-
struct_post-0.1.2.dist-info/licenses/LICENSE,sha256=0KCwPGoSiY1zA6U97FZJob9MJbaJOo6sRZF-xv6A1YI,1089
|
3
|
-
struct_post-0.1.2.dist-info/METADATA,sha256=BNebudq4dP9wnJJ9nakZ0ikJ3gq945C2yzUp0Px6oyM,543
|
4
|
-
struct_post-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
5
|
-
struct_post-0.1.2.dist-info/top_level.txt,sha256=w8N_TPoCcb27x8PfGqVkxXpLC4jkch4gphmkmiWETS4,13
|
6
|
-
struct_post-0.1.2.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
postanalysis
|
File without changes
|
File without changes
|
File without changes
|