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

#include <geometry.hpp>

Public Types

using Matrix = Eigen::Matrix< Real, Dim, Dim >
 

Public Member Functions

Point< Dim > to_physical (const Point< Dim > &xi) const
 Reference → physical coordinates.
 
Point< Dim > to_reference (const Point< Dim > &x) const
 
Real volume () const
 Measure of the cell: \( |\det J| / Dim! \) (area in 2D, volume in 3D).
 
Point< Dim > centroid () const
 Centroid \( x(\bar\xi) \) with \( \bar\xi_i = 1/(Dim+1) \).
 

Public Attributes

Point< Dim > origin
 \( x_0 = x(v_0) \) [m]
 
Matrix jacobian
 \( J \) [m]
 
Matrix inverse_transpose
 \( J^{-T} \) [1/m], covariant Piola factor
 
Real det = 0
 \( \det J \) [m^Dim], signed
 
Real h = 0
 cell diameter: longest edge [m]
 

Detailed Description

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

Affine map \( x(\xi) = x_0 + J\,\xi \) from the reference simplex (vertices \( e_0 = 0, e_1, \dots, e_{Dim} \), see SimplexTopology) to a cell. Column \( i-1 \) of \( J \) is \( x(v_i) - x(v_0) \) in the cell's local vertex order.

det is signed: the local vertex order of a cell is not required to be positively oriented (orientation of shared entities is fixed by global vertex ids, ADR-0003), so integrals use volume() and the Piola transforms use det consistently.

Member Typedef Documentation

◆ Matrix

template<int Dim>
using hpfem::mesh::AffineMap< Dim >::Matrix = Eigen::Matrix<Real, Dim, Dim>

Member Function Documentation

◆ centroid()

template<int Dim>
Point< Dim > hpfem::mesh::AffineMap< Dim >::centroid ( ) const

Centroid \( x(\bar\xi) \) with \( \bar\xi_i = 1/(Dim+1) \).

◆ to_physical()

template<int Dim>
Point< Dim > hpfem::mesh::AffineMap< Dim >::to_physical ( const Point< Dim > &  xi) const
inline

Reference → physical coordinates.

◆ to_reference()

template<int Dim>
Point< Dim > hpfem::mesh::AffineMap< Dim >::to_reference ( const Point< Dim > &  x) const
inline

Physical → reference coordinates (exact for affine cells; a point lies inside the cell iff all reference coordinates and \( 1 - \sum \xi_i \) are non-negative).

◆ volume()

template<int Dim>
Real hpfem::mesh::AffineMap< Dim >::volume ( ) const

Measure of the cell: \( |\det J| / Dim! \) (area in 2D, volume in 3D).

Member Data Documentation

◆ det

template<int Dim>
Real hpfem::mesh::AffineMap< Dim >::det = 0

\( \det J \) [m^Dim], signed

◆ h

template<int Dim>
Real hpfem::mesh::AffineMap< Dim >::h = 0

cell diameter: longest edge [m]

◆ inverse_transpose

template<int Dim>
Matrix hpfem::mesh::AffineMap< Dim >::inverse_transpose

\( J^{-T} \) [1/m], covariant Piola factor

◆ jacobian

template<int Dim>
Matrix hpfem::mesh::AffineMap< Dim >::jacobian

\( J \) [m]

◆ origin

template<int Dim>
Point<Dim> hpfem::mesh::AffineMap< Dim >::origin

\( x_0 = x(v_0) \) [m]


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