Skip to content

Curvilinear elements #59

Description

@sbadrian

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:

  1. How general should the code be?
  2. 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions