NiHu  2.0
NiHu::quadrature_elem< XiType, ScalarType > Class Template Reference

a quadrature element is a base point and a weight More...

#include <quadrature.hpp>

Public Types

typedef XiType xi_t
 template argument as tested type
 
typedef ScalarType scalar_t
 template argument as nested type
 

Public Member Functions

 quadrature_elem (xi_t const &xi=xi_t(), scalar_t const &w=scalar_t())
 constructor initialising all members More...
 
xi_tget_xi (void)
 return reference to base point
 
const xi_tget_xi (void) const
 return constant reference to base point More...
 
const scalar_tget_w (void) const
 return constant reference to weight More...
 
void set_w (scalar_t const &w)
 set quadrature weight More...
 
void set_xi (xi_t const &xi)
 
quadrature_elemoperator*= (scalar_t const &c)
 multiply a quadrature element by a scalar More...
 
template<class LSet , bool Signed = true>
quadrature_elemtransform_inplace (Eigen::Matrix< scalar_t, LSet::num_nodes, LSet::domain_t::dimension > const &coords)
 transform a quadrature element according to a shape function set and corner nodes More...
 

Protected Attributes

xi_t m_xi
 base point
 
scalar_t m_w
 weight
 

Detailed Description

template<class XiType, class ScalarType>
class NiHu::quadrature_elem< XiType, ScalarType >

a quadrature element is a base point and a weight

Template Parameters
XiTypethe local coordinate type
ScalarTypethe scalar of coordinates

Definition at line 39 of file quadrature.hpp.

Constructor & Destructor Documentation

◆ quadrature_elem()

template<class XiType , class ScalarType >
NiHu::quadrature_elem< XiType, ScalarType >::quadrature_elem ( xi_t const &  xi = xi_t(),
scalar_t const &  w = scalar_t() 
)
inline

constructor initialising all members

Parameters
[in]xibase location
[in]wweight

Definition at line 52 of file quadrature.hpp.

Member Function Documentation

◆ get_w()

template<class XiType , class ScalarType >
const scalar_t& NiHu::quadrature_elem< XiType, ScalarType >::get_w ( void  ) const
inline

return constant reference to weight

Returns
reference to weight

Definition at line 78 of file quadrature.hpp.

◆ get_xi()

template<class XiType , class ScalarType >
const xi_t& NiHu::quadrature_elem< XiType, ScalarType >::get_xi ( void  ) const
inline

return constant reference to base point

Returns
reference to base point

Definition at line 69 of file quadrature.hpp.

◆ operator*=()

template<class XiType , class ScalarType >
quadrature_elem& NiHu::quadrature_elem< XiType, ScalarType >::operator*= ( scalar_t const &  c)
inline

multiply a quadrature element by a scalar

Parameters
cthe scalar multiplier

Definition at line 101 of file quadrature.hpp.

◆ set_w()

template<class XiType , class ScalarType >
void NiHu::quadrature_elem< XiType, ScalarType >::set_w ( scalar_t const &  w)
inline

set quadrature weight

Parameters
[in]wnew weight

Definition at line 87 of file quadrature.hpp.

◆ transform_inplace()

template<class XiType , class ScalarType >
template<class LSet , bool Signed = true>
quadrature_elem& NiHu::quadrature_elem< XiType, ScalarType >::transform_inplace ( Eigen::Matrix< scalar_t, LSet::num_nodes, LSet::domain_t::dimension > const &  coords)
inline

transform a quadrature element according to a shape function set and corner nodes

Template Parameters
LSetthe shape function set
Signedindicates if the sign of the Jacobian needs to be taken into ancount
Parameters
[in]coordstransformation corners
Returns
reference to the transformed object

Definition at line 115 of file quadrature.hpp.


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