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

#include <postprocess.hpp>

Classes

struct  Facet
 

Static Public Member Functions

static Surface around_cells (const mesh::Mesh< Dim > &mesh, mesh::Tag cell_tag)
 
static Surface boundary (const mesh::Mesh< Dim > &mesh, mesh::Tag facet_tag)
 Boundary facets carrying facet_tag, normal out of the domain.
 
static Surface whole_boundary (const mesh::Mesh< Dim > &mesh)
 The whole domain boundary, normal out of the domain.
 
static Surface plane (const mesh::Mesh< Dim > &mesh, int axis, Real coordinate, int direction, Real tolerance=1e-9)
 

Public Attributes

std::vector< Facet > facets
 

Detailed Description

template<int Dim>
struct hpfem::physics::Surface< Dim >

An oriented surface: mesh facets, each with the cell on its inside; the normal points out of that cell. Interior facets give interfaces and flux surfaces, boundary facets the domain boundary.

Member Function Documentation

◆ around_cells()

template<int Dim>
static Surface hpfem::physics::Surface< Dim >::around_cells ( const mesh::Mesh< Dim > &  mesh,
mesh::Tag  cell_tag 
)
static

Closed surface around the cells carrying cell_tag: every facet between a tagged and an untagged (or differently tagged) cell, plus tagged cells' boundary facets; the inside is the tagged cell, so the normal points out of the region. On a locally refined mesh the hanging child facets are used (the inside cell may then be the coarse cell behind the parent facet).

◆ boundary()

template<int Dim>
static Surface hpfem::physics::Surface< Dim >::boundary ( const mesh::Mesh< Dim > &  mesh,
mesh::Tag  facet_tag 
)
static

Boundary facets carrying facet_tag, normal out of the domain.

◆ plane()

template<int Dim>
static Surface hpfem::physics::Surface< Dim >::plane ( const mesh::Mesh< Dim > &  mesh,
int  axis,
Real  coordinate,
int  direction,
Real  tolerance = 1e-9 
)
static

The facets lying on the plane (2D: line) \( x_{\text{axis}} = \) coordinate (every vertex within tolerance times the mesh extent along the axis), oriented so that the normal points along direction (+1: towards larger coordinates, −1: smaller); the inside cell is the one on the other side. Boundary facets whose only cell lies on the wrong side are left out. Lines through hanging facets take the child facets. The plane must coincide with facets, like a layer interface.

Exceptions
InvalidArgumentif no facet lies on the plane or direction is not ±1.

◆ whole_boundary()

template<int Dim>
static Surface hpfem::physics::Surface< Dim >::whole_boundary ( const mesh::Mesh< Dim > &  mesh)
static

The whole domain boundary, normal out of the domain.

Member Data Documentation

◆ facets

template<int Dim>
std::vector<Facet> hpfem::physics::Surface< Dim >::facets

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