26 template<
unsigned int dim,
unsigned int spacedim>
31 return fe_values_.shape_value_component(function_no, point_no, component_);
34 template<
unsigned int dim,
unsigned int spacedim>
39 return fe_values_.shape_grad_component(function_no, point_no, component_);
42 template<
unsigned int dim,
unsigned int spacedim>
44 {
return fe_values_; }
49 template<
unsigned int dim,
unsigned int spacedim>
54 arma::vec::fixed<spacedim> v;
55 for (
unsigned int c=0; c<spacedim; ++c)
56 v(c) = fe_values_.shape_value_component(function_no, point_no, first_vector_component_+c);
60 template<
unsigned int dim,
unsigned int spacedim>
65 arma::mat::fixed<spacedim,spacedim> g;
66 for (
unsigned int c=0; c<spacedim; ++c)
67 g.col(c) = fe_values_.shape_grad_component(function_no, point_no, first_vector_component_+c);
71 template<
unsigned int dim,
unsigned int spacedim>
76 arma::mat::fixed<spacedim,spacedim> g = grad(function_no, point_no);
77 return 0.5*(g+trans(g));
80 template<
unsigned int dim,
unsigned int spacedim>
86 for (
unsigned int c=0; c<spacedim; ++c)
87 div += fe_values_.shape_grad_component(function_no, point_no, first_vector_component_+c)(first_vector_component_+c);
91 template<
unsigned int dim,
unsigned int spacedim>
93 {
return fe_values_; }
FEValuesBase< dim, spacedim > & base() const
Returns the FEValuesBase class.
Class FEValues calculates finite element data on the actual cells such as shape function values...
double value(unsigned int function_no, unsigned int point_no) const
Return value of scalar shape function.
arma::mat::fixed< spacedim, spacedim > grad(unsigned int function_no, unsigned int point_no) const
Return gradient of vector-valued shape function.
Basic definitions of numerical quadrature rules.
FEValuesBase< dim, spacedim > & base() const
Returns the FEValuesBase class.
double divergence(unsigned int function_no, unsigned int point_no) const
Return divergence of vector-valued shape function.
arma::vec::fixed< spacedim > value(unsigned int function_no, unsigned int point_no) const
Return value of vector-valued shape function.
arma::vec::fixed< spacedim > grad(unsigned int function_no, unsigned int point_no) const
Return gradient of scalar shape function.
arma::mat::fixed< spacedim, spacedim > sym_grad(unsigned int function_no, unsigned int point_no) const
Return symmetric gradient of vector-valued shape function.
Abstract class for description of finite elements.
Base class for FEValues and FESideValues.
#define ASSERT_LT_DBG(a, b)
Definition of comparative assert macro (Less Than) only for debug mode.