mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-11 06:08:07 +00:00
9f42575cf2
- Added Lagrange{T<:AbstractTopology, P} struct for parametric basis
- Implemented nnodes() formulas for all 7 topologies:
- Segment: P+1 nodes
- Triangle: (P+1)(P+2)/2 nodes (simplex formula)
- Quadrilateral: (P+1)² nodes (tensor product)
- Tetrahedron: (P+1)(P+2)(P+3)/6 nodes (simplex formula)
- Hexahedron: (P+1)³ nodes (tensor product)
- Pyramid: hardcoded for P=1,2,3 (no simple formula)
- Wedge: (P+1)²(P+2)/2 nodes (triangle × segment)
- Added comprehensive documentation with examples
- Exported Lagrange and nnodes
- Node count now comes from basis, not topology