hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
hpfem::mesh::Subdivided< Dim > Struct Template Reference

#include <subdivision.hpp>

Static Public Member Functions

static constexpr Index vertices_per_cell (int n) noexcept
 
static constexpr Index cells_per_cell (int n) noexcept
 Sub-simplices per parent cell: \( n^{Dim} \).
 

Public Attributes

Mesh< Dim > mesh
 
std::vector< Index > parent_cell
 parent of every sub-cell
 
std::vector< Index > vertex_parent
 parent cell of every sub-vertex
 
std::vector< Point< Dim > > vertex_xi
 reference coordinates of every sub-vertex in its parent
 

Detailed Description

template<int Dim>
struct hpfem::mesh::Subdivided< Dim >

Result of subdivide. The sub-mesh duplicates its vertices per parent cell, so fields that jump across facets (normal components of E, curls) stay discontinuous in the output; cell tags are inherited from the parents. Sub-vertices of parent cell c are the consecutive ids c * vertices_per_cell(n) + k, sub-cells likewise with cells_per_cell(n).

Member Function Documentation

◆ cells_per_cell()

template<int Dim>
static constexpr Index hpfem::mesh::Subdivided< Dim >::cells_per_cell ( int  n)
inlinestaticconstexprnoexcept

Sub-simplices per parent cell: \( n^{Dim} \).

◆ vertices_per_cell()

template<int Dim>
static constexpr Index hpfem::mesh::Subdivided< Dim >::vertices_per_cell ( int  n)
inlinestaticconstexprnoexcept

Lattice points of the n-fold subdivided reference simplex: \( (n+1)(n+2)/2 \) in 2D, \( (n+1)(n+2)(n+3)/6 \) in 3D.

Member Data Documentation

◆ mesh

template<int Dim>
Mesh<Dim> hpfem::mesh::Subdivided< Dim >::mesh

◆ parent_cell

template<int Dim>
std::vector<Index> hpfem::mesh::Subdivided< Dim >::parent_cell

parent of every sub-cell

◆ vertex_parent

template<int Dim>
std::vector<Index> hpfem::mesh::Subdivided< Dim >::vertex_parent

parent cell of every sub-vertex

◆ vertex_xi

template<int Dim>
std::vector<Point<Dim> > hpfem::mesh::Subdivided< Dim >::vertex_xi

reference coordinates of every sub-vertex in its parent


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