Classes | Public Types | Public Member Functions | Private Attributes
FEValuesViews::SymmetricTensor< 2, dim, spacedim > Class Template Reference

List of all members.

Classes

struct  ShapeFunctionData

Public Types

typedef ::SymmetricTensor
< 2, spacedim > 
value_type
typedef Tensor< 1, spacedim > divergence_type

Public Member Functions

 SymmetricTensor ()
 SymmetricTensor (const FEValuesBase< dim, spacedim > &fe_values_base, const unsigned int first_tensor_component)
SymmetricTensor & operator= (const SymmetricTensor< 2, dim, spacedim > &)
value_type value (const unsigned int shape_function, const unsigned int q_point) const
divergence_type divergence (const unsigned int shape_function, const unsigned int q_point) const
template<class InputVector >
void get_function_values (const InputVector &fe_function, std::vector< value_type > &values) const
template<class InputVector >
void get_function_divergences (const InputVector &fe_function, std::vector< divergence_type > &divergences) const

Private Attributes

const FEValuesBase< dim,
spacedim > & 
fe_values
const unsigned int first_tensor_component
std::vector< ShapeFunctionData > shape_function_data

Detailed Description

template<int dim, int spacedim>
class FEValuesViews::SymmetricTensor< 2, dim, spacedim >

A class representing a view to a set of (dim*dim + dim)/2 components forming a symmetric second-order tensor from a vector-valued finite element. Views are discussed in the Handling vector valued problems module.

Author:
Andrew McBride, 2009

Member Typedef Documentation

template<int dim, int spacedim>
typedef ::SymmetricTensor<2, spacedim> FEValuesViews::SymmetricTensor< 2, dim, spacedim >::value_type

A typedef for the data type of values of the view this class represents. Since we deal with a set of (dim*dim + dim)/2 components (i.e. the unique components of a symmetric second-order tensor), the value type is a SymmetricTensor<2,spacedim>.

template<int dim, int spacedim>
typedef Tensor<1, spacedim> FEValuesViews::SymmetricTensor< 2, dim, spacedim >::divergence_type

A typedef for the type of the divergence of the view this class represents. Here, for a set of of (dim*dim + dim)/2 unique components of the finite element representing a symmetric second-order tensor, the divergence of course is a * Tensor<1,dim>.


Constructor & Destructor Documentation

template<int dim, int spacedim>
FEValuesViews::SymmetricTensor< 2, dim, spacedim >::SymmetricTensor ( )

Default constructor. Creates an invalid object.

template<int dim, int spacedim>
FEValuesViews::SymmetricTensor< 2, dim, spacedim >::SymmetricTensor ( const FEValuesBase< dim, spacedim > &  fe_values_base,
const unsigned int  first_tensor_component 
)

Constructor for an object that represents (dim*dim + dim)/2 components of a FEValuesBase object (or of one of the classes derived from FEValuesBase), representing the unique components comprising a symmetric second- order tensor valued variable.

The second argument denotes the index of the first component of the selected symmetric second order tensor.


Member Function Documentation

template<int dim, int spacedim>
SymmetricTensor& FEValuesViews::SymmetricTensor< 2, dim, spacedim >::operator= ( const SymmetricTensor< 2, dim, spacedim > &  )

Copy operator. This is not a lightweight object so we don't allow copying and generate an exception if this function is called.

template<int dim, int spacedim>
value_type FEValuesViews::SymmetricTensor< 2, dim, spacedim >::value ( const unsigned int  shape_function,
const unsigned int  q_point 
) const

Return the value of the vector components selected by this view, for the shape function and quadrature point selected by the arguments. Here, since the view represents a vector-valued part of the FEValues object with (dim*dim + dim)/2 components (the unique components of a symmetric second-order tensor), the return type is a symmetric tensor of rank 2.

template<int dim, int spacedim>
divergence_type FEValuesViews::SymmetricTensor< 2, dim, spacedim >::divergence ( const unsigned int  shape_function,
const unsigned int  q_point 
) const

Return the vector divergence of the vector components selected by this view, for the shape function and quadrature point selected by the arguments.

template<int dim, int spacedim>
template<class InputVector >
void FEValuesViews::SymmetricTensor< 2, dim, spacedim >::get_function_values ( const InputVector &  fe_function,
std::vector< value_type > &  values 
) const

Return the values of the selected vector components of the finite element function characterized by fe_function at the quadrature points of the cell, face or subface selected the last time the reinit function of the FEValues object was called, at the quadrature points.

This function is the equivalent of the FEValuesBase::get_function_values function but it only works on the selected vector components.

template<int dim, int spacedim>
template<class InputVector >
void FEValuesViews::SymmetricTensor< 2, dim, spacedim >::get_function_divergences ( const InputVector &  fe_function,
std::vector< divergence_type > &  divergences 
) const

Return the divergence of the selected vector components of the finite element function characterized by fe_function at the quadrature points of the cell, face or subface selected the last time the reinit function of the FEValues object was called, at the quadrature points.

There is no equivalent function such as FEValuesBase::get_function_gradients in the FEValues classes but the information can be obtained from FEValuesBase::get_function_gradients, of course.


Member Data Documentation

template<int dim, int spacedim>
const FEValuesBase<dim, spacedim>& FEValuesViews::SymmetricTensor< 2, dim, spacedim >::fe_values [private]

A reference to the FEValuesBase object we operate on.

template<int dim, int spacedim>
const unsigned int FEValuesViews::SymmetricTensor< 2, dim, spacedim >::first_tensor_component [private]

The first component of the vector this view represents of the FEValuesBase object.

template<int dim, int spacedim>
std::vector<ShapeFunctionData> FEValuesViews::SymmetricTensor< 2, dim, spacedim >::shape_function_data [private]

Store the data about shape functions.


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

deal.II documentation generated on Fri Aug 12 2011 15:01:08 by doxygen 1.7.4