strength_von_mises
checks.eurocode.steel.strength_von_mises
Module for checking von Mises equivalent stress of steel cross-sections according to Eurocode 3 (EN 1993-1-1:2005).
Classes:
-
CheckStrengthVonMises–Class to perform von Mises equivalent stress check for steel cross-sections based on Eurocode 3.
checks.eurocode.steel.strength_von_mises.CheckStrengthVonMises
dataclass
CheckStrengthVonMises(
steel_cross_section: SteelCrossSection,
n: KN = 0,
v_y: KN = 0,
v_z: KN = 0,
m_x: KNM = 0,
m_y: KNM = 0,
m_z: KNM = 0,
gamma_m0: DIMENSIONLESS = 1.0,
name: str = "Von Mises equivalent stress check for steel",
)
Class to perform von Mises equivalent stress check for steel cross-sections based on Eurocode 3.
This check calculates the maximum von Mises equivalent stress in a steel cross-section under combined internal forces and verifies it does not exceed the yield strength.
Note: This formula is not applicable for slender structures (cross-section class 4). For slender structures, the effective section properties must be used.
Coordinate System:
z (vertical, usually strong axis)
↑
| x (longitudinal beam direction, into screen)
| ↗
| /
| /
| /
|/
←---O
y (horizontal/side, usually weak axis)
Parameters:
-
steel_cross_section(SteelCrossSection) –The steel cross-section to check.
-
n(KN, default:0) –Axial force [kN], positive for tension, negative for compression. Default is 0 kN.
-
v_y(KN, default:0) –Shear force in the y-direction [kN]. Default is 0 kN.
-
v_z(KN, default:0) –Shear force in the z-direction [kN]. Default is 0 kN.
-
m_x(KNM, default:0) –Torsional moment [kNm]. Default is 0 kNm.
-
m_y(KNM, default:0) –Bending moment about the y-axis [kNm]. Default is 0 kNm.
-
m_z(KNM, default:0) –Bending moment about the z-axis [kNm]. Default is 0 kNm.
-
gamma_m0(DIMENSIONLESS, default:1.0) –Partial safety factor for resistance of cross-sections, default is 1.0.
Example
from blueprints.checks.eurocode.steel.strength_von_mises import CheckStrengthVonMises
from blueprints.materials.steel import SteelMaterial, SteelStrengthClass
from blueprints.structural_sections.steel.standard_profiles.heb import HEB
from blueprints.structural_sections.steel.steel_cross_section import SteelCrossSection
steel_material = SteelMaterial(steel_class=SteelStrengthClass.S355)
heb_300_profile = HEB.HEB300.with_corrosion(0)
heb_300_s355 = SteelCrossSection(profile=heb_300_profile, material=steel_material)
calc = CheckStrengthVonMises(
heb_300_s355,
n=100, # 100 kN axial force
v_z=50, # 50 kN shear force
m_y=200, # 200 kNm bending moment
gamma_m0=1.0,
)
calc.report().to_word("von_mises_check.docx")
calc.plot_stress()
checks.eurocode.steel.strength_von_mises.CheckStrengthVonMises.calculate_maximum_von_mises_stress
calculate_maximum_von_mises_stress() -> float
Calculate the maximum von Mises equivalent stress in the cross-section.
The von Mises stress is calculated from the full 3D stress tensor at all points in the cross-section, and the maximum value is returned.
Returns:
-
float–The maximum von Mises equivalent stress in N/mm².
Source code in blueprints/checks/eurocode/steel/strength_von_mises.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | |
checks.eurocode.steel.strength_von_mises.CheckStrengthVonMises.plot_stress
plot_stress() -> Figure | SubFigure | None
Plot the von Mises equivalent stress distribution in the cross-section.
Returns:
-
Figure–Figure with a contour plot of the von Mises equivalent stress in N/mm².
Source code in blueprints/checks/eurocode/steel/strength_von_mises.py
166 167 168 169 170 171 172 173 174 175 176 | |
checks.eurocode.steel.strength_von_mises.CheckStrengthVonMises.report
report(n: int = 2) -> Report
Returns the report for the von Mises equivalent stress check.
Parameters:
-
n(int, default:2) –Number of decimal places for numerical values in the report (default is 2).
Returns:
-
Report–Report of the von Mises equivalent stress check.
Source code in blueprints/checks/eurocode/steel/strength_von_mises.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | |
checks.eurocode.steel.strength_von_mises.CheckStrengthVonMises.result
result() -> CheckResult
Calculate result of von Mises equivalent stress check.
Returns:
-
CheckResult–True if the von Mises stress check passes, False otherwise.
Source code in blueprints/checks/eurocode/steel/strength_von_mises.py
178 179 180 181 182 183 184 185 186 187 188 189 190 | |
checks.eurocode.steel.strength_von_mises.CheckStrengthVonMises.source_docs
staticmethod
source_docs() -> list[str]
List of source document identifiers used for this check.
Returns:
-
list[str]–
Source code in blueprints/checks/eurocode/steel/strength_von_mises.py
95 96 97 98 99 100 101 102 103 | |
checks.eurocode.steel.strength_von_mises.CheckStrengthVonMises.unity_check
unity_check() -> float
Calculate the unity check for von Mises equivalent stress.
The unity check is the ratio of the maximum von Mises stress to the design yield strength (f_y / gamma_m0).
Returns:
-
float–The unity check value (should be ≤ 1.0 for adequate resistance).
Source code in blueprints/checks/eurocode/steel/strength_von_mises.py
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |