hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hpfem::mesh::CellGeometry< Dim > Class Template Referenceabstract

#include <geometry.hpp>

Inheritance diagram for hpfem::mesh::CellGeometry< Dim >:
Inheritance graph
[legend]

Public Member Functions

 CellGeometry ()=default
 
 CellGeometry (const CellGeometry &)=delete
 
CellGeometry & operator= (const CellGeometry &)=delete
 
 CellGeometry (CellGeometry &&)=delete
 
CellGeometry & operator= (CellGeometry &&)=delete
 
virtual ~CellGeometry ()=default
 
virtual int order () const noexcept=0
 Polynomial order of the map: 1 (affine) or 2.
 
bool is_affine () const noexcept
 
virtual GeometryPoint< Dim > evaluate (const Point< Dim > &xi) const =0
 \( x(\xi), J(\xi), J^{-T}(\xi), \det J(\xi) \) at a reference point.
 
virtual Point< Dim > to_reference (const Point< Dim > &x) const =0
 
virtual Real h () const noexcept=0
 Cell diameter: longest straight edge [m].
 

Detailed Description

template<int Dim>
class hpfem::mesh::CellGeometry< Dim >

Geometry of one cell, evaluated pointwise so that affine (order 1) and curved (order 2) cells can be treated alike by quadrature, basis mapping and point location. Obtain via cell_geometry(mesh, c).

Constructor & Destructor Documentation

◆ CellGeometry() [1/3]

template<int Dim>
hpfem::mesh::CellGeometry< Dim >::CellGeometry ( )
default

◆ CellGeometry() [2/3]

template<int Dim>
hpfem::mesh::CellGeometry< Dim >::CellGeometry ( const CellGeometry< Dim > &  )
delete

◆ CellGeometry() [3/3]

template<int Dim>
hpfem::mesh::CellGeometry< Dim >::CellGeometry ( CellGeometry< Dim > &&  )
delete

◆ ~CellGeometry()

template<int Dim>
virtual hpfem::mesh::CellGeometry< Dim >::~CellGeometry ( )
virtualdefault

Member Function Documentation

◆ evaluate()

template<int Dim>
virtual GeometryPoint< Dim > hpfem::mesh::CellGeometry< Dim >::evaluate ( const Point< Dim > &  xi) const
pure virtual

\( x(\xi), J(\xi), J^{-T}(\xi), \det J(\xi) \) at a reference point.

Implemented in hpfem::mesh::AffineGeometry< Dim >, and hpfem::mesh::QuadraticGeometry< Dim >.

◆ h()

template<int Dim>
virtual Real hpfem::mesh::CellGeometry< Dim >::h ( ) const
pure virtualnoexcept

Cell diameter: longest straight edge [m].

Implemented in hpfem::mesh::AffineGeometry< Dim >, and hpfem::mesh::QuadraticGeometry< Dim >.

◆ is_affine()

template<int Dim>
bool hpfem::mesh::CellGeometry< Dim >::is_affine ( ) const
inlinenoexcept

◆ operator=() [1/2]

template<int Dim>
CellGeometry & hpfem::mesh::CellGeometry< Dim >::operator= ( CellGeometry< Dim > &&  )
delete

◆ operator=() [2/2]

template<int Dim>
CellGeometry & hpfem::mesh::CellGeometry< Dim >::operator= ( const CellGeometry< Dim > &  )
delete

◆ order()

template<int Dim>
virtual int hpfem::mesh::CellGeometry< Dim >::order ( ) const
pure virtualnoexcept

Polynomial order of the map: 1 (affine) or 2.

Implemented in hpfem::mesh::AffineGeometry< Dim >, and hpfem::mesh::QuadraticGeometry< Dim >.

◆ to_reference()

template<int Dim>
virtual Point< Dim > hpfem::mesh::CellGeometry< Dim >::to_reference ( const Point< Dim > &  x) const
pure virtual

Reference coordinates of a physical point (Newton iteration for curved cells).

Exceptions
Errorif the iteration does not converge (point far outside the cell).

Implemented in hpfem::mesh::AffineGeometry< Dim >, and hpfem::mesh::QuadraticGeometry< Dim >.


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