structuralcodes 0.3.0__tar.gz → 0.4.0__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.
Potentially problematic release.
This version of structuralcodes might be problematic. Click here for more details.
- structuralcodes-0.4.0/LICENSE +201 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/PKG-INFO +3 -2
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/__init__.py +1 -1
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2010/__init__.py +22 -0
- structuralcodes-0.4.0/structuralcodes/codes/mc2010/_interface_concrete_steel_rebar.py +348 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/core/base.py +0 -21
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/geometry/_circular.py +25 -5
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/geometry/_geometry.py +6 -1
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/geometry/_rectangular.py +23 -5
- structuralcodes-0.4.0/structuralcodes/materials/concrete/_concrete.py +53 -0
- structuralcodes-0.4.0/structuralcodes/materials/concrete/_concreteEC2_2004.py +523 -0
- structuralcodes-0.4.0/structuralcodes/materials/concrete/_concreteEC2_2023.py +493 -0
- structuralcodes-0.4.0/structuralcodes/materials/concrete/_concreteMC2010.py +539 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/constitutive_laws/__init__.py +16 -15
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/constitutive_laws/_bilinearcompression.py +10 -9
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/reinforcement/_reinforcement.py +0 -71
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/reinforcement/_reinforcementEC2_2004.py +36 -1
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/reinforcement/_reinforcementEC2_2023.py +33 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/reinforcement/_reinforcementMC2010.py +37 -1
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/_generic.py +23 -7
- structuralcodes-0.3.0/structuralcodes/materials/concrete/_concrete.py +0 -114
- structuralcodes-0.3.0/structuralcodes/materials/concrete/_concreteEC2_2004.py +0 -477
- structuralcodes-0.3.0/structuralcodes/materials/concrete/_concreteEC2_2023.py +0 -435
- structuralcodes-0.3.0/structuralcodes/materials/concrete/_concreteMC2010.py +0 -494
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/README.md +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/pyproject.toml +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2004/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2004/_concrete_creep_and_shrinkage.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2004/_concrete_material_properties.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2004/_reinforcement_material_properties.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2004/_section_7_3_crack_control.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2004/shear.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2023/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2023/_annexB_time_dependent.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2023/_section5_materials.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/ec2_2023/_section9_sls.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2010/_concrete_creep_and_shrinkage.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2010/_concrete_interface_different_casting_times.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2010/_concrete_material_properties.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2010/_concrete_punching.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2010/_concrete_shear.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2010/_concrete_torsion.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2010/_reinforcement_material_properties.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/codes/mc2020/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/core/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/core/_section_results.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/geometry/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/geometry/_reinforcement.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/geometry/_steel_sections.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/concrete/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/constitutive_laws/_elastic.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/constitutive_laws/_elasticplastic.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/constitutive_laws/_parabolarectangle.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/constitutive_laws/_popovics.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/constitutive_laws/_sargin.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/constitutive_laws/_userdefined.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/materials/reinforcement/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/_rc_utils.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/section_integrators/__init__.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/section_integrators/_factory.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/section_integrators/_fiber_integrator.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/section_integrators/_marin_integration.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/section_integrators/_marin_integrator.py +0 -0
- {structuralcodes-0.3.0 → structuralcodes-0.4.0}/structuralcodes/sections/section_integrators/_section_integrator.py +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2023 fib - Fédération Internationale du Béton
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: structuralcodes
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: A Python package that contains models from structural design codes.
|
|
5
5
|
Author-email: fib - International Federation for Structural Concrete <info@fib-international.org>
|
|
6
6
|
Requires-Python: >=3.8
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
|
+
License-File: LICENSE
|
|
10
11
|
Requires-Dist: numpy>=1.20.0
|
|
11
12
|
Requires-Dist: scipy>=1.6.0
|
|
12
13
|
Requires-Dist: shapely>=2.0.2
|
|
@@ -81,6 +81,18 @@ from ._concrete_shear import (
|
|
|
81
81
|
v_rds,
|
|
82
82
|
)
|
|
83
83
|
from ._concrete_torsion import t_rd, t_rd_max, v_ed_ti
|
|
84
|
+
from ._interface_concrete_steel_rebar import (
|
|
85
|
+
K_tr,
|
|
86
|
+
eta_2,
|
|
87
|
+
f_stm,
|
|
88
|
+
s_1,
|
|
89
|
+
s_2,
|
|
90
|
+
s_3,
|
|
91
|
+
s_tau_bu_split,
|
|
92
|
+
tau_bmax,
|
|
93
|
+
tau_bu_split,
|
|
94
|
+
tau_yield,
|
|
95
|
+
)
|
|
84
96
|
from ._reinforcement_material_properties import (
|
|
85
97
|
epsud,
|
|
86
98
|
fyd,
|
|
@@ -162,6 +174,16 @@ __all__ = [
|
|
|
162
174
|
'tau_edi',
|
|
163
175
|
'tau_rdi_with_reinforcement',
|
|
164
176
|
'tau_rdi_without_reinforcement',
|
|
177
|
+
'eta_2',
|
|
178
|
+
'tau_bu_split',
|
|
179
|
+
'K_tr',
|
|
180
|
+
'tau_bmax',
|
|
181
|
+
's_1',
|
|
182
|
+
's_2',
|
|
183
|
+
's_3',
|
|
184
|
+
's_tau_bu_split',
|
|
185
|
+
'f_stm',
|
|
186
|
+
'tau_yield',
|
|
165
187
|
]
|
|
166
188
|
|
|
167
189
|
__title__: str = 'fib Model Code 2010'
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
"""Provides functions to determine parameters of the bond stress-slip
|
|
2
|
+
relations as shown in Figure 6.1-1 of the fib
|
|
3
|
+
ModelCode 2010.
|
|
4
|
+
|
|
5
|
+
- Eq. 6.1-5.
|
|
6
|
+
- Eq. 6.1-6.
|
|
7
|
+
- Table 6.1-1 s_1, s_2 and s_3
|
|
8
|
+
- Solve s for Eq. 6.1-1 with substitution of tau_bu_split for tau_b.
|
|
9
|
+
- Eq. 6.1-19.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
import typing as t
|
|
13
|
+
import warnings
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _validate_bond_value(bond: t.Optional[str] = None) -> str:
|
|
17
|
+
"""Validate the value provided for 'bond'."""
|
|
18
|
+
valid_bond_values = ('good', 'other')
|
|
19
|
+
if (
|
|
20
|
+
bond is not None
|
|
21
|
+
and isinstance(bond, str)
|
|
22
|
+
and bond.lower() in valid_bond_values
|
|
23
|
+
):
|
|
24
|
+
return bond.lower()
|
|
25
|
+
raise ValueError("Invalid bond condition. Must be 'good' or 'other'.")
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _validate_confinement_value(confinement: t.Optional[str] = None) -> str:
|
|
29
|
+
"""Validate the value provided for 'confinement'."""
|
|
30
|
+
valid_confinement_values = ('unconfined', 'stirrups')
|
|
31
|
+
if (
|
|
32
|
+
confinement is not None
|
|
33
|
+
and isinstance(confinement, str)
|
|
34
|
+
and confinement.lower() in valid_confinement_values
|
|
35
|
+
):
|
|
36
|
+
return confinement.lower()
|
|
37
|
+
raise ValueError(
|
|
38
|
+
"Invalid confinement value. Must be 'unconfined' or 'stirrups'."
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _validate_failmod_value(failmod: t.Optional[str] = None) -> str:
|
|
43
|
+
"""Validate the value provided for 'failmod'."""
|
|
44
|
+
valid_failmod_values = ['po', 'sp']
|
|
45
|
+
if (
|
|
46
|
+
failmod is not None
|
|
47
|
+
and isinstance(failmod, str)
|
|
48
|
+
and failmod.lower() in valid_failmod_values
|
|
49
|
+
):
|
|
50
|
+
return failmod.lower()
|
|
51
|
+
raise ValueError("Invalid failmod value. Must be 'PO' or 'SP'.")
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def eta_2(bond: t.Literal['good', 'other']) -> float:
|
|
55
|
+
"""Bond coefficient eta_2.
|
|
56
|
+
|
|
57
|
+
fib Model Code 2010, Eq. (6.1-5).
|
|
58
|
+
|
|
59
|
+
Args:
|
|
60
|
+
bond (str): Bond condition according to Subsection 6.1.3.2. Input must
|
|
61
|
+
be 'good' or 'other'.
|
|
62
|
+
|
|
63
|
+
Returns:
|
|
64
|
+
float: eta_2 value.
|
|
65
|
+
|
|
66
|
+
Raises:
|
|
67
|
+
ValueError: If a proper value for 'bond' is not input.
|
|
68
|
+
"""
|
|
69
|
+
eta_2 = {'good': 1.0, 'other': 0.7}
|
|
70
|
+
|
|
71
|
+
return eta_2[_validate_bond_value(bond=bond)]
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def tau_bu_split(
|
|
75
|
+
eta_2: float,
|
|
76
|
+
f_cm: float,
|
|
77
|
+
phi: float,
|
|
78
|
+
c_min: float,
|
|
79
|
+
c_max: float,
|
|
80
|
+
k_m: float,
|
|
81
|
+
K_tr: float,
|
|
82
|
+
) -> float:
|
|
83
|
+
"""Maximum bond stress in case of splitting failure.
|
|
84
|
+
|
|
85
|
+
fib Model Code 2010, Eq. (6.1-5).
|
|
86
|
+
|
|
87
|
+
Args:
|
|
88
|
+
eta_2 (float): Parameter based on bond condition. 1.0 for 'good' bond
|
|
89
|
+
condition and 0.7 for 'other' conditions.
|
|
90
|
+
f_cm (float): Mean cylinder concrete compressive strength in MPa.
|
|
91
|
+
phi (float): Nominal bar diameter in mm.
|
|
92
|
+
c_min (float): Parameter according to MC2010 Figure 6.1-2.
|
|
93
|
+
c_max (float): Parameter according to MC2010 Figure 6.1-2.
|
|
94
|
+
k_m (float): Parameter according to MC2010 Figure 6.1-3.
|
|
95
|
+
K_tr (float): To be calculated with MC2010 Eq.(6.1-6).
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
float: tau_bu_split in MPa.
|
|
99
|
+
"""
|
|
100
|
+
return (
|
|
101
|
+
eta_2
|
|
102
|
+
* 6.5
|
|
103
|
+
* (f_cm / 25) ** 0.25
|
|
104
|
+
* (25 / phi) ** 0.2
|
|
105
|
+
* ((c_min / phi) ** 0.33 * (c_max / c_min) ** 0.1 + k_m * K_tr)
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def K_tr(
|
|
110
|
+
n_t: float,
|
|
111
|
+
A_st: float,
|
|
112
|
+
n_b: float,
|
|
113
|
+
phi: float,
|
|
114
|
+
s_t: float,
|
|
115
|
+
) -> float:
|
|
116
|
+
"""Coefficient accounting for transverse stresses, K_tr.
|
|
117
|
+
|
|
118
|
+
fib Model Code 2010, Eq. (6.1-6).
|
|
119
|
+
|
|
120
|
+
Args:
|
|
121
|
+
n_t (float): Number of legs of confining reinforcement crossing a
|
|
122
|
+
potential splitting failure surface at a section.
|
|
123
|
+
A_st (float): Cross-sectional area of one leg of a confining bar in
|
|
124
|
+
mm^2.
|
|
125
|
+
n_b (float): Number of anchored bars or pairs of lapped bars in
|
|
126
|
+
potential splitting surface.
|
|
127
|
+
phi (float): Nominal bar diameter in mm.
|
|
128
|
+
s_t (float): Longitudnal spacing of confining reinforcement in mm.
|
|
129
|
+
|
|
130
|
+
Returns:
|
|
131
|
+
float: K_tr as value.
|
|
132
|
+
"""
|
|
133
|
+
return min((n_t * A_st / (n_b * phi * s_t)), 0.05)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def tau_bmax(bond: t.Literal['good', 'other'], f_cm: float) -> float:
|
|
137
|
+
"""Maximum bond stress tau_bmax.
|
|
138
|
+
|
|
139
|
+
fib Model Code 2010, Table 6.1-1.
|
|
140
|
+
|
|
141
|
+
Args:
|
|
142
|
+
bond (str): Bond condition according to Subsection 6.1.3.2. Must be
|
|
143
|
+
'good' or 'other'.
|
|
144
|
+
f_cm (float): Mean cylinder concrete compressive strength in MPa.
|
|
145
|
+
|
|
146
|
+
Returns:
|
|
147
|
+
float: tau_bmax in MPa.
|
|
148
|
+
|
|
149
|
+
Raises:
|
|
150
|
+
ValueError: If a proper value for 'bond' is not input.
|
|
151
|
+
"""
|
|
152
|
+
tau_bmax = {'good': 2.5 * f_cm**0.5, 'other': 1.25 * f_cm**0.5}
|
|
153
|
+
|
|
154
|
+
return tau_bmax[_validate_bond_value(bond)]
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def s_1(bond: t.Literal['good', 'other']) -> float:
|
|
158
|
+
"""Slip at maximum bond stress, s_1.
|
|
159
|
+
|
|
160
|
+
fib Model Code 2010, Table 6.1-1.
|
|
161
|
+
|
|
162
|
+
Args:
|
|
163
|
+
bond (str): Bond condition according to Subsection 6.1.3.2. Must be
|
|
164
|
+
'good' or 'other'.
|
|
165
|
+
|
|
166
|
+
Returns:
|
|
167
|
+
float: s_1 in mm.
|
|
168
|
+
|
|
169
|
+
Raises:
|
|
170
|
+
ValueError: If a proper value for 'bond' is not input.
|
|
171
|
+
"""
|
|
172
|
+
s_1_values = {'good': 1.0, 'other': 1.8}
|
|
173
|
+
|
|
174
|
+
return s_1_values[_validate_bond_value(bond)]
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def s_2(bond: t.Literal['good', 'other']) -> float:
|
|
178
|
+
"""s_2 according to Table 6.1-1.
|
|
179
|
+
|
|
180
|
+
Args:
|
|
181
|
+
bond (str): Bond condition according to Subsection 6.1.3.2. Must be
|
|
182
|
+
'good' or 'other'.
|
|
183
|
+
|
|
184
|
+
Returns:
|
|
185
|
+
float: s_2 in mm.
|
|
186
|
+
|
|
187
|
+
Raises:
|
|
188
|
+
ValueError: If a proper value for 'bond' is not input.
|
|
189
|
+
"""
|
|
190
|
+
s_2_values = {'good': 2.0, 'other': 3.6}
|
|
191
|
+
|
|
192
|
+
return s_2_values[_validate_bond_value(bond)]
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def s_3(
|
|
196
|
+
failmod: t.Literal['PO', 'SP'],
|
|
197
|
+
bond: t.Literal['good', 'other'],
|
|
198
|
+
confinement: t.Literal['unconfined', 'stirrups'],
|
|
199
|
+
c_clear: float,
|
|
200
|
+
s_1: float,
|
|
201
|
+
) -> float:
|
|
202
|
+
"""s_3 according to Table 6.1-1.
|
|
203
|
+
|
|
204
|
+
Args:
|
|
205
|
+
failmod (str): Failure mode. Must be "PO" for Pull-out of "SP" for
|
|
206
|
+
Splitting.
|
|
207
|
+
bond (str): Bond condition according to Subsection 6.1.3.2. Must be
|
|
208
|
+
'Good' or 'Other'.
|
|
209
|
+
confinement (str): Confinement conditions. Must be "Unconfined" or
|
|
210
|
+
"Stirrups"
|
|
211
|
+
c_clear (float): Clear distance between ribs in mm.
|
|
212
|
+
s_1 (float): s_1 according to Table 6.1-1 columns 1 and 2 for Pull-out
|
|
213
|
+
failure.
|
|
214
|
+
|
|
215
|
+
Returns:
|
|
216
|
+
float: s_3 in mm.
|
|
217
|
+
|
|
218
|
+
Raises:
|
|
219
|
+
ValueError: If a proper value for 'failmod' is not input.
|
|
220
|
+
ValueError: If a proper value for 'bond' is not input.
|
|
221
|
+
ValueError: If a proper value for 'confinement' is not input.
|
|
222
|
+
"""
|
|
223
|
+
s_3_values = {
|
|
224
|
+
'po': {
|
|
225
|
+
'good': c_clear,
|
|
226
|
+
'other': c_clear,
|
|
227
|
+
},
|
|
228
|
+
'sp': {
|
|
229
|
+
'good': {'unconfined': 1.2 * s_1, 'stirrups': 0.5 * c_clear},
|
|
230
|
+
'other': {'unconfined': 1.2 * s_1, 'stirrups': 0.5 * c_clear},
|
|
231
|
+
},
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if _validate_failmod_value(failmod) == 'po':
|
|
235
|
+
return s_3_values[_validate_failmod_value(failmod)][
|
|
236
|
+
_validate_bond_value(bond)
|
|
237
|
+
]
|
|
238
|
+
if _validate_failmod_value(failmod) == 'sp':
|
|
239
|
+
return s_3_values[_validate_failmod_value(failmod)][
|
|
240
|
+
_validate_bond_value(bond)
|
|
241
|
+
][_validate_confinement_value(confinement)]
|
|
242
|
+
return 0.0
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def s_tau_bu_split(
|
|
246
|
+
tau_bmax: float,
|
|
247
|
+
tau_bu_split: float,
|
|
248
|
+
alpha: float,
|
|
249
|
+
s_1: float,
|
|
250
|
+
) -> float:
|
|
251
|
+
"""Calculates the slip at tau_bu_split by rewriting Eq. 6.1-1 to solve for
|
|
252
|
+
s and substituting tau_bu_split for tau_b.
|
|
253
|
+
|
|
254
|
+
Args:
|
|
255
|
+
tau_bmax (float): Maximum bond stress according to Table 6.1-1.
|
|
256
|
+
tau_bu_split (float): Concrete bond stress at splitting failure.
|
|
257
|
+
alpha (float): Parameter in Eq. 6.1-1. Alpha is 0.4 in Table 6.1-1.
|
|
258
|
+
s_1 (float): s_1 according to Table 6.1-1.
|
|
259
|
+
|
|
260
|
+
Returns:
|
|
261
|
+
float: Slip at tau_bu_split in mm.
|
|
262
|
+
"""
|
|
263
|
+
return (tau_bu_split / tau_bmax) ** (1 / alpha) * s_1
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
def f_stm(
|
|
267
|
+
f_cm: float,
|
|
268
|
+
phi: float,
|
|
269
|
+
l_b: float,
|
|
270
|
+
c_min: float,
|
|
271
|
+
c_max: float,
|
|
272
|
+
k_m: float,
|
|
273
|
+
K_tr: float,
|
|
274
|
+
) -> float:
|
|
275
|
+
"""Reinforcement stress, f_stm.
|
|
276
|
+
|
|
277
|
+
fib Model Code 2010, Eq. (6.1-19).
|
|
278
|
+
|
|
279
|
+
Args:
|
|
280
|
+
f_cm (float): Mean cylinder concrete compressive strength in MPa.
|
|
281
|
+
phi (float): Nominal bar diameter in mm.
|
|
282
|
+
l_b (float): Bond length in mm.
|
|
283
|
+
c_min (float): Parameter shown in Figure 6.1-2.
|
|
284
|
+
c_max (float): Parameter shown in Figure 6.1-2.
|
|
285
|
+
k_m (float): Parameter shown in Figure 6.1-3.
|
|
286
|
+
K_tr (float): Parameter calculated with Eq.(6.1-6).
|
|
287
|
+
|
|
288
|
+
Returns:
|
|
289
|
+
float: f_stm in MPa.
|
|
290
|
+
|
|
291
|
+
Raises:
|
|
292
|
+
UserWarning: If not 15 MPa < f_cm < 110 MPa.
|
|
293
|
+
UserWarning: If not 0.5 < c_min / phi < 3.5.
|
|
294
|
+
UserWarning: If not 1.0 < c_max / c_min < 5.0.
|
|
295
|
+
UserWarning: If not K_tr <= 0.05.
|
|
296
|
+
"""
|
|
297
|
+
if not 15 < f_cm < 110:
|
|
298
|
+
warnings.warn(
|
|
299
|
+
'Warning: Eq.(6.1-19) is valid for 15 MPa < f_cm < 110 MPa.',
|
|
300
|
+
UserWarning,
|
|
301
|
+
)
|
|
302
|
+
if not 0.5 < c_min / phi < 3.5:
|
|
303
|
+
warnings.warn(
|
|
304
|
+
'Warning: Eq.(6.1-19) is valid for 0.5 < c_min / phi < 3.5.',
|
|
305
|
+
UserWarning,
|
|
306
|
+
)
|
|
307
|
+
if not 1.0 < c_max / c_min < 5.0:
|
|
308
|
+
warnings.warn(
|
|
309
|
+
'Warning: Eq.(6.1-19) is valid for 1.0 < c_max / c_min < 5.0',
|
|
310
|
+
UserWarning,
|
|
311
|
+
)
|
|
312
|
+
if not K_tr <= 0.05:
|
|
313
|
+
warnings.warn(
|
|
314
|
+
'Warning: Eq.(6.1-19) is valid for K_tr <= 0.05.',
|
|
315
|
+
UserWarning,
|
|
316
|
+
)
|
|
317
|
+
|
|
318
|
+
return (
|
|
319
|
+
54
|
|
320
|
+
* (f_cm / 25) ** 0.25
|
|
321
|
+
* (25 / phi) ** 0.2
|
|
322
|
+
* (l_b / phi) ** 0.55
|
|
323
|
+
* ((c_min / phi) ** 0.25 * (c_max / c_min) ** 0.1 + k_m * K_tr)
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
def tau_yield(
|
|
328
|
+
f_y: float,
|
|
329
|
+
l_b: float,
|
|
330
|
+
phi: float,
|
|
331
|
+
) -> float:
|
|
332
|
+
"""Calculates the bond stress at yield of the reinforcement bar based
|
|
333
|
+
on a uniform bond stress over l_b.
|
|
334
|
+
|
|
335
|
+
The bond stress at yield is a limit for:
|
|
336
|
+
- tau_bmax, given with eps_s < eps_s,y in Table 6.1-1.
|
|
337
|
+
- tau_bu_split, explicitly stated for Eq. 6.1-19.
|
|
338
|
+
|
|
339
|
+
Args:
|
|
340
|
+
f_y (float): Reinforcement bar yield stress in MPa.
|
|
341
|
+
l_b (float): Bond length with uniform bond stress assumed in mm.
|
|
342
|
+
phi (float): Nominal bar diameter in mm.
|
|
343
|
+
|
|
344
|
+
Returns:
|
|
345
|
+
float: Bond stress at yield of rebar in MPa.
|
|
346
|
+
|
|
347
|
+
"""
|
|
348
|
+
return f_y / (4 * l_b / phi)
|
|
@@ -4,7 +4,6 @@ from __future__ import annotations # To have clean hints of ArrayLike in docs
|
|
|
4
4
|
|
|
5
5
|
import abc
|
|
6
6
|
import typing as t
|
|
7
|
-
import warnings
|
|
8
7
|
|
|
9
8
|
import numpy as np
|
|
10
9
|
from numpy.typing import ArrayLike
|
|
@@ -29,26 +28,6 @@ class Material(abc.ABC):
|
|
|
29
28
|
self._density = abs(density)
|
|
30
29
|
self._name = name if name is not None else 'Material'
|
|
31
30
|
|
|
32
|
-
def update_attributes(self, updated_attributes: t.Dict) -> None:
|
|
33
|
-
"""Function for updating the attributes specified in the input
|
|
34
|
-
dictionary.
|
|
35
|
-
|
|
36
|
-
Args:
|
|
37
|
-
updated_attributes (dict): the dictionary of parameters to be
|
|
38
|
-
updated (not found parameters are skipped with a warning)
|
|
39
|
-
"""
|
|
40
|
-
for key, value in updated_attributes.items():
|
|
41
|
-
if not hasattr(self, '_' + key):
|
|
42
|
-
str_list_keys = ', '.join(updated_attributes.keys())
|
|
43
|
-
str_warn = (
|
|
44
|
-
f"WARNING: attribute '{key}' not found."
|
|
45
|
-
" Ignoring the entry.\n"
|
|
46
|
-
f"Used keys in the call: {str_list_keys}"
|
|
47
|
-
)
|
|
48
|
-
warnings.warn(str_warn)
|
|
49
|
-
continue
|
|
50
|
-
setattr(self, '_' + key, value)
|
|
51
|
-
|
|
52
31
|
@property
|
|
53
32
|
def constitutive_law(self):
|
|
54
33
|
"""Returns the ConstitutiveLaw of the object."""
|