PR #58 shows an example implementation of a 1D curvilinear mesh with general simplices
The simplices ares general, in the sense, that I do not assume equal spacing. Currently, I only work with equal spacing, because Gmsh results in equal spacing, but the code is not optimized for it.
I think a next step some type should be introduced to allow optimization for equidistant layout.
abstract type AbstractLineLayout end
struct EquidistantLayout{N,T} <: AbstractLineLayout
# optionally precomputed denominators, etc.
end
struct GeneralLayout{N,T} <: AbstractLineLayout
ζnodes::SVector{N,T}
# optionally precomputed denominators, etc.
end
Curious of your thoughts. I guess my specific questions are:
- How general should the code be?
- Where to we store the information regarding the barycentric coordinates of the control vertices given a CurvilinearMesh? Would that be something for the typed_cells data types?
PR #58 shows an example implementation of a 1D curvilinear mesh with general simplices
The simplices ares general, in the sense, that I do not assume equal spacing. Currently, I only work with equal spacing, because Gmsh results in equal spacing, but the code is not optimized for it.
I think a next step some type should be introduced to allow optimization for equidistant layout.
Curious of your thoughts. I guess my specific questions are: