FEValuesViews::Scalar< dim > Class Template Reference
[Finite element access/FEValues classesHandling vector valued problems]

List of all members.

Public Types

typedef double value_type
typedef Tensor< 1, dim > gradient_type
typedef Tensor< 2, dim > hessian_type

Public Member Functions

 Scalar (const FEValuesBase< dim > &fe_values_base, const unsigned int component)
value_type value (const unsigned int shape_function, const unsigned int q_point) const
gradient_type gradient (const unsigned int shape_function, const unsigned int q_point) const
hessian_type hessian (const unsigned int shape_function, const unsigned int q_point) const

Private Attributes

const FEValuesBase< dim > & fe_values
const unsigned int component


Detailed Description

template<int dim>
class FEValuesViews::Scalar< dim >

A class representing a view to a single scalar component of a possibly vector-valued finite element. Views are discussed in the Handling vector valued problems module.

Member Typedef Documentation

template<int dim>
typedef double FEValuesViews::Scalar< dim >::value_type

A typedef for the data type of values of the view this class represents. Since we deal with a single components, the value type is a scalar double.

template<int dim>
typedef Tensor<1,dim> FEValuesViews::Scalar< dim >::gradient_type

A typedef for the type of gradients of the view this class represents. Here, for a scalar component of the finite element, the gradient is a Tensor<1,dim>.

template<int dim>
typedef Tensor<2,dim> FEValuesViews::Scalar< dim >::hessian_type

A typedef for the type of second derivatives of the view this class represents. Here, for a scalar component of the finite element, the Hessian is a Tensor<2,dim>.


Constructor & Destructor Documentation

template<int dim>
FEValuesViews::Scalar< dim >::Scalar ( const FEValuesBase< dim > &  fe_values_base,
const unsigned int  component 
)

Constructor for an object that represents a single scalar component of a FEValuesBase object (or of one of the classes derived from FEValuesBase).


Member Function Documentation

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

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

template<int dim>
gradient_type FEValuesViews::Scalar< dim >::gradient ( const unsigned int  shape_function,
const unsigned int  q_point 
) const

Return the gradient (a tensor of rank 1) of the vector component selected by this view, for the shape function and quadrature point selected by the arguments.

template<int dim>
hessian_type FEValuesViews::Scalar< dim >::hessian ( const unsigned int  shape_function,
const unsigned int  q_point 
) const

Return the Hessian (the tensor of rank 2 of all second derivatives) of the vector component selected by this view, for the shape function and quadrature point selected by the arguments.


Member Data Documentation

template<int dim>
const FEValuesBase<dim>& FEValuesViews::Scalar< dim >::fe_values [private]

A reference to the FEValuesBase object we operator on.

template<int dim>
const unsigned int FEValuesViews::Scalar< dim >::component [private]

The single scalar component this view represents of the FEValuesBase object.


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

deal.II documentation generated on Fri Nov 21 07:13:44 2008 by doxygen 1.5.6