|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#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] | |
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.
| using hpfem::mesh::AffineMap< Dim >::Matrix = Eigen::Matrix<Real, Dim, Dim> |
| Point< Dim > hpfem::mesh::AffineMap< Dim >::centroid | ( | ) | const |
Centroid \( x(\bar\xi) \) with \( \bar\xi_i = 1/(Dim+1) \).
|
inline |
Reference → physical coordinates.
|
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).
| Real hpfem::mesh::AffineMap< Dim >::volume | ( | ) | const |
Measure of the cell: \( |\det J| / Dim! \) (area in 2D, volume in 3D).
| Real hpfem::mesh::AffineMap< Dim >::det = 0 |
\( \det J \) [m^Dim], signed
| Real hpfem::mesh::AffineMap< Dim >::h = 0 |
cell diameter: longest edge [m]
| Matrix hpfem::mesh::AffineMap< Dim >::inverse_transpose |
\( J^{-T} \) [1/m], covariant Piola factor
| Matrix hpfem::mesh::AffineMap< Dim >::jacobian |
\( J \) [m]
| Point<Dim> hpfem::mesh::AffineMap< Dim >::origin |
\( x_0 = x(v_0) \) [m]