structuralcodes 0.4.0__py3-none-any.whl → 0.6.0__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.

Potentially problematic release.


This version of structuralcodes might be problematic. Click here for more details.

Files changed (52) hide show
  1. structuralcodes/__init__.py +1 -1
  2. structuralcodes/codes/ec2_2004/__init__.py +2 -0
  3. structuralcodes/codes/ec2_2004/shear.py +44 -4
  4. structuralcodes/codes/mc2010/__init__.py +18 -0
  5. structuralcodes/codes/mc2010/_concrete_creep_and_shrinkage.py +2 -2
  6. structuralcodes/codes/mc2010/_concrete_punching.py +300 -388
  7. structuralcodes/core/base.py +116 -5
  8. structuralcodes/geometry/__init__.py +2 -8
  9. structuralcodes/geometry/_circular.py +3 -10
  10. structuralcodes/geometry/_geometry.py +58 -114
  11. structuralcodes/geometry/_rectangular.py +3 -10
  12. structuralcodes/geometry/_reinforcement.py +9 -14
  13. structuralcodes/geometry/profiles/__init__.py +19 -0
  14. structuralcodes/geometry/profiles/_base_profile.py +305 -0
  15. structuralcodes/geometry/profiles/_common_functions.py +194 -0
  16. structuralcodes/geometry/profiles/_he.py +192 -0
  17. structuralcodes/geometry/profiles/_ipe.py +130 -0
  18. structuralcodes/geometry/profiles/_ipn.py +329 -0
  19. structuralcodes/geometry/profiles/_ub.py +264 -0
  20. structuralcodes/geometry/profiles/_ubp.py +227 -0
  21. structuralcodes/geometry/profiles/_uc.py +276 -0
  22. structuralcodes/geometry/profiles/_upn.py +315 -0
  23. structuralcodes/materials/__init__.py +2 -1
  24. structuralcodes/materials/basic/__init__.py +11 -0
  25. structuralcodes/materials/basic/_elastic.py +69 -0
  26. structuralcodes/materials/basic/_elasticplastic.py +92 -0
  27. structuralcodes/materials/basic/_generic.py +43 -0
  28. structuralcodes/materials/concrete/__init__.py +3 -0
  29. structuralcodes/materials/concrete/_concrete.py +10 -1
  30. structuralcodes/materials/concrete/_concreteEC2_2004.py +14 -0
  31. structuralcodes/materials/concrete/_concreteEC2_2023.py +14 -0
  32. structuralcodes/materials/concrete/_concreteMC2010.py +19 -0
  33. structuralcodes/materials/constitutive_laws/__init__.py +3 -0
  34. structuralcodes/materials/constitutive_laws/_elasticplastic.py +2 -2
  35. structuralcodes/materials/constitutive_laws/_initial_strain.py +130 -0
  36. structuralcodes/materials/reinforcement/__init__.py +6 -0
  37. structuralcodes/materials/reinforcement/_reinforcement.py +10 -1
  38. structuralcodes/materials/reinforcement/_reinforcementEC2_2004.py +15 -1
  39. structuralcodes/materials/reinforcement/_reinforcementEC2_2023.py +15 -1
  40. structuralcodes/materials/reinforcement/_reinforcementMC2010.py +15 -1
  41. structuralcodes/sections/_generic.py +53 -14
  42. structuralcodes/sections/_rc_utils.py +15 -5
  43. structuralcodes/sections/section_integrators/__init__.py +3 -1
  44. structuralcodes/sections/section_integrators/_fiber_integrator.py +19 -11
  45. structuralcodes/sections/section_integrators/_marin_integrator.py +25 -20
  46. {structuralcodes-0.4.0.dist-info → structuralcodes-0.6.0.dist-info}/METADATA +2 -2
  47. structuralcodes-0.6.0.dist-info/RECORD +77 -0
  48. structuralcodes/geometry/_steel_sections.py +0 -2155
  49. structuralcodes-0.4.0.dist-info/RECORD +0 -63
  50. /structuralcodes/{sections/section_integrators → core}/_marin_integration.py +0 -0
  51. {structuralcodes-0.4.0.dist-info → structuralcodes-0.6.0.dist-info}/WHEEL +0 -0
  52. {structuralcodes-0.4.0.dist-info → structuralcodes-0.6.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,192 @@
1
+ """HE profiles."""
2
+
3
+ from shapely import (
4
+ Polygon,
5
+ )
6
+
7
+ from ._base_profile import BaseProfile
8
+ from ._common_functions import (
9
+ _create_I_section,
10
+ )
11
+
12
+
13
+ class HE(BaseProfile):
14
+ """Simple class for representing an HE profile.
15
+
16
+ HE A, HE B, HE M 100-1000 in accordance with Standard Euronorm 53-62.
17
+ """
18
+
19
+ parameters = {
20
+ 'HEA100': {'h': 96.0, 'b': 100.0, 'tw': 5.0, 'tf': 8.0, 'r': 12.0},
21
+ 'HEA120': {'h': 114.0, 'b': 120.0, 'tw': 5.0, 'tf': 8.0, 'r': 12.0},
22
+ 'HEA140': {'h': 133.0, 'b': 140.0, 'tw': 5.5, 'tf': 8.5, 'r': 12.0},
23
+ 'HEA160': {'h': 152.0, 'b': 160.0, 'tw': 6.0, 'tf': 9.0, 'r': 15.0},
24
+ 'HEA180': {'h': 171.0, 'b': 180.0, 'tw': 6.0, 'tf': 9.5, 'r': 15.0},
25
+ 'HEA200': {'h': 190.0, 'b': 200.0, 'tw': 6.5, 'tf': 10.0, 'r': 18.0},
26
+ 'HEA220': {'h': 210.0, 'b': 220.0, 'tw': 7.0, 'tf': 11.0, 'r': 18.0},
27
+ 'HEA240': {'h': 230.0, 'b': 240.0, 'tw': 7.5, 'tf': 12.0, 'r': 21.0},
28
+ 'HEA260': {'h': 250.0, 'b': 260.0, 'tw': 7.5, 'tf': 12.5, 'r': 24.0},
29
+ 'HEA280': {'h': 270.0, 'b': 280.0, 'tw': 8.0, 'tf': 13.0, 'r': 24.0},
30
+ 'HEA300': {'h': 290.0, 'b': 300.0, 'tw': 8.5, 'tf': 14.0, 'r': 27.0},
31
+ 'HEA320': {'h': 310.0, 'b': 300.0, 'tw': 9.0, 'tf': 15.5, 'r': 27.0},
32
+ 'HEA340': {'h': 330.0, 'b': 300.0, 'tw': 9.5, 'tf': 16.5, 'r': 27.0},
33
+ 'HEA360': {'h': 350.0, 'b': 300.0, 'tw': 10.0, 'tf': 17.5, 'r': 27.0},
34
+ 'HEA400': {'h': 390.0, 'b': 300.0, 'tw': 11.0, 'tf': 19.0, 'r': 27.0},
35
+ 'HEA450': {'h': 440.0, 'b': 300.0, 'tw': 11.5, 'tf': 21.0, 'r': 27.0},
36
+ 'HEA500': {'h': 490.0, 'b': 300.0, 'tw': 12.0, 'tf': 23.0, 'r': 27.0},
37
+ 'HEA550': {'h': 540.0, 'b': 300.0, 'tw': 12.5, 'tf': 24.0, 'r': 27.0},
38
+ 'HEA600': {'h': 590.0, 'b': 300.0, 'tw': 13.0, 'tf': 25.0, 'r': 27.0},
39
+ 'HEA650': {'h': 640.0, 'b': 300.0, 'tw': 13.5, 'tf': 26.0, 'r': 27.0},
40
+ 'HEA700': {'h': 690.0, 'b': 300.0, 'tw': 14.5, 'tf': 27.0, 'r': 27.0},
41
+ 'HEA800': {'h': 790.0, 'b': 300.0, 'tw': 15.0, 'tf': 28.0, 'r': 30.0},
42
+ 'HEA900': {'h': 890.0, 'b': 300.0, 'tw': 16.0, 'tf': 30.0, 'r': 30.0},
43
+ 'HEA1000': {'h': 990.0, 'b': 300.0, 'tw': 16.5, 'tf': 31.0, 'r': 30.0},
44
+ 'HEB100': {'h': 100.0, 'b': 100.0, 'tw': 6.0, 'tf': 10.0, 'r': 12.0},
45
+ 'HEB120': {'h': 120.0, 'b': 120.0, 'tw': 6.5, 'tf': 11.0, 'r': 12.0},
46
+ 'HEB140': {'h': 140.0, 'b': 140.0, 'tw': 7.0, 'tf': 12.0, 'r': 12.0},
47
+ 'HEB160': {'h': 160.0, 'b': 160.0, 'tw': 8.0, 'tf': 13.0, 'r': 15.0},
48
+ 'HEB180': {'h': 180.0, 'b': 180.0, 'tw': 8.5, 'tf': 14.0, 'r': 15.0},
49
+ 'HEB200': {'h': 200.0, 'b': 200.0, 'tw': 9.0, 'tf': 15.0, 'r': 18.0},
50
+ 'HEB220': {'h': 220.0, 'b': 220.0, 'tw': 9.5, 'tf': 16.0, 'r': 18.0},
51
+ 'HEB240': {'h': 240.0, 'b': 240.0, 'tw': 10.0, 'tf': 17.0, 'r': 21.0},
52
+ 'HEB260': {'h': 260.0, 'b': 260.0, 'tw': 10.0, 'tf': 17.5, 'r': 24.0},
53
+ 'HEB280': {'h': 280.0, 'b': 280.0, 'tw': 10.5, 'tf': 18.0, 'r': 24.0},
54
+ 'HEB300': {'h': 300.0, 'b': 300.0, 'tw': 11.0, 'tf': 19.0, 'r': 27.0},
55
+ 'HEB320': {'h': 320.0, 'b': 300.0, 'tw': 11.5, 'tf': 20.5, 'r': 27.0},
56
+ 'HEB340': {'h': 340.0, 'b': 300.0, 'tw': 12.0, 'tf': 21.5, 'r': 27.0},
57
+ 'HEB360': {'h': 360.0, 'b': 300.0, 'tw': 12.5, 'tf': 22.5, 'r': 27.0},
58
+ 'HEB400': {'h': 400.0, 'b': 300.0, 'tw': 13.5, 'tf': 24.0, 'r': 27.0},
59
+ 'HEB450': {'h': 450.0, 'b': 300.0, 'tw': 14.0, 'tf': 26.0, 'r': 27.0},
60
+ 'HEB500': {'h': 500.0, 'b': 300.0, 'tw': 14.5, 'tf': 28.0, 'r': 27.0},
61
+ 'HEB550': {'h': 550.0, 'b': 300.0, 'tw': 15.0, 'tf': 29.0, 'r': 27.0},
62
+ 'HEB600': {'h': 600.0, 'b': 300.0, 'tw': 15.5, 'tf': 30.0, 'r': 27.0},
63
+ 'HEB650': {'h': 650.0, 'b': 300.0, 'tw': 16.0, 'tf': 31.0, 'r': 27.0},
64
+ 'HEB700': {'h': 700.0, 'b': 300.0, 'tw': 17.0, 'tf': 32.0, 'r': 27.0},
65
+ 'HEB800': {'h': 800.0, 'b': 300.0, 'tw': 17.5, 'tf': 33.0, 'r': 30.0},
66
+ 'HEB900': {'h': 900.0, 'b': 300.0, 'tw': 18.5, 'tf': 35.0, 'r': 30.0},
67
+ 'HEB1000': {
68
+ 'h': 1000.0,
69
+ 'b': 300.0,
70
+ 'tw': 19.0,
71
+ 'tf': 36.0,
72
+ 'r': 30.0,
73
+ },
74
+ 'HEM100': {'h': 120.0, 'b': 106.0, 'tw': 12.0, 'tf': 20.0, 'r': 12.0},
75
+ 'HEM120': {'h': 140.0, 'b': 126.0, 'tw': 12.5, 'tf': 21.0, 'r': 12.0},
76
+ 'HEM140': {'h': 160.0, 'b': 146.0, 'tw': 13.0, 'tf': 22.0, 'r': 12.0},
77
+ 'HEM160': {'h': 180.0, 'b': 166.0, 'tw': 14.0, 'tf': 23.0, 'r': 15.0},
78
+ 'HEM180': {'h': 200.0, 'b': 186.0, 'tw': 14.5, 'tf': 24.0, 'r': 15.0},
79
+ 'HEM200': {'h': 220.0, 'b': 206.0, 'tw': 15.0, 'tf': 25.0, 'r': 18.0},
80
+ 'HEM220': {'h': 240.0, 'b': 226.0, 'tw': 15.5, 'tf': 26.0, 'r': 18.0},
81
+ 'HEM240': {'h': 270.0, 'b': 248.0, 'tw': 18.0, 'tf': 32.0, 'r': 21.0},
82
+ 'HEM260': {'h': 290.0, 'b': 268.0, 'tw': 18.0, 'tf': 32.5, 'r': 24.0},
83
+ 'HEM280': {'h': 310.0, 'b': 288.0, 'tw': 18.5, 'tf': 33.0, 'r': 24.0},
84
+ 'HEM300': {'h': 340.0, 'b': 310.0, 'tw': 21.0, 'tf': 39.0, 'r': 27.0},
85
+ 'HEM320': {'h': 359.0, 'b': 309.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
86
+ 'HEM340': {'h': 377.0, 'b': 309.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
87
+ 'HEM360': {'h': 395.0, 'b': 308.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
88
+ 'HEM400': {'h': 432.0, 'b': 307.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
89
+ 'HEM450': {'h': 478.0, 'b': 307.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
90
+ 'HEM500': {'h': 524.0, 'b': 306.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
91
+ 'HEM550': {'h': 572.0, 'b': 306.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
92
+ 'HEM600': {'h': 620.0, 'b': 305.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
93
+ 'HEM650': {'h': 668.0, 'b': 305.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
94
+ 'HEM700': {'h': 716.0, 'b': 304.0, 'tw': 21.0, 'tf': 40.0, 'r': 27.0},
95
+ 'HEM800': {'h': 814.0, 'b': 303.0, 'tw': 21.0, 'tf': 40.0, 'r': 30.0},
96
+ 'HEM900': {'h': 910.0, 'b': 302.0, 'tw': 21.0, 'tf': 40.0, 'r': 30.0},
97
+ 'HEM1000': {
98
+ 'h': 1008.0,
99
+ 'b': 302.0,
100
+ 'tw': 21.0,
101
+ 'tf': 40.0,
102
+ 'r': 30.0,
103
+ },
104
+ }
105
+
106
+ @classmethod
107
+ def get_polygon(cls, name: str) -> Polygon:
108
+ """Returns a shapely polygon representing an HE section."""
109
+ parameters = cls.parameters.get(name)
110
+ if parameters is None:
111
+ raise ValueError(
112
+ f"Profile '{name}' not found in HE sections. "
113
+ "Select a valid profile (available ones: "
114
+ f"{cls.profiles()})"
115
+ )
116
+ return _create_I_section(**parameters)
117
+
118
+ @classmethod
119
+ def profiles(cls) -> list:
120
+ """Returns a list containing all available profiles."""
121
+ return list(cls.parameters.keys())
122
+
123
+ def __init__(self, name: str) -> None:
124
+ """Creates a new HE object."""
125
+ parameters = self.parameters.get(name)
126
+ if parameters is None:
127
+ raise ValueError(
128
+ f"Profile '{name}' not found in HE sections. "
129
+ "Select a valid profile (available ones: "
130
+ f"{self.profiles()})"
131
+ )
132
+ super().__init__()
133
+ self._h = parameters.get('h')
134
+ self._b = parameters.get('b')
135
+ self._tw = parameters.get('tw')
136
+ self._tf = parameters.get('tf')
137
+ self._r = parameters.get('r')
138
+ self._polygon = _create_I_section(**parameters)
139
+
140
+ @property
141
+ def polygon(self) -> Polygon:
142
+ """Returns shapely Polygon of section.
143
+
144
+ Returns:
145
+ Polygon: The represention of the HE section.
146
+ """
147
+ return self._polygon
148
+
149
+ @property
150
+ def h(self) -> float:
151
+ """Returns height of HE section.
152
+
153
+ Returns:
154
+ float: Height h of HE section.
155
+ """
156
+ return self._h
157
+
158
+ @property
159
+ def b(self) -> float:
160
+ """Returns width of HE section.
161
+
162
+ Returns:
163
+ float: Width b of HE section.
164
+ """
165
+ return self._b
166
+
167
+ @property
168
+ def tw(self) -> float:
169
+ """Returns thickness of web of HE section.
170
+
171
+ Returns:
172
+ float: Web thickness tw of HE section.
173
+ """
174
+ return self._tw
175
+
176
+ @property
177
+ def tf(self) -> float:
178
+ """Returns thickness of flange of HE section.
179
+
180
+ Returns:
181
+ float: Flange thickness tw of HE section.
182
+ """
183
+ return self._tf
184
+
185
+ @property
186
+ def r(self) -> float:
187
+ """Returns fillet radius of HE section.
188
+
189
+ Returns:
190
+ float: Fillet radius r of HE section.
191
+ """
192
+ return self._r
@@ -0,0 +1,130 @@
1
+ """IPE profiles."""
2
+
3
+ from shapely import (
4
+ Polygon,
5
+ )
6
+
7
+ from ._base_profile import BaseProfile
8
+ from ._common_functions import (
9
+ _create_I_section,
10
+ )
11
+
12
+
13
+ class IPE(BaseProfile):
14
+ """Simple class for representing an IPE profile.
15
+
16
+ IPE 80-600 in accordance with standard Euronorm 19-57.
17
+ """
18
+
19
+ parameters = {
20
+ 'IPE80': {'h': 80.0, 'b': 46.0, 'tw': 3.8, 'tf': 5.2, 'r': 5.0},
21
+ 'IPE100': {'h': 100.0, 'b': 55.0, 'tw': 4.1, 'tf': 5.7, 'r': 7.0},
22
+ 'IPE120': {'h': 120.0, 'b': 64.0, 'tw': 4.4, 'tf': 6.3, 'r': 7.0},
23
+ 'IPE140': {'h': 140.0, 'b': 73.0, 'tw': 4.7, 'tf': 6.9, 'r': 7.0},
24
+ 'IPE160': {'h': 160.0, 'b': 82.0, 'tw': 5.0, 'tf': 7.4, 'r': 9.0},
25
+ 'IPE180': {'h': 180.0, 'b': 91.0, 'tw': 5.3, 'tf': 8.0, 'r': 9.0},
26
+ 'IPE200': {'h': 200.0, 'b': 100.0, 'tw': 5.6, 'tf': 8.5, 'r': 12.0},
27
+ 'IPE220': {'h': 220.0, 'b': 110.0, 'tw': 5.9, 'tf': 9.2, 'r': 12.0},
28
+ 'IPE240': {'h': 240.0, 'b': 120.0, 'tw': 6.2, 'tf': 9.8, 'r': 15.0},
29
+ 'IPE270': {'h': 270.0, 'b': 135.0, 'tw': 6.6, 'tf': 10.2, 'r': 15.0},
30
+ 'IPE300': {'h': 300.0, 'b': 150.0, 'tw': 7.1, 'tf': 10.7, 'r': 15.0},
31
+ 'IPE330': {'h': 330.0, 'b': 160.0, 'tw': 7.5, 'tf': 11.5, 'r': 18.0},
32
+ 'IPE360': {'h': 360.0, 'b': 170.0, 'tw': 8.0, 'tf': 12.7, 'r': 18.0},
33
+ 'IPE400': {'h': 400.0, 'b': 180.0, 'tw': 8.6, 'tf': 13.5, 'r': 21.0},
34
+ 'IPE450': {'h': 450.0, 'b': 190.0, 'tw': 9.4, 'tf': 14.6, 'r': 21.0},
35
+ 'IPE500': {'h': 500.0, 'b': 200.0, 'tw': 10.2, 'tf': 16.0, 'r': 21.0},
36
+ 'IPE550': {'h': 550.0, 'b': 210.0, 'tw': 11.1, 'tf': 17.2, 'r': 24.0},
37
+ 'IPE600': {'h': 600.0, 'b': 220.0, 'tw': 12.0, 'tf': 19.0, 'r': 24.0},
38
+ }
39
+
40
+ @classmethod
41
+ def get_polygon(cls, name: str) -> Polygon:
42
+ """Returns a shapely polygon representing an IPE section."""
43
+ if isinstance(name, (float, int)):
44
+ name = f'IPE{int(name):0d}'
45
+ parameters = cls.parameters.get(name)
46
+ if parameters is None:
47
+ raise ValueError(
48
+ f"Profile '{name}' not found in IPE sections. "
49
+ "Select a valid profile (available ones: "
50
+ f"{cls.profiles()})"
51
+ )
52
+ return _create_I_section(**parameters)
53
+
54
+ @classmethod
55
+ def profiles(cls) -> list:
56
+ """Returns a list containing all available profiles."""
57
+ return list(cls.parameters.keys())
58
+
59
+ def __init__(self, name: str) -> None:
60
+ """Creates a new IPE object."""
61
+ if isinstance(name, (float, int)):
62
+ name = f'IPE{int(name):0d}'
63
+ parameters = self.parameters.get(name)
64
+ if parameters is None:
65
+ raise ValueError(
66
+ f"Profile '{name}' not found in IPE sections. "
67
+ "Select a valid profile (available ones: "
68
+ f"{self.profiles()})"
69
+ )
70
+ super().__init__()
71
+ self._h = parameters.get('h')
72
+ self._b = parameters.get('b')
73
+ self._tw = parameters.get('tw')
74
+ self._tf = parameters.get('tf')
75
+ self._r = parameters.get('r')
76
+ self._polygon = _create_I_section(**parameters)
77
+
78
+ @property
79
+ def polygon(self) -> Polygon:
80
+ """Returns shapely Polygon of section.
81
+
82
+ Returns:
83
+ Polygon: The represention of the IPE section.
84
+ """
85
+ return self._polygon
86
+
87
+ @property
88
+ def h(self) -> float:
89
+ """Returns height of IPE section.
90
+
91
+ Returns:
92
+ float: Height h of IPE section.
93
+ """
94
+ return self._h
95
+
96
+ @property
97
+ def b(self) -> float:
98
+ """Returns width of IPE section.
99
+
100
+ Returns:
101
+ float: Width b of IPE section.
102
+ """
103
+ return self._b
104
+
105
+ @property
106
+ def tw(self) -> float:
107
+ """Returns thickness of web of IPE section.
108
+
109
+ Returns:
110
+ float: Web thickness tw of IPE section.
111
+ """
112
+ return self._tw
113
+
114
+ @property
115
+ def tf(self) -> float:
116
+ """Returns thickness of flange of IPE section.
117
+
118
+ Returns:
119
+ float: Flange thickness tw of IPE section.
120
+ """
121
+ return self._tf
122
+
123
+ @property
124
+ def r(self) -> float:
125
+ """Returns fillet radius of IPE section.
126
+
127
+ Returns:
128
+ float: Fillet radius r of IPE section.
129
+ """
130
+ return self._r
@@ -0,0 +1,329 @@
1
+ """IPN profiles."""
2
+
3
+ from shapely import (
4
+ Polygon,
5
+ )
6
+
7
+ from ._base_profile import BaseProfile
8
+ from ._common_functions import (
9
+ _create_taper_I_section,
10
+ )
11
+
12
+
13
+ class IPN(BaseProfile):
14
+ """Simple class for representing an IPN profile.
15
+
16
+ IPN in accordance with standard.
17
+
18
+ 14% slope in flange.
19
+ """
20
+
21
+ parameters = {
22
+ 'IPN80': {
23
+ 'h': 80.0,
24
+ 'b': 42.0,
25
+ 'tw': 3.9,
26
+ 'tf': 5.9,
27
+ 'r1': 3.9,
28
+ 'r2': 2.3,
29
+ 'd': 59.0,
30
+ },
31
+ 'IPN100': {
32
+ 'h': 100.0,
33
+ 'b': 50.0,
34
+ 'tw': 4.5,
35
+ 'tf': 6.8,
36
+ 'r1': 4.5,
37
+ 'r2': 2.7,
38
+ 'd': 75.7,
39
+ },
40
+ 'IPN120': {
41
+ 'h': 120.0,
42
+ 'b': 58.0,
43
+ 'tw': 5.1,
44
+ 'tf': 7.7,
45
+ 'r1': 5.1,
46
+ 'r2': 3.1,
47
+ 'd': 92.4,
48
+ },
49
+ 'IPN140': {
50
+ 'h': 140.0,
51
+ 'b': 66.0,
52
+ 'tw': 5.7,
53
+ 'tf': 8.6,
54
+ 'r1': 5.7,
55
+ 'r2': 3.4,
56
+ 'd': 109.1,
57
+ },
58
+ 'IPN160': {
59
+ 'h': 160.0,
60
+ 'b': 74.0,
61
+ 'tw': 6.3,
62
+ 'tf': 9.5,
63
+ 'r1': 6.3,
64
+ 'r2': 3.8,
65
+ 'd': 125.8,
66
+ },
67
+ 'IPN180': {
68
+ 'h': 180.0,
69
+ 'b': 82.0,
70
+ 'tw': 6.9,
71
+ 'tf': 10.4,
72
+ 'r1': 6.9,
73
+ 'r2': 4.1,
74
+ 'd': 142.4,
75
+ },
76
+ 'IPN200': {
77
+ 'h': 200.0,
78
+ 'b': 90.0,
79
+ 'tw': 7.5,
80
+ 'tf': 11.3,
81
+ 'r1': 7.5,
82
+ 'r2': 4.5,
83
+ 'd': 159.1,
84
+ },
85
+ 'IPN220': {
86
+ 'h': 220.0,
87
+ 'b': 98.0,
88
+ 'tw': 8.1,
89
+ 'tf': 12.2,
90
+ 'r1': 8.1,
91
+ 'r2': 4.9,
92
+ 'd': 175.8,
93
+ },
94
+ 'IPN240': {
95
+ 'h': 240.0,
96
+ 'b': 106.0,
97
+ 'tw': 8.7,
98
+ 'tf': 13.1,
99
+ 'r1': 8.7,
100
+ 'r2': 5.2,
101
+ 'd': 192.5,
102
+ },
103
+ 'IPN260': {
104
+ 'h': 260.0,
105
+ 'b': 113.0,
106
+ 'tw': 9.4,
107
+ 'tf': 14.1,
108
+ 'r1': 9.4,
109
+ 'r2': 5.6,
110
+ 'd': 208.9,
111
+ },
112
+ 'IPN280': {
113
+ 'h': 280.0,
114
+ 'b': 119.0,
115
+ 'tw': 10.1,
116
+ 'tf': 15.2,
117
+ 'r1': 10.1,
118
+ 'r2': 6.1,
119
+ 'd': 225.1,
120
+ },
121
+ 'IPN300': {
122
+ 'h': 300.0,
123
+ 'b': 125.0,
124
+ 'tw': 10.8,
125
+ 'tf': 16.2,
126
+ 'r1': 10.8,
127
+ 'r2': 6.5,
128
+ 'd': 241.6,
129
+ },
130
+ 'IPN320': {
131
+ 'h': 320.0,
132
+ 'b': 131.0,
133
+ 'tw': 11.5,
134
+ 'tf': 17.3,
135
+ 'r1': 11.5,
136
+ 'r2': 6.9,
137
+ 'd': 257.9,
138
+ },
139
+ 'IPN340': {
140
+ 'h': 340.0,
141
+ 'b': 137.0,
142
+ 'tw': 12.2,
143
+ 'tf': 18.3,
144
+ 'r1': 12.2,
145
+ 'r2': 7.3,
146
+ 'd': 274.3,
147
+ },
148
+ 'IPN360': {
149
+ 'h': 360.0,
150
+ 'b': 143.0,
151
+ 'tw': 13.0,
152
+ 'tf': 19.5,
153
+ 'r1': 13.0,
154
+ 'r2': 7.8,
155
+ 'd': 290.2,
156
+ },
157
+ 'IPN380': {
158
+ 'h': 380.0,
159
+ 'b': 149.0,
160
+ 'tw': 13.7,
161
+ 'tf': 20.5,
162
+ 'r1': 13.7,
163
+ 'r2': 8.2,
164
+ 'd': 306.7,
165
+ },
166
+ 'IPN400': {
167
+ 'h': 400.0,
168
+ 'b': 155.0,
169
+ 'tw': 14.4,
170
+ 'tf': 21.6,
171
+ 'r1': 14.4,
172
+ 'r2': 8.6,
173
+ 'd': 322.9,
174
+ },
175
+ 'IPN450': {
176
+ 'h': 450.0,
177
+ 'b': 170.0,
178
+ 'tw': 16.2,
179
+ 'tf': 24.3,
180
+ 'r1': 16.2,
181
+ 'r2': 9.7,
182
+ 'd': 363.6,
183
+ },
184
+ 'IPN500': {
185
+ 'h': 500.0,
186
+ 'b': 185.0,
187
+ 'tw': 18.0,
188
+ 'tf': 27.0,
189
+ 'r1': 18.0,
190
+ 'r2': 10.8,
191
+ 'd': 404.3,
192
+ },
193
+ 'IPN550': {
194
+ 'h': 550.0,
195
+ 'b': 200.0,
196
+ 'tw': 19.0,
197
+ 'tf': 30.0,
198
+ 'r1': 19.0,
199
+ 'r2': 11.9,
200
+ 'd': 445.6,
201
+ },
202
+ 'IPN600': {
203
+ 'h': 600.0,
204
+ 'b': 215.0,
205
+ 'tw': 21.6,
206
+ 'tf': 32.4,
207
+ 'r1': 21.6,
208
+ 'r2': 13.0,
209
+ 'd': 485.8,
210
+ },
211
+ }
212
+
213
+ @classmethod
214
+ def get_polygon(cls, name: str) -> Polygon:
215
+ """Returns a shapely polygon representing an IPN section."""
216
+ if isinstance(name, (float, int)):
217
+ name = f'IPN{int(name):0d}'
218
+ parameters = cls.parameters.get(name)
219
+ if parameters is None:
220
+ raise ValueError(
221
+ f"Profile '{name}' not found in IPN sections. "
222
+ "Select a valid profile (available ones: "
223
+ f"{cls.profiles()})"
224
+ )
225
+ parameters['slope'] = 0.14
226
+ return _create_taper_I_section(
227
+ **{
228
+ key: parameters[key]
229
+ for key in parameters
230
+ if key in ['h', 'b', 'tw', 'tf', 'r1', 'r2', 'slope']
231
+ }
232
+ )
233
+
234
+ @classmethod
235
+ def profiles(cls) -> list:
236
+ """Returns a list containing all available profiles."""
237
+ return list(cls.parameters.keys())
238
+
239
+ def __init__(self, name: str) -> None:
240
+ """Creates a new IPN object."""
241
+ if isinstance(name, (float, int)):
242
+ name = f'IPN{int(name):0d}'
243
+ parameters = self.parameters.get(name)
244
+ if parameters is None:
245
+ raise ValueError(
246
+ f"Profile '{name}' not found in IPN sections. "
247
+ "Select a valid profile (available ones: "
248
+ f"{self.profiles()})"
249
+ )
250
+ super().__init__()
251
+ self._h = parameters.get('h')
252
+ self._b = parameters.get('b')
253
+ self._tw = parameters.get('tw')
254
+ self._tf = parameters.get('tf')
255
+ self._r1 = parameters.get('r1')
256
+ self._r2 = parameters.get('r2')
257
+ self._flange_slope = 0.14
258
+ self._polygon = _create_taper_I_section(
259
+ h=self._h,
260
+ b=self._b,
261
+ tw=self._tw,
262
+ tf=self._tf,
263
+ r1=self._r1,
264
+ r2=self._r2,
265
+ slope=self._flange_slope,
266
+ )
267
+
268
+ @property
269
+ def polygon(self) -> Polygon:
270
+ """Returns shapely Polygon of section.
271
+
272
+ Returns:
273
+ Polygon: The represention of the IPN section.
274
+ """
275
+ return self._polygon
276
+
277
+ @property
278
+ def h(self) -> float:
279
+ """Returns height of IPN section.
280
+
281
+ Returns:
282
+ float: Height h of IPN section.
283
+ """
284
+ return self._h
285
+
286
+ @property
287
+ def b(self) -> float:
288
+ """Returns width of IPN section.
289
+
290
+ Returns:
291
+ float: Width b of IPN section.
292
+ """
293
+ return self._b
294
+
295
+ @property
296
+ def tw(self) -> float:
297
+ """Returns thickness of web of IPN section.
298
+
299
+ Returns:
300
+ float: Web thickness tw of IPN section.
301
+ """
302
+ return self._tw
303
+
304
+ @property
305
+ def tf(self) -> float:
306
+ """Returns thickness of flange of IPN section.
307
+
308
+ Returns:
309
+ float: Flange thickness tw of IPN section.
310
+ """
311
+ return self._tf
312
+
313
+ @property
314
+ def r1(self) -> float:
315
+ """Returns fillet radius of IPN section.
316
+
317
+ Returns:
318
+ float: Fillet radius r1 of IPN section.
319
+ """
320
+ return self._r1
321
+
322
+ @property
323
+ def r2(self) -> float:
324
+ """Returns fillet radius of IPN section.
325
+
326
+ Returns:
327
+ float: Fillet radius r2 of IPN section.
328
+ """
329
+ return self._r2