Go to the documentation of this file.
22 #ifndef LIB_DOMAIN_HPP_INCLUDED
23 #define LIB_DOMAIN_HPP_INCLUDED
25 #include "../core/domain.hpp"
33 namespace domain_traits
64 static xi_t constrain_inside_impl(
xi_t const &xi)
67 res(0) = std::min(res(0), 1.);
68 res(0) = std::max(res(0), -1.);
75 static xi_t const m_center;
81 namespace domain_traits
112 static xi_t constrain_inside_impl(
xi_t const &xi)
122 res(d) = std::min(res(d), 1.);
123 res(d) = std::max(res(d), 0.);
131 static xi_t const m_center;
137 namespace domain_traits
168 static xi_t constrain_inside_impl(
xi_t const &xi)
173 res(d) = std::min(res(d), 1.);
174 res(d) = std::max(res(d), -1.);
182 static xi_t const m_center;
188 namespace domain_traits
219 static xi_t constrain_inside_impl(
xi_t const &xi)
224 res(d) = std::min(res(d), 1.);
225 res(d) = std::max(res(d), -1.);
233 static xi_t const m_center;
238 #endif // LIB_DOMAIN_HPP_INCLUDED
static const xi_t & get_center_impl()
return domain center
static const corners_t & get_corners_impl()
return domain corners
static const corners_t & get_corners_impl()
return domain corners
space_t::scalar_t scalar_t
coordinate scalar type
defines the number of domain corners
static const corners_t & get_corners_impl()
return domain corners
static const xi_t & get_center_impl()
return domain center
static const edges_t & get_edges_impl()
return domain edges
static const xi_t & get_center_impl()
return domain center
Defines the domain's size (volume)
static const edges_t & get_edges_impl()
return domain edges
static const edges_t & get_edges_impl()
return domain edges
static const corners_t & get_corners_impl()
return domain corners
@ dimension
space dimensions
static const xi_t & get_center_impl()
return domain center
static const edges_t & get_edges_impl()
return domain edges
assigns a coordinate space to the domain
space_t::location_t xi_t
coordinate vector type
domain_edge_t edges_t[num_edges]
type of edges array
defines the number of edges
Polygonal subset of the space. All elements are defined on a domain.
class representing a coordinate space with a scalar and a dimension
std::array< xi_t, num_corners > corners_t
type of corners array