struct_post 0.1.2__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.
@@ -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,16 @@
1
+ # struct_post
2
+
3
+ A module designed to analyze common structural test results.
4
+
5
+ The common structural tests include:
6
+
7
+ - Material coupon test
8
+ - Four-point bending test
9
+ - Three-point bending test
10
+
11
+ ## Installation
12
+
13
+ You can install `struct_post` directly from PyPI:
14
+
15
+ ```bash
16
+ pip install struct_post
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "struct_post"
3
- version = "0.1.2"
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,7 @@
1
+ # struct_post/__init__.py
2
+
3
+ from importlib import metadata
4
+
5
+ __version__ = metadata.version("struct_post")
6
+
7
+ from . import postanalysis
@@ -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
@@ -1,7 +1,9 @@
1
1
  LICENSE
2
2
  README.md
3
- postanalysis.py
4
3
  pyproject.toml
4
+ struct_post/__init__.py
5
+ struct_post/beam.py
6
+ struct_post/coupon.py
5
7
  struct_post.egg-info/PKG-INFO
6
8
  struct_post.egg-info/SOURCES.txt
7
9
  struct_post.egg-info/dependency_links.txt
@@ -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,5 +0,0 @@
1
- # struct_post
2
- A module designed to analyze common structural test results. The common stuctural tests include:
3
- - Material coupon test
4
- - Four-pont bending test
5
- - Three-point bending test
@@ -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 +0,0 @@
1
- postanalysis
File without changes
File without changes