generic¶
Overview
Use a flat surface or a table of geometry factors for single-dimension Paris growth.
py_fatigue.geometry.generic ¶
Classes¶
AbstractCrackGeometry ¶
Bases: CrackGeometryMixin, PlotMixin
Abstract class to initalise and store the crack geometry data.
Source code in py_fatigue/geometry/generic.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
CrackGeometryMixin ¶
Mixin class to define the abstract methods for the AbstractCrackGeometry class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initial_depth
|
float
|
The initial depth of the crack. |
required |
Source code in py_fatigue/geometry/generic.py
38 39 40 41 42 43 44 45 46 47 48 49 | |
InfiniteSurface ¶
Bases: AbstractCrackGeometry
Class to initalise and store the crack geometry data on a flat infinite surface, as per standard Paris' law.
Attributes:
| Name | Type | Description |
|---|---|---|
initial_depth |
float
|
The initial depth of the crack. |
Source code in py_fatigue/geometry/generic.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | |
Methods:¶
plot ¶
plot(fig=None, ax=None)
Draw a depth-only schematic of the crack at the infinite surface.
Source code in py_fatigue/geometry/generic.py
214 215 216 217 218 219 220 221 222 223 224 | |
TabulatedGeometryFactor ¶
Bases: AbstractCrackGeometry
One growing crack dimension with measured or computed geometry factors.
Use with get_crack_growth. The solver interpolates the factor
linearly, evaluates ΔK = Δσ Y(a) √(πa), and stops at the last depth
in the table. Supply depths in the length unit used by the Paris curve.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initial_depth
|
float
|
Initial crack dimension inside the table, below its last depth. |
required |
depths
|
array - like
|
Positive, strictly increasing crack dimensions. |
required |
factors
|
array - like
|
Positive, dimensionless geometry factors at the supplied depths. |
required |
Source code in py_fatigue/geometry/generic.py
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 | |
Methods:¶
plot ¶
plot(fig=None, ax=None)
Plot the supplied geometry factors and mark the initial depth.
Source code in py_fatigue/geometry/generic.py
189 190 191 192 193 194 195 196 197 198 | |
Functions:¶
kwargs_only ¶
kwargs_only(cls)
Decorator to make a class's init method accept only keyword arguments.
This is useful for dataclasses, which by default accept positional arguments.
Source code in py_fatigue/geometry/generic.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |