-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
ℹ️ General Information
Component Name: Hooke's Law
Component Location: material_laws/hookes_law
Suggested Python Name: hookes_law
FABER WG Relation: -
Brief Description: Elastic stress to strain and back conversion for linear elastic and isotropic material.
Priority: 3
Technical Complexity: 2
Estimated Effort: 2
Dependencies: -
Implementation Details
📋 Specification
A function allowing compute stresses (
Mathematical Formulation
Inputs
- Material parameters
| Parameter | Symbol | Type | Description | Units | Range |
|---|---|---|---|---|---|
| elastic_modulus | array of floats | Young's modulus | MPa | ||
| poisson_ratio | array of floats | Poisson's ratio | - |
- Stress / Strain values
| Parameter | Symbol | Type | Description | Units | Range |
|---|---|---|---|---|---|
| stress | array of floats | stress | MPa | ||
| strain | array of floats | strain | - |
Outputs
| Parameter | Symbol | Type | Description | Units | Range |
|---|---|---|---|---|---|
| stress | array of floats | stress | MPa | ||
| strain | array of floats | strain | - |
Expected Behavior
🔧 Implementation Guidelines
Function Signature
# Suggested function signature
def calc_stress(
strain: ArrayLike,
) -> NDArray[np.float64]:
def calc_strain(
stress: ArrayLike,
) -> NDArray[np.float64]:Code Structure
Error Handling
✅ Validation & Testing
Test Cases
Validation Criteria
- Edge cases handled appropriately
- Output format matches specification
📚 References & Resources
https://en.wikipedia.org/wiki/Hooke%27s_law
📝 Technical Notes
Performance Considerations
Edge Cases to Handle
Metadata
Metadata
Assignees
Labels
No labels