mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-22 18:52:16 +00:00
6b2cde6689
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.