hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
hpfem::mesh::RefinementStep Struct Reference

#include <adaptive_mesh.hpp>

Public Member Functions

Index num_cells () const noexcept
 
bool refined (Index i) const
 True if cell i was created in this step.
 
int levels (Index i) const
 Number of levels between cell i and its old cell.
 
template<int Dim>
Point< Dim > old_reference (Index i, const Point< Dim > &xi) const
 Reference coordinates in the old cell of reference point ξ of cell i.
 

Public Attributes

std::vector< Index > parent
 
std::vector< std::vector< LocalIndex > > path
 
Index num_old_cells = 0
 

Detailed Description

How the leaf cells of a refinement step relate to those before it: cell i of the new mesh is cell parent[i] of the old mesh itself (path[i] empty) or a descendant reached through the child numbers path[i] (red patterns, one entry per level; the closure may split a cell more than once in one call). old_reference maps reference coordinates of cell i to the old cell.

Member Function Documentation

◆ levels()

int hpfem::mesh::RefinementStep::levels ( Index  i) const
inline

Number of levels between cell i and its old cell.

◆ num_cells()

Index hpfem::mesh::RefinementStep::num_cells ( ) const
inlinenoexcept

◆ old_reference()

template<int Dim>
Point< Dim > hpfem::mesh::RefinementStep::old_reference ( Index  i,
const Point< Dim > &  xi 
) const
inline

Reference coordinates in the old cell of reference point ξ of cell i.

◆ refined()

bool hpfem::mesh::RefinementStep::refined ( Index  i) const
inline

True if cell i was created in this step.

Member Data Documentation

◆ num_old_cells

Index hpfem::mesh::RefinementStep::num_old_cells = 0

◆ parent

std::vector<Index> hpfem::mesh::RefinementStep::parent

◆ path

std::vector<std::vector<LocalIndex> > hpfem::mesh::RefinementStep::path

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