mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-17 09:12:09 +00:00
refactor(quadrature): Change IntegrationPoint ξ field from NTuple to Vec
- Changed ξ field type from NTuple{D,Float64} to Vec{D,Float64}
- Updated docstring to reflect Vec type instead of tuple
- Updated example to show Vec construction
- Enables direct use in tensor operations without conversion
This commit is contained in:
@@ -34,16 +34,16 @@ abstract type AbstractIntegration end
|
||||
Represents a single integration point in D-dimensional parametric space.
|
||||
|
||||
# Fields
|
||||
- `ξ::NTuple{D, Float64}`: Location in parametric coordinates
|
||||
- `ξ::Vec{D, Float64}`: Location in parametric coordinates
|
||||
- `weight::Float64`: Integration weight
|
||||
|
||||
# Examples
|
||||
```julia
|
||||
ip = IntegrationPoint((0.0, 0.0), 1.0) # 2D point at origin with weight 1
|
||||
ip = IntegrationPoint(Vec(0.0, 0.0), 1.0) # 2D point at origin with weight 1
|
||||
```
|
||||
"""
|
||||
struct IntegrationPoint{D}
|
||||
ξ::NTuple{D,Float64}
|
||||
ξ::Vec{D,Float64}
|
||||
weight::Float64
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user