stress_life¶
Overview
Compute fatigue damage, equivalent loads, and nonlinear damage from stress cycles and an S–N curve.
py_fatigue.damage.stress_life ¶
The module py_fatigue.damage.stress_life contains all the
damage models related to the stress-life approach.
Classes¶
Gassner ¶
Bases: PlotMixin
Accessor for the Gassner shift factor for variable amplitude.
Source code in py_fatigue/damage/stress_life.py
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 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 | |
Methods:¶
g ¶
g(sn_curve)
Calculate the shift factor of the samples.
The shift factor is a spectrum-dependent factor that allows to shift a Wohler curve and avoids having to calculate the damage using the Palmgren–Miner ruleevery time.
Once the shift factor has been calculated, it can be applied to the Wohler SN curve. Then, accssing the curve through the maximum amplitude value of the spectrum will return the expected life for said spectrum.
The shift factor for each cycle in the spectrum is:
The shift factor then is:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sn_curve
|
SNCurve
|
The SNCurve object. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
The DataFrame with the shift factor per sample. |
Source code in py_fatigue/damage/stress_life.py
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | |
plot ¶
plot(fig=None, ax=None)
Plot Gassner shift factor contributions by stress range.
Source code in py_fatigue/damage/stress_life.py
307 308 309 310 311 312 313 314 315 316 317 318 | |
PalmgrenMiner ¶
Bases: PlotMixin
Accessor for the Palmgren-Miner damage model.
Source code in py_fatigue/damage/stress_life.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 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 | |
Methods:¶
damage ¶
damage(sn_curve)
Calculate the damage of the samples.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sn_curve
|
SNCurve
|
The SNCurve object. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
The DataFrame with the damage. |
Source code in py_fatigue/damage/stress_life.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
dem ¶
dem(
outer_radius,
inner_radius,
slope,
equivalent_cycles=10000000.0,
)
Calculate the damage equivalent stress range (DES).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slope
|
float
|
The SN curve slope. |
required |
equivalent_cycles
|
float
|
The equivalent number of cycles, by default 1e7 |
10000000.0
|
Returns:
| Type | Description |
|---|---|
float
|
The DES. |
See Also
calc_des
Source code in py_fatigue/damage/stress_life.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | |
des ¶
des(slope, equivalent_cycles=10000000.0)
Calculate the damage equivalent stress range (DES).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slope
|
float
|
The SN curve slope. |
required |
equivalent_cycles
|
float
|
The equivalent number of cycles, by default 1e7 |
10000000.0
|
Returns:
| Type | Description |
|---|---|
float
|
The DES. |
See Also
calc_des
Source code in py_fatigue/damage/stress_life.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
plot ¶
plot(fig=None, ax=None)
Plot calculated Miner damage contributions by stress range.
Source code in py_fatigue/damage/stress_life.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | |
plot_histogram ¶
plot_histogram(fig=None, ax=None, dens_func=None, **kwargs)
Plot the damage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fig
|
Figure
|
The figure to plot on, by default None |
None
|
ax
|
PathCollection
|
The axes to plot on, by default None |
None
|
kwargs
|
Additional keyword arguments for the plot. |
{}
|
Returns:
| Type | Description |
|---|---|
(Figure, PathCollection)
|
The figure and axes. |
Source code in py_fatigue/damage/stress_life.py
182 183 184 185 186 187 188 189 190 191 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 | |
Functions:¶
calc_dem ¶
calc_dem(
outer_radius,
inner_radius,
stress_range,
count_cycle,
slope,
equivalent_cycles=10000000.0,
)
Calculate the damage equivalent moment (DEM) in Nm.
with \(I_c\) the area moment of inertia and \(r_i\) the
inner radius, or \(S\) the Section modulus. The Damage
Equivalent Stress Range (DES) is calculated using
calc_des
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
outer_radius
|
float
|
The outer radius to calculate the DEM. Must be provided in m |
required |
inner_radius
|
float
|
The inner radius to calculate the DEM. Must be provided in m |
required |
stress_range
|
Union[float, Series, ndarray]
|
The stress range |
required |
count_cycle
|
Union[float, Series, ndarray]
|
The number of cycles |
required |
slope
|
float
|
The SN curve slope |
required |
equivalent_cycles
|
float
|
The equivalent number of cycles, by default 1e7 |
10000000.0
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If the inner radius is larger than the outer radius. |
Returns:
| Type | Description |
|---|---|
float
|
The DEM in Nm. |
Source code in py_fatigue/damage/stress_life.py
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 | |
calc_des ¶
calc_des(
stress_range,
count_cycle,
slope,
equivalent_cycles=10000000.0,
)
Calculate the damage equivalent stress range (DES).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stress_range
|
Union[float, Series, ndarray]
|
The stress range |
required |
count_cycle
|
Union[float, Series, ndarray]
|
The number of cycles |
required |
slope
|
float
|
The SN curve slope |
required |
equivalent_cycles
|
float
|
The equivalent number of cycles, by default 1e7 |
10000000.0
|
Returns:
| Type | Description |
|---|---|
float
|
The DES. |
Source code in py_fatigue/damage/stress_life.py
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | |
calc_manson_halford_exponents ¶
calc_manson_halford_exponents(
cycles_to_failure, exponent=0.4
)
Calculate the Mannson-Halford exponents \(e_{j, j+1}\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cycles_to_failure
|
ndarray
|
The number of cycles to failure. |
required |
exponent
|
float
|
The exponent, by default 0.4 |
0.4
|
Returns:
| Type | Description |
|---|---|
ndarray
|
The Mannson-Halford exponents. |
Source code in py_fatigue/damage/stress_life.py
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 | |
calc_nonlinear_damage ¶
calc_nonlinear_damage(
damage_rule,
stress_range,
count_cycle,
sn_curve,
**kwargs
)
Calculate the fatigue damage using a nonlinear damage rule among the allowed ones:
- 'Pavlou': Pavlou damage rule
- 'Manson-Halford': Mannson-Halford damage rule
- 'Si-Jian': Si-Jian et al damage rule
- 'Leve': Leve damage rule
Warning
This function is not suited for variable amplitude loading.
For variable amplitude loading, use
calc_nonlinear_damage_with_dca, as the
fluctiations of the
nonlinear damage exponent are controlled by the Damage Curve.
The generic form of a nonlinear damage rule is:
where \(n_j\) is the number of cycles in the fatigue histogram at the \(j\)-th cycle, \(N_j\) is the number of cycles to failure at the \(j\)-th cycle, \(e_{j, j+1}\) is the exponent for the \(j\)-th and \(j+1\)-th cycles, \(M\) is the number of load blocks in the fatigue spectrum.
The formula is conveniently rewritten as pseudocode:
# retrieve N_j using the fatigue histogram and SN curve
# retrieve the exponents e_{j, j+1}
# calculate the damage
D = 0
for j in range(1, M+1):
D = (D + n_j / N_j) ^ e_{j, j+1}
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
damage_rule
|
str
|
The damage rule to use. Must be one of the following: 'Pavlou', 'Manson-Halford', 'Si-Jian', 'Leve'. |
required |
stress_range
|
ndarray
|
The stress range. |
required |
count_cycle
|
ndarray
|
The number of cycles. |
required |
sn_curve
|
SNCurve
|
The SN curve. |
required |
kwargs
|
dict
|
The keyword arguments for the damage rule. The following keyword arguments are allowed:
|
{}
|
Returns:
| Type | Description |
|---|---|
ndarray
|
The cumulated damage. |
Source code in py_fatigue/damage/stress_life.py
779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 | |
calc_nonlinear_damage_with_dca ¶
calc_nonlinear_damage_with_dca(
damage_rule,
stress_range,
count_cycle,
sn_curve,
damage_bands=array(
[
0,
0.025,
0.05,
0.1,
0.2,
0.3,
0.4,
0.5,
0.6,
0.7,
0.8,
1,
]
),
limit_damage=1,
logger=None,
plot=False,
**kwargs
)
Calculate the fatigue damage using a nonlinear damage rule based on the Damage Curve Approach (DCA) among the allowed ones:
- 'Pavlou': Pavlou damage rule
- 'Theil': Theil damage rule
The DCA discreties the damage curve in multiple Damage bands \(\Delta D_j\) and calculates the damage for each band, depending on the damage value at the previous cycle. The damage is calculated as:
where \(n_b\) is the number of damage bands. In each damage band, the damage follows a weighted Palmgren-Miner sum, i.e.:
where \(n_j\) is the number of cycles in the fatigue histogram at the \(j\)-th cycle, \(N_j\) is the number of cycles to failure at the \(j\)-th cycle, \(w_{i, j}\) is the weight for the \(i\)-th cycle in the \(j\)-th damage band.
Using the generic nonlinear damage accumulation formula:
and substituting it inside the weighted Palmgren-Miner sum, the equation of the weights can be extracted as:
In the case of Pavlou's model, the exponents are:
While for Theil's method, the weights can be directly approximated as:
Warning
If you want to use Theil's method in a production
environment, it is recommended to use the
calc_theil_cycles_to_failure function,
as it adheres
to the original SN Cuve-based method.
The formula is conveniently rewritten as pseudocode:
# retrieve n_i, N_i using the fatigue histogram and SN curve
# retrieve the exponents e_{j, j+1}
# define the damage bands DB
# calculate the damage
D = 0
for j in range(1, M+1):
DB_j = np.digitize(D, DB, right=False)
for i in range(1, n_j+1):
if damage_rule == 'Pavlou':
w_ij = (DB[DB_j] - DB[DB_j - 1]) / ((DB[DB_j] ** (1 / e_i)) -
(DB[DB_j - 1] ** (1 / e_i)))
elif damage_rule == 'Theil':
w_ij = stress_range_i / N_i + 1
D += w_ij * n_i / N_i
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
damage_rule
|
str
|
The damage rule to use. Must be one of the following: 'Pavlou', 'Theil'. |
required |
stress_range
|
ndarray
|
The stress range. |
required |
count_cycle
|
ndarray
|
The number of cycles. |
required |
sn_curve
|
SNCurve
|
The SN curve. |
required |
damage_bands
|
ndarray
|
Damage bands for the Pavlou damage calculation, by default [0, 0.025, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 1] |
array([0, 0.025, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 1])
|
limit_damage
|
float
|
Limit damage value, by default 1 |
1
|
logger
|
Logger | None
|
If a logger is defined, attach output to it |
None
|
plot
|
bool
|
Whether to plot or not the cumulated damage |
False
|
kwargs
|
dict
|
The keyword arguments for the damage rule. The following keyword arguments are allowed:
|
{}
|
Returns:
| Type | Description |
|---|---|
tuple[ndarray, ndarray, Figure | None, Axes | None]
|
The cycle-to-cycle damage and the cumulated damage. |
Source code in py_fatigue/damage/stress_life.py
880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 | |
calc_pavlou_exponents ¶
calc_pavlou_exponents(
stress_range,
ultimate_stress=900,
exponent=-0.75,
use_dca=False,
)
Calculate the Pavlou exponents \(q(\sigma_j)=e_{j, j+1}\).
where \(\Delta \sigma_j\) is the stress amplitude, \(\sigma_U\) is the ultimate stress, \(\Delta \sigma\) is the stress range and \(exponent\) is the exponent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stress_range
|
ndarray
|
The stress range. |
required |
ultimate_stress
|
float
|
The ultimate stress, by default 900 |
900
|
exponent
|
float
|
The exponent, by default -0.75 |
-0.75
|
Returns:
| Type | Description |
|---|---|
ndarray
|
The Pavlou exponents. |
Source code in py_fatigue/damage/stress_life.py
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 | |
calc_pm ¶
calc_pm(stress_range, count_cycle, sn_curve)
Calculates the damage using the Palmgren-Miner rule, i.e. the linear damage accumulation rule:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
count_cycle
|
Union[Series, ndarray]
|
The number of cycles |
required |
sn_curve
|
SNCurve
|
The SNCurve object. |
required |
Returns:
| Type | Description |
|---|---|
Union[float, ndarray]
|
The damage according to the Palmgren-Miner rule. |
Source code in py_fatigue/damage/stress_life.py
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | |
calc_si_jian_exponents ¶
calc_si_jian_exponents(stress_range)
Calculate the Si-Jian et al. exponents as
where \(\sigma_{j+1}\) is the stress amplitude for the \(j\)-th cycle.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stress_range
|
ndarray
|
The stress range. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
The Si-Jian et al. exponents. |
Source code in py_fatigue/damage/stress_life.py
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 | |
calc_theil_cycles_to_failure ¶
calc_theil_cycles_to_failure(
stress_range, count_cycle, sn_curve, to_failure=False
)
Backwards-compatible alias for the current Theil SN helper.
Source code in py_fatigue/damage/stress_life.py
1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 | |
calc_theil_sn_damage ¶
calc_theil_sn_damage(
stress_range, count_cycle, sn_curve, to_failure=False
)
Calculate the cycles to failure using the Theil's method for variable amplitude loading. Perform a fatigue life prediction under a sequence of stress range blocks, taking into account the interaction between different stress levels. It uses Theil's method to determine the effective stress range and accumulated damage, and an S-N curve to predict the number of cycles to failure.
Mathematically, the method can be described as follows. Provided a sequence of stress range blocks \(\Delta\sigma_i\) and the corresponding number of cycles \(n_i\), after initializing all the cumulative variables to zero, the effective stress range is calculated as:
where:
- \(\Delta\sigma_{eff}\) is the effective stress range,
- \(\Delta\sigma_{cumsum}\) is the cumulative stress range,
- \(w\) is the damage weight for the current cycle,
- \(n_{cumsum}\) is the cumulative number of cycles,
- \(n\) is the number of cycles for the current block.
The method is applied to each block in the sequence, and the cumulative number of cycles is updated at the end of each block. The process continues until the number of cycles to failure is determined. If failure does not occur until the end of the sequence, the number of cycles to failure is estimated by "extrapolating" the last block, i.e., by calculating the intersection of the S-N curve with the effective stress range of the last block through the bisection method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stress_range
|
ndarray
|
A numpy array containing the stress range for each block (MPa). |
required |
count_cycle
|
ndarray
|
A numpy array containing the number of cycles for each block. |
required |
sn_curve
|
SNCurve
|
An object representing the S-N curve of the material.
It must have attributes |
required |
Returns:
| Type | Description |
|---|---|
tuple
|
A tuple containing:
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If the fatigue life solver fails to find a solution within a block, indicating that failure has occurred within that block. |
Notes
- The function assumes that the stress range and count cycle arrays have the same length.
- The Theil's method is used to calculate the effective stress range, which takes into account the sequence of stress levels.
- The S-N curve is used to relate the stress range to the number of cycles to failure.
Source code in py_fatigue/damage/stress_life.py
1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 | |
calc_theil_weights ¶
calc_theil_weights(stress_range, sn_curve)
Calculate the Theil weights for the Damage Curve Approach (DCA).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stress_range
|
ndarray
|
The stress range. |
required |
sn_curve
|
SNCurve
|
The py-fatigue SN Curve |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Theil's model weights |
Source code in py_fatigue/damage/stress_life.py
636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 | |
find_sn_curve_intersection ¶
find_sn_curve_intersection(
slope,
intercept,
endurance,
weight,
res_stress,
n_min=1.0,
n_max=10000000000.0,
tol=1e-06,
)
Solve the following nonlinear equation:
where:
- a is the intercept of the S-N curve,
- m is the slope of the S-N curve,
- w is the weight for the stress range,
- b is the residual stress range,
- N is the number of cycles to failure,
for N in the range [\(n_{min}\), \(n_{max}\)]. The equation is linked to the S-N curve definition, therefore it can be as complex as the S-N curve itself, i.e. log-linear, log-bilinear, etc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
intercept
|
float
|
The intercept of the S-N curve. |
required |
slope
|
float
|
The slope of the S-N curve. |
required |
endurance
|
float
|
The endurance limit. |
required |
weight
|
float
|
The weight for the stress range. |
required |
res_stress
|
float
|
The residual stress range. |
required |
n_min
|
float
|
The minimum number of cycles to failure, by default 1e0. |
1.0
|
n_max
|
float
|
The maximum number of cycles to failure, by default 1e10. |
10000000000.0
|
tol
|
float
|
The tolerance for the bisection method, by default 1e-6. |
1e-06
|
Returns:
| Type | Description |
|---|---|
float
|
The number of cycles to failure. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the bisection method fails to find a solution. |
Source code in py_fatigue/damage/stress_life.py
1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 | |
find_sn_curve_intersection_2 ¶
find_sn_curve_intersection_2(*args, **kwargs)
Backwards-compatible alias for the current SN intersection solver.
Source code in py_fatigue/damage/stress_life.py
1291 1292 1293 1294 | |
get_dem ¶
get_dem(
outer_radius,
inner_radius,
cycle_count,
slope,
equivalent_cycles=10000000.0,
)
Calculate the damage equivalent moment (DEM) in Nm.
with \(I_c\) the area moment of inertia and \(r_i\) the
inner radius, or \(S\) the Section modulus. The Damage
Equivalent Stress Range (DES) is calculated using
calc_des
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
outer_radius
|
float
|
The outer radius to calculate the DEM. Must be provided in m |
required |
inner_radius
|
float
|
The inner radius to calculate the DEM. Must be provided in m |
required |
stress_range
|
Union[Series, ndarray]
|
The stress range |
required |
count_cycle
|
Union[Series, ndarray]
|
The number of cycles |
required |
slope
|
float
|
The SN curve slope |
required |
equivalent_cycles
|
float
|
The equivalent number of cycles, by default 1e7 |
10000000.0
|
Returns:
| Type | Description |
|---|---|
float
|
The DEM in Nm. |
Source code in py_fatigue/damage/stress_life.py
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 | |
get_des ¶
get_des(cycle_count, slope, equivalent_cycles=10000000.0)
Calculate the damage equivalent stress range (DES).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cycle_count
|
CycleCount
|
The CycleCount object. |
required |
slope
|
float
|
The SN curve slope |
required |
equivalent_cycles
|
float
|
The equivalent number of cycles, by default 1e7 |
10000000.0
|
Returns:
| Type | Description |
|---|---|
float
|
The DES. |
Source code in py_fatigue/damage/stress_life.py
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 | |
get_nonlinear_damage ¶
get_nonlinear_damage(
damage_rule, cycle_count, sn_curve, **kwargs
)
Calculate the fatigue damage using a nonlinear damage rule.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
damage_rule
|
str
|
The damage rule to use. Must be one of the following: 'Pavlou', 'Manson-Halford', 'Si-Jian', 'Leve'. |
required |
cycle_count
|
CycleCount
|
The cycle count object. |
required |
sn_curve
|
SNCurve
|
The SN curve object. |
required |
kwargs
|
dict
|
The keyword arguments for the damage rule. The following keyword arguments are allowed:
|
{}
|
Returns:
| Type | Description |
|---|---|
float
|
The cumulated damage. |
Source code in py_fatigue/damage/stress_life.py
1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 | |
get_nonlinear_damage_with_dca ¶
get_nonlinear_damage_with_dca(
damage_rule,
cycle_count,
sn_curve,
damage_bands,
limit_damage=1,
logger=None,
plot=False,
**kwargs
)
Calculate the fatigue damage using a nonlinear damage rule based on the Damage Curve Approach (DCA) among the allowed ones:
- 'Pavlou': Pavlou damage rule
- 'Theil': Theil damage rule
Refer to calc_nonlinear_damage_with_dca for the
complete documentation with mathematical details.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
damage_rule
|
str
|
The damage rule to use. Must be one of the following: 'Pavlou', 'Theil'. |
required |
cycle_count
|
CycleCount
|
The cycle count object. |
required |
sn_curve
|
SNCurve
|
The SN curve object. |
required |
damage_bands
|
ndarray
|
The damage bands. |
required |
limit_damage
|
Union[float, int]
|
The limit damage, by default 1 |
1
|
logger
|
Logger
|
The logger object, by default None |
None
|
kwargs
|
dict
|
The keyword arguments for the damage rule. The following keyword arguments are allowed:
|
{}
|
Returns:
| Type | Description |
|---|---|
tuple[ndarray, ndarray]
|
The cycle-to-cycle damage and the cumulated damage. |
Source code in py_fatigue/damage/stress_life.py
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 | |
get_pm ¶
get_pm(cycle_count, sn_curve)
Calculates the damage using the Palmgren-Miner rule.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cycle_count
|
CycleCount
|
The CycleCount object. |
required |
sn_curve
|
SNCurve
|
The SNCurve object. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
The damage according to the Palmgren-Miner rule. |
Source code in py_fatigue/damage/stress_life.py
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | |