NiHu  2.0
NiHu::domain_base< Derived > Class Template Reference

Polygonal subset of the \( \xi \) space. All elements are defined on a domain. More...

#include <domain.hpp>

Public Types

enum  { num_corners = domain_traits::num_corners<Derived>::value, num_edges = domain_traits::num_edges<Derived>::value, id = domain_traits::id<Derived>::value, dimension = space_t::dimension }
 
typedef Derived type
 self-returning
 
typedef domain_traits::space_type< Derived >::type space_t
 the space type as nested typedef
 
typedef space_t::scalar_t scalar_t
 coordinate scalar type
 
typedef space_t::location_t xi_t
 coordinate vector type
 
typedef std::array< xi_t, num_cornerscorners_t
 type of corners array
 
typedef unsigned domain_edge_t[2]
 type of a domain edge
 
typedef domain_edge_t edges_t[num_edges]
 type of edges array
 

Static Public Member Functions

static const xi_tget_center ()
 return domain center
 
static const corners_tget_corners ()
 return begin address of domain corners' array
 
static const xi_tget_corner (unsigned idx)
 return specified corner of domain
 
static const edges_tget_edges ()
 return edges of the domain
 
static const domain_edge_tget_edge (unsigned idx)
 return specified edge of domain
 
static constexpr scalar_t get_volume ()
 return domain volume
 
static const std::string & get_name ()
 return domain name
 
static constexpr unsigned get_id ()
 return domain id
 
static xi_t constrain_inside (xi_t const &xi)
 

Detailed Description

template<class Derived>
class NiHu::domain_base< Derived >

Polygonal subset of the \( \xi \) space. All elements are defined on a domain.

Definition at line 71 of file domain.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<class Derived >
anonymous enum
Enumerator
num_corners 

number of domain corners

num_edges 

number of domain edges

id 

domain id as nested enum

dimension 

space dimensions

Definition at line 78 of file domain.hpp.


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