hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
geometry.hpp File Reference
#include <array>
#include <cstddef>
#include <functional>
#include <memory>
#include <span>
#include <vector>
#include <Eigen/Core>
#include "hpfem/core/types.hpp"
#include "hpfem/mesh/mesh.hpp"
#include "hpfem/mesh/simplex_topology.hpp"
Include dependency graph for geometry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hpfem::mesh::AffineMap< Dim >
 
struct  hpfem::mesh::GeometryPoint< Dim >
 Geometry data of a cell at one reference point. More...
 
class  hpfem::mesh::CellGeometry< Dim >
 
class  hpfem::mesh::AffineGeometry< Dim >
 Affine cell: constant Jacobian data from AffineMap. More...
 
class  hpfem::mesh::QuadraticGeometry< Dim >
 

Namespaces

namespace  hpfem
 
namespace  hpfem::mesh
 

Functions

template<int Dim>
AffineMap< Dim > hpfem::mesh::affine_map (const Mesh< Dim > &mesh, Index c)
 
template<int Dim>
std::vector< AffineMap< Dim > > hpfem::mesh::affine_maps (const Mesh< Dim > &mesh)
 Affine maps of all cells, indexed by cell id.
 
template<int Dim>
Real hpfem::mesh::facet_measure (const Mesh< Dim > &mesh, Index f)
 Measure of facet f: edge length in 2D, triangle area in 3D [m^(Dim-1)].
 
template<int Dim>
Point< Dim > hpfem::mesh::outward_normal (const Mesh< Dim > &mesh, Index c, LocalIndex k)
 
template<int Dim>
void hpfem::mesh::curve_boundary (Mesh< Dim > &mesh, std::span< const Index > facets, const std::function< Point< Dim >(const Point< Dim > &)> &project)
 
template<int Dim>
void hpfem::mesh::curve_boundary (Mesh< Dim > &mesh, Tag tag, const std::function< Point< Dim >(const Point< Dim > &)> &project)
 Same for all facets carrying tag.
 
template<int Dim>
std::unique_ptr< CellGeometry< Dim > > hpfem::mesh::cell_geometry (const Mesh< Dim > &mesh, Index c)
 Geometry of cell c according to mesh.geometry_order().
 
template AffineMap< 2 > hpfem::mesh::affine_map< 2 > (const Mesh< 2 > &, Index)
 
template AffineMap< 3 > hpfem::mesh::affine_map< 3 > (const Mesh< 3 > &, Index)
 
template std::vector< AffineMap< 2 > > hpfem::mesh::affine_maps< 2 > (const Mesh< 2 > &)
 
template std::vector< AffineMap< 3 > > hpfem::mesh::affine_maps< 3 > (const Mesh< 3 > &)
 
template Real hpfem::mesh::facet_measure< 2 > (const Mesh< 2 > &, Index)
 
template Real hpfem::mesh::facet_measure< 3 > (const Mesh< 3 > &, Index)
 
template Point< 2 > hpfem::mesh::outward_normal< 2 > (const Mesh< 2 > &, Index, LocalIndex)
 
template Point< 3 > hpfem::mesh::outward_normal< 3 > (const Mesh< 3 > &, Index, LocalIndex)
 
template std::unique_ptr< CellGeometry< 2 > > hpfem::mesh::cell_geometry< 2 > (const Mesh< 2 > &, Index)
 
template void hpfem::mesh::curve_boundary< 2 > (Mesh< 2 > &, std::span< const Index >, const std::function< Point< 2 >(const Point< 2 > &)> &)
 
template void hpfem::mesh::curve_boundary< 3 > (Mesh< 3 > &, std::span< const Index >, const std::function< Point< 3 >(const Point< 3 > &)> &)
 
template void hpfem::mesh::curve_boundary< 2 > (Mesh< 2 > &, Tag, const std::function< Point< 2 >(const Point< 2 > &)> &)
 
template void hpfem::mesh::curve_boundary< 3 > (Mesh< 3 > &, Tag, const std::function< Point< 3 >(const Point< 3 > &)> &)
 
template std::unique_ptr< CellGeometry< 3 > > hpfem::mesh::cell_geometry< 3 > (const Mesh< 3 > &, Index)
 

Detailed Description

Affine geometry of simplicial cells: reference-to-physical map, Jacobian data for the Piola transforms (docs/theory/nedelec.md#mapping), facet measures and outward normals. Formulas: docs/theory/mesh.md#geometry.