comparison src/Grids/manifolds.jl @ 1644:e213bd857f3f feature/grids/manifolds

Add some todos and tbds
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 26 Jun 2024 11:06:32 +0200
parents 84c3b9d71218
children 2a8a2b52a112
comparison
equal deleted inserted replaced
1633:35f8e1adb010 1644:e213bd857f3f
17 [`Triangle`](@ref), [`Tetrahedron`](@ref), [`HyperBox`](@ref), 17 [`Triangle`](@ref), [`Tetrahedron`](@ref), [`HyperBox`](@ref),
18 [`Simplex`](@ref), 18 [`Simplex`](@ref),
19 """ 19 """
20 abstract type ParameterSpace{D} end 20 abstract type ParameterSpace{D} end
21 Base.ndims(::ParameterSpace{D}) where D = D 21 Base.ndims(::ParameterSpace{D}) where D = D
22 # TBD: Should implement domain_dim?
22 23
23 struct HyperBox{T,D} <: ParameterSpace{D} 24 struct HyperBox{T,D} <: ParameterSpace{D}
24 a::SVector{D,T} 25 a::SVector{D,T}
25 b::SVector{D,T} 26 b::SVector{D,T}
26 end 27 end
96 jacobian(c::typeof(c),ξ) = f′(ξ) 97 jacobian(c::typeof(c),ξ) = f′(ξ)
97 ``` 98 ```
98 which will both allow calling `jacobian(c,ξ)`. 99 which will both allow calling `jacobian(c,ξ)`.
99 """ 100 """
100 jacobian(c::Chart, ξ) = jacobian(c.mapping, ξ) 101 jacobian(c::Chart, ξ) = jacobian(c.mapping, ξ)
101 102 # TBD: Can we register a error hint for when jacobian is called with a function that doesn't have a registered jacobian?
103
104
105 # TBD: Should Charts, parameterspaces have boundary names?
102 106
103 """ 107 """
104 Atlas 108 Atlas
105 109
106 A collection of charts and their connections. 110 A collection of charts and their connections.
197 201
198 function (s::TransfiniteInterpolationSurface)(ξ̄::AbstractArray) 202 function (s::TransfiniteInterpolationSurface)(ξ̄::AbstractArray)
199 s(ξ̄...) 203 s(ξ̄...)
200 end 204 end
201 205
202 206 # TODO: Implement jacobian() for the different mapping helpers
207