hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hpfem::fespace::EntityDofMap< Dim, Counts > Class Template Reference

#include <dof_map.hpp>

Public Member Functions

 EntityDofMap (const mesh::Mesh< Dim > &mesh, std::vector< int > cell_orders)
 Variable order: one entry per cell, all ≥ 1.
 
 EntityDofMap (const mesh::Mesh< Dim > &mesh, int order)
 Uniform order p on every cell.
 
const mesh::Mesh< Dim > & mesh () const noexcept
 
Index num_dofs () const noexcept
 
int cell_order (Index c) const
 
int edge_order (Index e) const
 
int face_order (Index f) const
 
int max_order () const noexcept
 
Index vertex_dof (Index v) const noexcept
 Global DoF of vertex v (H1 spaces only).
 
std::span< const Index > edge_dofs (Index e) const
 Global DoFs of the functions of edge e (ascending degree), possibly empty.
 
std::span< const Index > face_dofs (Index f) const
 
std::span< const Index > interior_dofs (Index c) const
 
CellLayout< Dim > cell_layout (Index c) const
 Basis layout (orders and orientation codes) of cell c.
 
std::span< const Index > cell_dofs (Index c) const
 Global DoFs of cell c in basis function order.
 
std::vector< Index > facet_dofs (Index f) const
 
std::vector< Index > dofs_on_tag (mesh::Tag tag) const
 Union of facet_dofs over all facets carrying tag, sorted and unique.
 

Detailed Description

template<int Dim, class Counts>
class hpfem::fespace::EntityDofMap< Dim, Counts >

Numbers the DoFs of a hierarchical space on a mesh: vertex DoFs (if the space has them), then the edge functions edge by edge, the face functions (3D) and the interior functions cell by cell. The order of an edge or face is the minimum of the orders of its cells, so the space is conforming and every entity function is shared by all adjacent cells. On a one-irregular mesh (mesh::Mesh::hanging_edges) a hanging parent entity additionally takes at most the order of its children, whose DoFs assembly::hanging_constraints expresses through the parent's. Cell-local DoF lists follow the function order of the corresponding basis, with cell_layout(c) supplying orders and orientations.

Constructor & Destructor Documentation

◆ EntityDofMap() [1/2]

template<int Dim, class Counts >
hpfem::fespace::EntityDofMap< Dim, Counts >::EntityDofMap ( const mesh::Mesh< Dim > &  mesh,
std::vector< int >  cell_orders 
)

Variable order: one entry per cell, all ≥ 1.

◆ EntityDofMap() [2/2]

template<int Dim, class Counts >
hpfem::fespace::EntityDofMap< Dim, Counts >::EntityDofMap ( const mesh::Mesh< Dim > &  mesh,
int  order 
)

Uniform order p on every cell.

Member Function Documentation

◆ cell_dofs()

template<int Dim, class Counts >
std::span< const Index > hpfem::fespace::EntityDofMap< Dim, Counts >::cell_dofs ( Index  c) const

Global DoFs of cell c in basis function order.

◆ cell_layout()

template<int Dim, class Counts >
CellLayout< Dim > hpfem::fespace::EntityDofMap< Dim, Counts >::cell_layout ( Index  c) const

Basis layout (orders and orientation codes) of cell c.

◆ cell_order()

template<int Dim, class Counts >
int hpfem::fespace::EntityDofMap< Dim, Counts >::cell_order ( Index  c) const
inline

◆ dofs_on_tag()

template<int Dim, class Counts >
std::vector< Index > hpfem::fespace::EntityDofMap< Dim, Counts >::dofs_on_tag ( mesh::Tag  tag) const

Union of facet_dofs over all facets carrying tag, sorted and unique.

◆ edge_dofs()

template<int Dim, class Counts >
std::span< const Index > hpfem::fespace::EntityDofMap< Dim, Counts >::edge_dofs ( Index  e) const

Global DoFs of the functions of edge e (ascending degree), possibly empty.

◆ edge_order()

template<int Dim, class Counts >
int hpfem::fespace::EntityDofMap< Dim, Counts >::edge_order ( Index  e) const
inline

◆ face_dofs()

template<int Dim, class Counts >
std::span< const Index > hpfem::fespace::EntityDofMap< Dim, Counts >::face_dofs ( Index  f) const

◆ face_order()

template<int Dim, class Counts >
int hpfem::fespace::EntityDofMap< Dim, Counts >::face_order ( Index  f) const
inline

◆ facet_dofs()

template<int Dim, class Counts >
std::vector< Index > hpfem::fespace::EntityDofMap< Dim, Counts >::facet_dofs ( Index  f) const

All DoFs whose functions have support on facet f (its vertices, edges and, in 3D, the face itself), ascending: the DoFs fixed by an essential condition on f.

◆ interior_dofs()

template<int Dim, class Counts >
std::span< const Index > hpfem::fespace::EntityDofMap< Dim, Counts >::interior_dofs ( Index  c) const

◆ max_order()

template<int Dim, class Counts >
int hpfem::fespace::EntityDofMap< Dim, Counts >::max_order ( ) const
inlinenoexcept

◆ mesh()

template<int Dim, class Counts >
const mesh::Mesh< Dim > & hpfem::fespace::EntityDofMap< Dim, Counts >::mesh ( ) const
inlinenoexcept

◆ num_dofs()

template<int Dim, class Counts >
Index hpfem::fespace::EntityDofMap< Dim, Counts >::num_dofs ( ) const
inlinenoexcept

◆ vertex_dof()

template<int Dim, class Counts >
Index hpfem::fespace::EntityDofMap< Dim, Counts >::vertex_dof ( Index  v) const
inlinenoexcept

Global DoF of vertex v (H1 spaces only).


The documentation for this class was generated from the following file: