fatpy
¶
FatPy - A Python package for fatigue life evaluation of materials.
core
¶
Core fatigue analysis methods and functionality.
damage_cumulation
¶
Damage cumulation module.
This module contains the classes and functions for damage cumulation methods.
decompositions
¶
Decompositions module.
This module contains the classes and functions for decomposition methods.
energy_life
¶
Energy-based fatigue life analysis methods.
This package provides implementations of energy-based approaches for fatigue life prediction and analysis.
plane_based_methods
¶
Plane-based methods module.
This module contains the classes and functions for plane-based methods.
strain_life
¶
Strain-based fatigue life analysis methods.
This package provides implementations of strain-based approaches for fatigue life prediction and analysis.
stress_life
¶
Stress-based fatigue life analysis methods.
This package provides implementations of stress-based approaches for fatigue life prediction and analysis.
data_parsing
¶
examples
¶
This module contains an example function with a detailed docstring.
docstring_example_tmp
¶
This module contains an example function with a detailed docstring.
ExampleClass
¶
An example class to demonstrate docstring formatting.
Source code in src/fatpy/examples/docstring_example_tmp.py
__init__(value)
¶
Initialize the ExampleClass with a value.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
int
|
The initial value for the class instance. |
required |
increment(amount)
¶
Increment the stored value by a specified amount.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
amount
|
int
|
The amount to increment the value by. |
required |
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
The new value after incrementing. |
Source code in src/fatpy/examples/docstring_example_tmp.py
example_method_with_docstring(a, b)
¶
Docstring with a cross-reference to the example function.
This method demonstrates how to reference another function's docstring.
It calls example_function_with_docstring
with sample arguments.
Cross-reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
a
|
int
|
The first integer value. |
required |
b
|
int
|
The second integer value. |
required |
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
The result of the example function. |
Source code in src/fatpy/examples/docstring_example_tmp.py
example_function_with_docstring(a, b)
¶
This docstring highlights Mermaid diagrams, math expressions, and code examples.
This function takes two integers and returns their sum. It demonstrates various mkdocs-material features:
Information
This is an informational admonition block.
Important Note
Make sure both parameters are integers.
Mermaid Diagram¶
graph TD
A[Start] --> B{Is it a number?}
B -- Yes --> C[Process the number]
B -- No --> D[Throw an error]
C --> E[End]
D --> E
Mathematical Expression¶
Inline math: \(E = mc^2\)
Code Examples¶
Expandable Example
This is a collapsible content section that shows more detailed usage:
Table Example¶
Input A | Input B | Result |
---|---|---|
1 | 2 | 3 |
5 | 7 | 12 |
0 | 0 | 0 |
Args:¶
a
(int): The first integer.b
(int): The second integer.
Returns:¶
- int: The sum of the two integers.
Raises:¶
TypeError
: If inputs are not integers.
Examples:¶
Source code in src/fatpy/examples/docstring_example_tmp.py
material_laws
¶
Material laws module.
Contains the classes and functions for defining and working with material laws.
structural_mechanics
¶
utils
¶
Utility functions for the fatigue analysis package.
mesh
¶
Mesh processing utilities module.
This module provides various functions and classes for mesh processing tasks.
post_processing
¶
Utilities for post-processing fatigue analysis results.
pre_processing
¶
Utilities for pre-processing fatigue analysis results.
signal
¶
Signal processing utilities module.
This module provides various functions and classes for signal processing tasks.