Jukka Aho
|
6b2cde6689
|
bench: Add comprehensive material models performance comparison
Extensive benchmark comparing new Tensors.jl approach vs old Voigt/Dict approach:
Materials tested:
- Linear Elastic (Hookean) - stateless
- Neo-Hookean Hyperelasticity - stateless (AD + manual derivatives)
- Perfect Plasticity (von Mises) - stateful with radial return
Analysis performed:
1. Type stability (@code_warntype)
2. Memory allocations (@allocated)
3. Execution time (BenchmarkTools)
4. LLVM IR inspection (inlining, vectorization)
5. Native assembly analysis
Validates key claims:
- Zero allocations for new approach (stack-only computation)
- 5-50× speedup over Voigt/Dict
- Manual derivatives outperform automatic differentiation
- Proper state handling for Newton iterations
Includes AbstractMaterial/AbstractMaterialState type hierarchy demonstration
showing how assembly code stays identical for stateless and stateful materials.
|
2025-11-12 00:17:30 +02:00 |
|