mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-08-19 03:33:45 +00:00
52ebe682e9
Major architectural decision: Use Tensors.jl consistently everywhere for geometric vectors, integration points, and coordinates. Changes to src/elements/elements.jl: - get_basis(): Convert ip to Vec, use Vector (not Matrix) for eval_basis! - get_dbasis(): Convert ip to Vec - jacobian evaluation: Convert geometry and ip.coords to Vec properly - Handle both raw coordinates (Tuple) and IP struct transparently New Tutorial 3: Numerical Integration and Jacobian (49 tests) - Integration point structure and weights - Jacobian determinant and matrix evaluation - Numerical integration (constant, linear, quadratic functions) - Multiple element types (Quad4, Seg2, Tri3) Tests: 107 → 156 passing (49 new) Runtime: ~7 seconds Closes architectural standardization on Tensors.jl. Related to Issue #250 (merge conflict resolution). Why Tensors.jl: - Type stability (100× performance vs Dict-based) - Material science compatibility (stress tensors) - Zero-cost abstractions - Consistent API across all geometric calculations