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

Shapeset base class for CRTP. More...

#include <shapeset.hpp>

Classes

struct  shape_value_type
 type of an \(L(\xi)\) vector More...
 

Public Types

enum  { num_nodes = shape_set_traits::num_nodes<Derived>::value, polynomial_order = shape_set_traits::polynomial_order<Derived>::value, jacobian_order = shape_set_traits::jacobian_order<Derived>::value, id = shape_set_traits::id<Derived>::value }
 integer constants More...
 
typedef shape_set_traits::domain< Derived >::type domain_t
 Domain.
 
typedef domain_t::scalar_t scalar_t
 scalar type inherited from the domain
 
typedef domain_t::xi_t xi_t
 
typedef std::array< xi_t, num_nodescorners_t
 
typedef corners_t::const_iterator corner_iterator_t
 
typedef shape_value_type< 0 >::type shape_t
 
typedef shape_value_type< 1 >::type dshape_t
 
typedef shape_value_type< 2 >::type ddshape_t
 
typedef shape_set_traits::position_dof_vector< Derived >::type position_dof_vector
 
typedef shape_set_traits::corner_index_vector< Derived >::type corner_index_vector
 

Static Public Member Functions

template<unsigned Order>
static shape_set_traits::shape_return_type< Derived, Order >::type eval_shape (xi_t const &xi)
 
static corner_iterator_t corner_begin ()
 return begin iterator of corner nodes
 
static corner_iterator_t corner_end ()
 return end iterator of corner nodes
 
static const xi_tcorner_at (size_t idx)
 return corner at a given node number More...
 
static unsigned node_to_domain_corner (unsigned idx)
 assign domain corner to node More...
 
static unsigned position_dof (unsigned idx)
 assign position dof value to node More...
 

Detailed Description

template<class Derived>
class NiHu::shape_set_base< Derived >

Shapeset base class for CRTP.

Template Parameters
DerivedThe derived shapeset class

Definition at line 195 of file shapeset.hpp.

Member Typedef Documentation

◆ xi_t

template<class Derived >
typedef domain_t::xi_t NiHu::shape_set_base< Derived >::xi_t

type of the local coordinate

Definition at line 216 of file shapeset.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<class Derived >
anonymous enum

integer constants

Enumerator
num_nodes 

number of shape function nodes

polynomial_order 

the shape set polynomial order

jacobian_order 

the Jacobian polynomial order

id 

the shape set id

Definition at line 202 of file shapeset.hpp.

Member Function Documentation

◆ corner_at()

template<class Derived >
static const xi_t& NiHu::shape_set_base< Derived >::corner_at ( size_t  idx)
inlinestatic

return corner at a given node number

Parameters
[in]idxthe node index
Returns
constant reference to the coordinates

Definition at line 255 of file shapeset.hpp.

◆ node_to_domain_corner()

template<class Derived >
static unsigned NiHu::shape_set_base< Derived >::node_to_domain_corner ( unsigned  idx)
inlinestatic

assign domain corner to node

Parameters
[in]idxnode index
Returns
the same domain index

Definition at line 264 of file shapeset.hpp.

◆ position_dof()

template<class Derived >
static unsigned NiHu::shape_set_base< Derived >::position_dof ( unsigned  idx)
inlinestatic

assign position dof value to node

Parameters
[in]idxnode index
Returns
the position dof

Definition at line 279 of file shapeset.hpp.


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