QuadratureFormulaQ1Hexahedron Class Reference

#include <QuadratureFormula.hpp>

Inheritance diagram for QuadratureFormulaQ1Hexahedron:

Inheritance graph
[legend]
Collaboration diagram for QuadratureFormulaQ1Hexahedron:

Collaboration graph
[legend]

List of all members.

Public Types

enum  { numberOfQuadraturePoints = 8 }

Public Member Functions

const TinyVector< 3 > & operator[] (const size_t &i) const
const TinyVector
< numberOfQuadraturePoints,
TinyVector< 3 > > & 
vertices () const
size_t numberOfVertices () const
real_t weight (const size_t &i) const
 QuadratureFormulaQ1Hexahedron ()

Static Public Member Functions

static
QuadratureFormulaQ1Hexahedron
instance ()
static void create ()
static void destroy ()

Static Protected Attributes

static
QuadratureFormulaQ1Hexahedron
__pInstance

Private Member Functions

void __setQuadratureVertices ()

Private Attributes

TinyVector
< numberOfQuadraturePoints,
TinyVector< 3 > > 
__integrationVertices
TinyVector
< numberOfQuadraturePoints,
real_t > 
__weight


Detailed Description

Definition at line 395 of file QuadratureFormula.hpp.


Member Enumeration Documentation

anonymous enum

Enumerator:
numberOfQuadraturePoints 

Definition at line 399 of file QuadratureFormula.hpp.

00399        {
00400     numberOfQuadraturePoints = 8
00401   };


Constructor & Destructor Documentation

QuadratureFormulaQ1Hexahedron::QuadratureFormulaQ1Hexahedron (  )  [inline]

Definition at line 429 of file QuadratureFormula.hpp.

References __setQuadratureVertices().

00430   {
00431     this->__setQuadratureVertices();
00432   }

Here is the call graph for this function:


Member Function Documentation

const TinyVector<3>& QuadratureFormulaQ1Hexahedron::operator[] ( const size_t &  i  )  const [inline]

Definition at line 409 of file QuadratureFormula.hpp.

References __integrationVertices.

00410   {
00411     return __integrationVertices[i];
00412   }

const TinyVector<numberOfQuadraturePoints,TinyVector<3> >& QuadratureFormulaQ1Hexahedron::vertices (  )  const [inline]

size_t QuadratureFormulaQ1Hexahedron::numberOfVertices (  )  const [inline]

Definition at line 419 of file QuadratureFormula.hpp.

References numberOfQuadraturePoints.

00420   {
00421     return numberOfQuadraturePoints;
00422   }

real_t QuadratureFormulaQ1Hexahedron::weight ( const size_t &  i  )  const [inline]

Definition at line 424 of file QuadratureFormula.hpp.

References __weight.

00425   {
00426     return __weight[i];
00427   }

void QuadratureFormulaQ1Hexahedron::__setQuadratureVertices (  )  [inline, private]

Definition at line 435 of file QuadratureFormula.hpp.

References __integrationVertices, __weight, and numberOfQuadraturePoints.

Referenced by QuadratureFormulaQ1Hexahedron().

00436   {
00437     __weight = 1./numberOfQuadraturePoints;
00438 
00439     TinyVector<2, real_t> X;
00440     
00441     X[0] = 0.5 - std::sqrt(3.)/6.;
00442     X[1] = 0.5 + std::sqrt(3.)/6.;
00443 
00444     for (size_t i=0; i<numberOfQuadraturePoints; ++i) {
00445       __integrationVertices[i][0] = X[i%2];
00446       __integrationVertices[i][1] = X[(i/2)%2];
00447       __integrationVertices[i][2] = X[(i/4)%2];
00448     }
00449   }

static QuadratureFormulaQ1Hexahedron & StaticBase< QuadratureFormulaQ1Hexahedron >::instance (  )  [inline, static, inherited]

Access to auto instanciated static;

Returns:
*__pInstance

Definition at line 46 of file StaticBase.hpp.

Referenced by MeshOfHexahedra::buildLocalizationTools(), ConformTransformationQ1HexahedronJacobian::ConformTransformationQ1HexahedronJacobian(), and Q1HexahedronFiniteElement::integrationVertices().

00047   {
00048     return *__pInstance;
00049   }

static void StaticBase< QuadratureFormulaQ1Hexahedron >::create (  )  [inline, static, inherited]

Creates __pInstance in Embedding class.

Definition at line 55 of file StaticBase.hpp.

Referenced by ThreadStaticCenter::ThreadStaticCenter().

00056   {
00057     __pInstance = new EmbeddingClass();
00058   }

static void StaticBase< QuadratureFormulaQ1Hexahedron >::destroy (  )  [inline, static, inherited]

Destroyes __autoInstanciated in Embedding class.

Definition at line 64 of file StaticBase.hpp.

Referenced by ThreadStaticCenter::~ThreadStaticCenter().

00065   {
00066     delete __pInstance;
00067   }


Member Data Documentation

Definition at line 404 of file QuadratureFormula.hpp.

Referenced by __setQuadratureVertices(), operator[](), and vertices().

TinyVector<numberOfQuadraturePoints, real_t> QuadratureFormulaQ1Hexahedron::__weight [private]

Definition at line 406 of file QuadratureFormula.hpp.

Referenced by __setQuadratureVertices(), and weight().

The static variable

Definition at line 37 of file StaticBase.hpp.


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

Generated on Wed Nov 19 00:12:12 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6