hp2D::ShapeFunction2D< F > Class Template Reference

Collecting the data of a 2D shape function in one class. More...

#include <shapeFunction2d.hh>

Public Member Functions

const Real * abscissas (uint i) const
 Returns the abscissas of the quadrature rule and the shape functions. More...
 
void abscissas (uint i, const Real *value)
 Sets the abscissas of the quadrature rule and the shape functions. More...
 
uint n (uint i) const
 Returns number of shape functions. More...
 
void n (uint i, uint value)
 Sets the number of shape functions. More...
 
uint nq (uint i) const
 Returns number of quadratur points. More...
 
void nq (uint i, uint value)
 Sets the number of quadratur points. More...
 
 ShapeFunction2D ()
 
 ShapeFunction2D (const ShapeFunction2D< F > &s)
 
const concepts::TMatrixBase< F > * T () const
 Returns the T matrix. More...
 
void T (const concepts::TMatrixBase< F > *T)
 Sets the T matrix. More...
 
const concepts::TColumnTensor< bool, 2 > * usedIdx () const
 Returns the used indices (local degrees of freedom) More...
 
void usedIdx (const concepts::TColumnTensor< bool, 2 > *usedIdx)
 Sets the used indices (ldof) More...
 
const Real * values (uint i) const
 Returns the values of the shape functions. More...
 
void values (uint i, const Real *value)
 Sets the values of the shape functions. More...
 
const Real * weights (uint i) const
 Returns the weights of the quadrature rule. More...
 
void weights (uint i, const Real *value)
 Sets the weights of the quadrature rule. More...
 

Private Attributes

const Real * abscissas_ [2]
 
int n_ [2]
 
int nq_ [2]
 
const concepts::TMatrixBase< F > * T_
 
const concepts::TColumnTensor< bool, 2 > * usedIdx_
 
const F * values_ [2]
 
const Real * weights_ [2]
 

Detailed Description

template<typename F>
class hp2D::ShapeFunction2D< F >

Collecting the data of a 2D shape function in one class.

This class just collects all the data for a 2D shape function: it just holds pointers to the real data.

Author
Kersten Schmidt, 2003

Definition at line 29 of file shapeFunction2d.hh.

Constructor & Destructor Documentation

◆ ShapeFunction2D() [1/2]

template<typename F >
hp2D::ShapeFunction2D< F >::ShapeFunction2D ( )

◆ ShapeFunction2D() [2/2]

template<typename F >
hp2D::ShapeFunction2D< F >::ShapeFunction2D ( const ShapeFunction2D< F > &  s)

Member Function Documentation

◆ abscissas() [1/2]

template<typename F >
const Real* hp2D::ShapeFunction2D< F >::abscissas ( uint  i) const
inline

Returns the abscissas of the quadrature rule and the shape functions.

Definition at line 68 of file shapeFunction2d.hh.

◆ abscissas() [2/2]

template<typename F >
void hp2D::ShapeFunction2D< F >::abscissas ( uint  i,
const Real *  value 
)
inline

Sets the abscissas of the quadrature rule and the shape functions.

Definition at line 73 of file shapeFunction2d.hh.

◆ n() [1/2]

template<typename F >
uint hp2D::ShapeFunction2D< F >::n ( uint  i) const
inline

Returns number of shape functions.

Definition at line 35 of file shapeFunction2d.hh.

◆ n() [2/2]

template<typename F >
void hp2D::ShapeFunction2D< F >::n ( uint  i,
uint  value 
)
inline

Sets the number of shape functions.

Definition at line 40 of file shapeFunction2d.hh.

◆ nq() [1/2]

template<typename F >
uint hp2D::ShapeFunction2D< F >::nq ( uint  i) const
inline

Returns number of quadratur points.

Definition at line 46 of file shapeFunction2d.hh.

◆ nq() [2/2]

template<typename F >
void hp2D::ShapeFunction2D< F >::nq ( uint  i,
uint  value 
)
inline

Sets the number of quadratur points.

Definition at line 51 of file shapeFunction2d.hh.

◆ T() [1/2]

template<typename F >
const concepts::TMatrixBase<F>* hp2D::ShapeFunction2D< F >::T ( ) const
inline

Returns the T matrix.

Definition at line 89 of file shapeFunction2d.hh.

◆ T() [2/2]

template<typename F >
void hp2D::ShapeFunction2D< F >::T ( const concepts::TMatrixBase< F > *  T)
inline

Sets the T matrix.

Definition at line 91 of file shapeFunction2d.hh.

◆ usedIdx() [1/2]

template<typename F >
const concepts::TColumnTensor<bool, 2>* hp2D::ShapeFunction2D< F >::usedIdx ( ) const
inline

Returns the used indices (local degrees of freedom)

Definition at line 93 of file shapeFunction2d.hh.

◆ usedIdx() [2/2]

template<typename F >
void hp2D::ShapeFunction2D< F >::usedIdx ( const concepts::TColumnTensor< bool, 2 > *  usedIdx)
inline

Sets the used indices (ldof)

Definition at line 95 of file shapeFunction2d.hh.

◆ values() [1/2]

template<typename F >
const Real* hp2D::ShapeFunction2D< F >::values ( uint  i) const
inline

Returns the values of the shape functions.

Definition at line 57 of file shapeFunction2d.hh.

◆ values() [2/2]

template<typename F >
void hp2D::ShapeFunction2D< F >::values ( uint  i,
const Real *  value 
)
inline

Sets the values of the shape functions.

Definition at line 62 of file shapeFunction2d.hh.

◆ weights() [1/2]

template<typename F >
const Real* hp2D::ShapeFunction2D< F >::weights ( uint  i) const
inline

Returns the weights of the quadrature rule.

Definition at line 79 of file shapeFunction2d.hh.

◆ weights() [2/2]

template<typename F >
void hp2D::ShapeFunction2D< F >::weights ( uint  i,
const Real *  value 
)
inline

Sets the weights of the quadrature rule.

Definition at line 84 of file shapeFunction2d.hh.

Member Data Documentation

◆ abscissas_

template<typename F >
const Real* hp2D::ShapeFunction2D< F >::abscissas_[2]
private

Definition at line 100 of file shapeFunction2d.hh.

◆ n_

template<typename F >
int hp2D::ShapeFunction2D< F >::n_[2]
private

Definition at line 98 of file shapeFunction2d.hh.

◆ nq_

template<typename F >
int hp2D::ShapeFunction2D< F >::nq_[2]
private

Definition at line 98 of file shapeFunction2d.hh.

◆ T_

template<typename F >
const concepts::TMatrixBase<F>* hp2D::ShapeFunction2D< F >::T_
private

Definition at line 101 of file shapeFunction2d.hh.

◆ usedIdx_

template<typename F >
const concepts::TColumnTensor<bool, 2>* hp2D::ShapeFunction2D< F >::usedIdx_
private

Definition at line 102 of file shapeFunction2d.hh.

◆ values_

template<typename F >
const F* hp2D::ShapeFunction2D< F >::values_[2]
private

Definition at line 99 of file shapeFunction2d.hh.

◆ weights_

template<typename F >
const Real * hp2D::ShapeFunction2D< F >::weights_[2]
private

Definition at line 100 of file shapeFunction2d.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich