-
Notifications
You must be signed in to change notification settings - Fork 7
Description
ℹ️ General Information
Component Name: Power law
Component Location: material_laws/SN/
Suggested Python Name: wohler_power_law
FABER WG Relation: 2.1
Brief Description: Stress to life and life to stress calculation via the power law
Priority: 10
Technical Complexity: 2
Estimated Effort: 4
Dependencies: -
Implementation Details
📋 Specification
A function implementing the power-law representation of an S–N curve, allowing the computation of the number of cycles (
Mathematical Formulation
Life from stress amplitude:
Stress amplitude from life:
$$ \displaystyle N = \frac{C}{\sigma_{a}^{w}} $$
$$ \displaystyle \sigma_{a} = \left(\frac{C}{N}\right)^{1/w} $$
Inputs
- Power-law model regression parameters
| Parameter | Symbol | Type | Description | Units | Constraints |
|---|---|---|---|---|---|
| SN_C | array of floats | power-law coefficient | |||
| SN_w | array of floats | power-law exponent | - |
- Stress / Strain values or life
| Parameter | Symbol | Type | Description | Units | Range |
|---|---|---|---|---|---|
| stress_amp | array of floats | stress amplitude | MPa | ||
| life | array of floats | Number of cycles | - |
Outputs
| Parameter | Type | Description | Units | Range |
|---|---|---|---|---|
| array of floats | Number of cycles | - | ||
| array of floats | Stress amplitude | - |
Expected Behavior
🔧 Implementation Guidelines
Function Signature
# Suggested function signatureCode Structure
Error Handling
✅ Validation & Testing
Test Cases
| Test Case | Inputs | Expected Outputs | Notes |
|---|---|---|---|
| Example 1 |
Validation Criteria
- Mathematical accuracy verified against literature
- Edge cases handled appropriately
- Output format matches specification
📚 References & Resources
J. Draper: Modern Metal Fatigue Analysis. EMAS Publishing, 2008