Flow123d  JS_before_hm-1874-gec44d9749
Public Member Functions | Private Attributes | List of all members
FEValuesViews::Tensor< spacedim > Class Template Reference

#include <fe_values_views.hh>

Collaboration diagram for FEValuesViews::Tensor< spacedim >:
Collaboration graph
[legend]

Public Member Functions

 Tensor (const FEValues< spacedim > &fe_values, unsigned int component)
 
arma::mat::fixed< spacedim, spacedim > value (unsigned int function_no, unsigned int point_no) const
 Return value of tensor-valued shape function. More...
 
arma::mat::fixed< spacedim, spacedim > derivative (unsigned int variable_no, unsigned int function_no, unsigned int point_no) const
 Return partial derivative of tensor-valued shape function. More...
 
arma::vec::fixed< spacedim > divergence (unsigned int function_no, unsigned int point_no) const
 Return divergence of tensor-valued shape function. More...
 
const FEValues< spacedim > & base () const
 Returns the FEValues class. More...
 

Private Attributes

const FEValues< spacedim > & fe_values_
 Base FEValues class for access to the FE. More...
 
unsigned int first_tensor_component_
 Index of the first component of the vector. More...
 

Detailed Description

template<unsigned int spacedim = 3>
class FEValuesViews::Tensor< spacedim >

Definition at line 126 of file fe_values_views.hh.

Constructor & Destructor Documentation

◆ Tensor()

template<unsigned int spacedim = 3>
FEValuesViews::Tensor< spacedim >::Tensor ( const FEValues< spacedim > &  fe_values,
unsigned int  component 
)
inline

Definition at line 130 of file fe_values_views.hh.

Member Function Documentation

◆ base()

template<unsigned int spacedim>
const FEValues< spacedim > & FEValuesViews::Tensor< spacedim >::base

Returns the FEValues class.

Definition at line 137 of file fe_values_views.cc.

◆ derivative()

template<unsigned int spacedim>
arma::mat::fixed< spacedim, spacedim > FEValuesViews::Tensor< spacedim >::derivative ( unsigned int  variable_no,
unsigned int  function_no,
unsigned int  point_no 
) const

Return partial derivative of tensor-valued shape function.

Parameters
variable_noIndex of spacial variable w.r. to which we differentiate.
function_noIndex of shape function within the FE.
point_noIndex of quadrature point.

Definition at line 110 of file fe_values_views.cc.

◆ divergence()

template<unsigned int spacedim>
arma::vec::fixed< spacedim > FEValuesViews::Tensor< spacedim >::divergence ( unsigned int  function_no,
unsigned int  point_no 
) const

Return divergence of tensor-valued shape function.

The result is a vector whose components are divergences of tensor columns, i.e. (div T)_i = dT_ji / dx_j.

Parameters
function_noIndex of shape function within the FE.
point_noIndex of quadrature point.

Definition at line 125 of file fe_values_views.cc.

◆ value()

template<unsigned int spacedim>
arma::mat::fixed< spacedim, spacedim > FEValuesViews::Tensor< spacedim >::value ( unsigned int  function_no,
unsigned int  point_no 
) const

Return value of tensor-valued shape function.

Parameters
function_noIndex of shape function within the FE.
point_noIndex of quadrature point.

Definition at line 99 of file fe_values_views.cc.

Member Data Documentation

◆ fe_values_

template<unsigned int spacedim = 3>
const FEValues<spacedim>& FEValuesViews::Tensor< spacedim >::fe_values_
private

Base FEValues class for access to the FE.

Definition at line 170 of file fe_values_views.hh.

◆ first_tensor_component_

template<unsigned int spacedim = 3>
unsigned int FEValuesViews::Tensor< spacedim >::first_tensor_component_
private

Index of the first component of the vector.

Definition at line 173 of file fe_values_views.hh.


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