HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
Classes | Typedefs | Functions | Variables
Mesh2D Namespace Reference

Classes

class  Mesh
 
class  MeshBuilder
 The MeshBuilder class provides build tools to create a full mesh with all connectivities. More...
 
class  MeshReaderTyp2
 The MeshReaderTyp2 class provides functions to read a typ2 mesh file. More...
 
class  Polytope
 A Vertex is a Polytope with object_dim = 0. More...
 

Typedefs

using VectorRd = Eigen::Matrix< double, DIMENSION, 1 >
 
using VectorZd = Eigen::Matrix< int, DIMENSION, 1 >
 
template<size_t object_dim>
using Simplex = std::array< VectorRd, object_dim+1 >
 
template<size_t object_dim>
using Simplices = std::vector< Simplex< object_dim > >
 Method to find the center mass of an arbitrary simplex in arbitrary space. More...
 
using Vertex = Polytope< 0 >
 An Edge is a Polytope with object_dim = 1. More...
 
using Edge = Polytope< 1 >
 A Face is a Polytope with object_dim = DIMENSION - 1. More...
 
using Face = Polytope< DIMENSION - 1 >
 A Cell is a Polytope with object_dim = DIMENSION. More...
 
using Cell = Polytope< DIMENSION >
 

Functions

double signed_area (VectorRd A, VectorRd B, VectorRd C)
 
double shortest_distance (VectorRd p, VectorRd A, VectorRd B)
 
Simplices< 2 > simplexify (std::vector< VectorRd > vertices)
 
template<size_t object_dim>
VectorRd simplex_center_mass (Simplex< object_dim > simplex)
 Method to find the Lebesgue measure of an arbitrary simplex in arbitrary space. More...
 
template<size_t object_dim>
double simplex_measure (Simplex< object_dim > simplex)
 

Variables

constexpr int DIMENSION = 2
 

Typedef Documentation

◆ Simplex

template<size_t object_dim>
using Mesh2D::Simplex = typedef std::array<VectorRd, object_dim + 1>

◆ Simplices

template<size_t object_dim>
using Mesh2D::Simplices = typedef std::vector<Simplex<object_dim> >

Method to find the center mass of an arbitrary simplex in arbitrary space.

◆ VectorRd

using Mesh2D::VectorRd = typedef Eigen::Matrix<double, DIMENSION, 1>

◆ VectorZd

using Mesh2D::VectorZd = typedef Eigen::Matrix<int, DIMENSION, 1>

Function Documentation

◆ shortest_distance()

double Mesh2D::shortest_distance ( VectorRd  p,
VectorRd  A,
VectorRd  B 
)
inline

◆ signed_area()

double Mesh2D::signed_area ( VectorRd  A,
VectorRd  B,
VectorRd  C 
)
inline

◆ simplexify()

Simplices<2> Mesh2D::simplexify ( std::vector< VectorRd vertices)
inline

Variable Documentation

◆ DIMENSION

constexpr int Mesh2D::DIMENSION = 2
inlineconstexpr