generic#

py_fatigue.geometry.generic.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.

class py_fatigue.geometry.generic.CrackGeometryMixin(initial_depth: float[float])#

Mixin class to define the abstract methods for the AbstractCrackGeometry class.

Parameters:

initial_depth (float) – The initial depth of the crack.

class py_fatigue.geometry.generic.AbstractCrackGeometry(initial_depth: float[float])#

Abstract class to initalise and store the crack geometry data.

class py_fatigue.geometry.generic.InfiniteSurface(initial_depth: float[float])#

Class to initalise and store the crack geometry data on a flat infinite surface, as per standard Paris’ law.

Parameters:

initial_depth (float) – The initial depth of the crack.