|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <adaptive_mesh.hpp>
Public Types | |
| using | CellVertices = typename Mesh< Dim >::CellVertices |
Public Member Functions | |
| AdaptiveMesh (Mesh< Dim > root) | |
| const Mesh< Dim > & | root () const noexcept |
| const Mesh< Dim > & | mesh () const noexcept |
| Current leaf mesh (hanging entities registered). | |
| int | level (Index c) const |
| Refinement level of leaf cell c (0 for root cells). | |
| int | max_level () const noexcept |
| Index | root_cell (Index c) const |
| Point< Dim > | root_reference (Index c, const Point< Dim > &xi) const |
| RefinementStep | refine (std::span< const Index > marked) |
| RefinementStep | refine_all () |
Refines every leaf cell (the result equals refine_uniform of the leaf mesh). | |
| void | set_periodic (std::vector< PeriodicFace< Dim > > faces) |
| const std::vector< PeriodicFace< Dim > > & | periodic () const noexcept |
Static Public Attributes | |
| static constexpr Index | kChildren = detail::RedRefinement<Dim>::kChildren |
| using hpfem::mesh::AdaptiveMesh< Dim >::CellVertices = typename Mesh<Dim>::CellVertices |
|
explicit |
|
inline |
Refinement level of leaf cell c (0 for root cells).
|
inlinenoexcept |
|
inlinenoexcept |
Current leaf mesh (hanging entities registered).
|
inlinenoexcept |
| RefinementStep hpfem::mesh::AdaptiveMesh< Dim >::refine | ( | std::span< const Index > | marked | ) |
Refines the leaf cells marked (ids of mesh()), closes the one-irregular rule and rebuilds the leaf mesh.
| InvalidArgument | for an id out of range. |
| RefinementStep hpfem::mesh::AdaptiveMesh< Dim >::refine_all | ( | ) |
Refines every leaf cell (the result equals refine_uniform of the leaf mesh).
|
inlinenoexcept |
|
inline |
Root cell containing leaf cell c, and the reference coordinates in that root cell of the reference point ΞΎ of c.
| Point< Dim > hpfem::mesh::AdaptiveMesh< Dim >::root_reference | ( | Index | c, |
| const Point< Dim > & | xi | ||
| ) | const |
| void hpfem::mesh::AdaptiveMesh< Dim >::set_periodic | ( | std::vector< PeriodicFace< Dim > > | faces | ) |
Declares periodic face pairs. Every refinement (the marked cells and the closure) is then mirrored onto the partner face until the leaf facets on both faces of a pair are identical up to the shift, which assembly::bloch_constraints requires; the mirrored cells count as refined by the closure (children inherit the order in hp_refine).
| InvalidArgument | if a tag has no facets on the root mesh. |
|
staticconstexpr |