MyMappingQ1< dim >::InternalData Class Reference

#include <mymapping_q1.h>

Inheritance diagram for MyMappingQ1< dim >::InternalData:

Mapping< dim >::InternalDataBase Subscriptor Subscriptor

List of all members.

Public Member Functions

 InternalData (const unsigned int n_shape_functions)
double shape (const unsigned int qpoint, const unsigned int shape_nr) const
doubleshape (const unsigned int qpoint, const unsigned int shape_nr)
double support_shape (const unsigned int point_no, const unsigned int shape_nr) const
doublesupport_shape (const unsigned int point_no, const unsigned int shape_nr)
Tensor< 1, dim > derivative (const unsigned int qpoint, const unsigned int shape_nr) const
Tensor< 1, dim > & derivative (const unsigned int qpoint, const unsigned int shape_nr)
Tensor< 1, dim > support_derivative (const unsigned int point_no, const unsigned int shape_nr) const
Tensor< 1, dim > & support_derivative (const unsigned int point_no, const unsigned int shape_nr)
virtual unsigned int memory_consumption () const

Public Attributes

std::vector< doubleshape_values
std::vector< Tensor< 1,
dim > > 
shape_derivatives
std::vector< Tensor< 2,
dim > > 
covariant
std::vector< Tensor< 2,
dim > > 
contravariant
std::vector< doublesupport_values
std::vector< Tensor< 1,
dim > > 
support_derivatives
std::vector
< std::vector
< Tensor< 1, dim > > > 
unit_tangentials
std::vector
< std::vector
< Tensor< 1, dim > > > 
aux
std::vector< Point
< dim > > 
mapping_support_points
std::vector< Point
< dim > > 
mapping_generalized_support_points
Triangulation< dim >
::cell_iterator 
cell_of_current_support_points
bool is_mapping_q1_data
unsigned int n_shape_functions


Detailed Description

template<int dim>
class MyMappingQ1< dim >::InternalData

Storage for internal data of d-linear transformation.

Constructor & Destructor Documentation

template<int dim>
MyMappingQ1< dim >::InternalData::InternalData ( const unsigned int  n_shape_functions  )  [inline]

Constructor. Pass the number of shape functions.


Member Function Documentation

template<int dim>
double MyMappingQ1< dim >::InternalData::shape ( const unsigned int  qpoint,
const unsigned int  shape_nr 
) const [inline]

Shape function at quadrature point. Shape functions are in tensor product order, so vertices must be reordered to obtain transformation.

template<int dim>
double & MyMappingQ1< dim >::InternalData::shape ( const unsigned int  qpoint,
const unsigned int  shape_nr 
) [inline]

Shape function at quadrature point. See above.

template<int dim>
double MyMappingQ1< dim >::InternalData::support_shape ( const unsigned int  point_no,
const unsigned int  shape_nr 
) const [inline]

Shape function at support point. Shape functions are in tensor product order, so vertices must be reordered to obtain transformation.

template<int dim>
double & MyMappingQ1< dim >::InternalData::support_shape ( const unsigned int  point_no,
const unsigned int  shape_nr 
) [inline]

Shape function at support point. See above.

template<int dim>
Tensor< 1, dim > MyMappingQ1< dim >::InternalData::derivative ( const unsigned int  qpoint,
const unsigned int  shape_nr 
) const [inline]

Gradient of shape function in quadrature point. See above.

template<int dim>
Tensor< 1, dim > & MyMappingQ1< dim >::InternalData::derivative ( const unsigned int  qpoint,
const unsigned int  shape_nr 
) [inline]

Gradient of shape function in quadrature point. See above.

template<int dim>
Tensor< 1, dim > MyMappingQ1< dim >::InternalData::support_derivative ( const unsigned int  point_no,
const unsigned int  shape_nr 
) const [inline]

Gradient of shape function in support point. See above.

template<int dim>
Tensor< 1, dim > & MyMappingQ1< dim >::InternalData::support_derivative ( const unsigned int  point_no,
const unsigned int  shape_nr 
) [inline]

Gradient of shape function in support point. See above.

template<int dim>
unsigned int MyMappingQ1< dim >::InternalData::memory_consumption (  )  const [inline, virtual]

Return an estimate (in bytes) or the memory consumption of this object.

Reimplemented from Mapping< dim >::InternalDataBase.


Member Data Documentation

template<int dim>
std::vector<double> MyMappingQ1< dim >::InternalData::shape_values

Values of shape functions. Access by function shape.

Computed once.

template<int dim>
std::vector<Tensor<1,dim> > MyMappingQ1< dim >::InternalData::shape_derivatives

Values of shape function derivatives. Access by function derivative.

Computed once.

template<int dim>
std::vector<Tensor<2,dim> > MyMappingQ1< dim >::InternalData::covariant

Tensors of covariant transformation at each of the quadrature points. The matrix stored is the inverse of the Jacobian matrix, which itself is stored in the contravariant field of this structure.

Computed on each cell.

template<int dim>
std::vector<Tensor<2,dim> > MyMappingQ1< dim >::InternalData::contravariant

Tensors of contravariant transformation at each of the quadrature points. The contravariant matrix is the Jacobian of the transformation, i.e. $J_{ij}=dx_i/d x_j$.

Computed on each cell.

template<int dim>
std::vector<double> MyMappingQ1< dim >::InternalData::support_values

Values of shape functions at support points Access by function support_shape.

Computed once.

template<int dim>
std::vector<Tensor<1,dim> > MyMappingQ1< dim >::InternalData::support_derivatives

Values of shape functions derivatives at support points Access by function support_derivative.

Computed once.

template<int dim>
std::vector<std::vector<Tensor<1,dim> > > MyMappingQ1< dim >::InternalData::unit_tangentials

Unit tangential vectors. Used for the computation of boundary forms and normal vectors.

Filled once.

template<int dim>
std::vector<std::vector<Tensor<1,dim> > > MyMappingQ1< dim >::InternalData::aux

Auxiliary vectors for internal use.

template<int dim>
std::vector<Point<dim> > MyMappingQ1< dim >::InternalData::mapping_support_points

Stores the support points of the mapping shape functions on the cell_of_current_support_points.

template<int dim>
std::vector<Point<dim> > MyMappingQ1< dim >::InternalData::mapping_generalized_support_points

Stores the generalized support points of the mapping shape functions on the cell_of_current_support_points.

template<int dim>
Triangulation<dim>::cell_iterator MyMappingQ1< dim >::InternalData::cell_of_current_support_points

Stores the cell of which the mapping_support_points are stored.

template<int dim>
bool MyMappingQ1< dim >::InternalData::is_mapping_q1_data

Default value of this flag is true. If *this is an object of a derived class, this flag is set to false.

template<int dim>
unsigned int MyMappingQ1< dim >::InternalData::n_shape_functions

Number of shape functions. If this is a Q1 mapping, then it is simply the number of vertices per cell. However, since also derived classes use this class (e.g. the Mapping_Q() class), the number of shape functions may also be different.


The documentation for this class was generated from the following files:
Generated on Thu Oct 9 14:52:46 2008 for Additional Finite Elements for deal.II by  doxygen 1.5.3