ConformTransformationP1Tetrahedron Class Reference

#include <ConformTransformation.hpp>

Collaboration diagram for ConformTransformationP1Tetrahedron:

Collaboration graph
[legend]

List of all members.

Public Types

typedef
ConformTransformationP1Tetrahedron 
BoundaryConformTransformation

Public Member Functions

void dx (const TinyVector< 3, real_t > &X, TinyVector< 3, real_t > &__result) const
void dx (const real_t &x, const real_t &y, const real_t &z, TinyVector< 3, real_t > &__result) const
void dy (const TinyVector< 3, real_t > &X, TinyVector< 3, real_t > &__result) const
void dy (const real_t &x, const real_t &y, const real_t &z, TinyVector< 3, real_t > &__result) const
void dz (const TinyVector< 3, real_t > &X, TinyVector< 3, real_t > &__result) const
void dz (const real_t &x, const real_t &y, const real_t &z, TinyVector< 3, real_t > &__result) const
void value (const TinyVector< 3, real_t > &X, TinyVector< 3, real_t > &result) const
 computes the value at X (X is inside the reference element).
void value (const real_t &x, const real_t &y, const real_t &z, TinyVector< 3, real_t > &result) const
 computes the value at (x,y,z) ((x,y,z) is inside the reference element).
bool invertT (const TinyVector< 3, real_t > &X, TinyVector< 3, real_t > &Xhat) const
 Computes Xhat, the point which transformed is X.
bool invertT (const real_t &x, const real_t &y, const real_t &z, TinyVector< 3, real_t > &Xhat) const
 Computes Xhat, the point which transformed is (x,y,z).
real_t integrate (const ScalarFunctionBase &f) const
 ConformTransformationP1Tetrahedron (const Tetrahedron &T)

Private Attributes

const Tetrahedron__T
const TinyVector< 3, real_t > __b
TinyMatrix< 3, 3, real_t > __A
TinyMatrix< 3, 3, real_t > __A_1

Friends

class ConformTransformationP1TetrahedronJacobian


Detailed Description

Definition at line 788 of file ConformTransformation.hpp.


Member Typedef Documentation

Definition at line 792 of file ConformTransformation.hpp.


Constructor & Destructor Documentation

ConformTransformationP1Tetrahedron::ConformTransformationP1Tetrahedron ( const Tetrahedron T  )  [inline]

Definition at line 875 of file ConformTransformation.hpp.

References __A, and __A_1.

00876     : __T(T),
00877       __b(T(0))
00878   {
00879     for (size_t j=0; j<3; ++j) {
00880       for (size_t i=0; i<3; ++i) {
00881         __A(i,j) = T(j+1)[i]-T(0)[i];
00882       }
00883     }
00884 
00885     __A_1 = __A.invert();
00886   }


Member Function Documentation

void ConformTransformationP1Tetrahedron::dx ( const TinyVector< 3, real_t > &  X,
TinyVector< 3, real_t > &  __result 
) const [inline]

Definition at line 802 of file ConformTransformation.hpp.

00804   {
00805     dx(X[0], X[1], X[2], __result);
00806   }

void ConformTransformationP1Tetrahedron::dx ( const real_t &  x,
const real_t &  y,
const real_t &  z,
TinyVector< 3, real_t > &  __result 
) const [inline]

Definition at line 808 of file ConformTransformation.hpp.

References __A.

00810   {
00811     for (size_t i=0; i<3; ++i) __result[i] = __A(i,0);
00812   }

void ConformTransformationP1Tetrahedron::dy ( const TinyVector< 3, real_t > &  X,
TinyVector< 3, real_t > &  __result 
) const [inline]

Definition at line 814 of file ConformTransformation.hpp.

00816   {
00817     dy(X[0], X[1], X[2], __result);
00818   }

void ConformTransformationP1Tetrahedron::dy ( const real_t &  x,
const real_t &  y,
const real_t &  z,
TinyVector< 3, real_t > &  __result 
) const [inline]

Definition at line 820 of file ConformTransformation.hpp.

References __A.

00822   {
00823     for (size_t i=0; i<3; ++i) __result[i] = __A(i,1);
00824   }

void ConformTransformationP1Tetrahedron::dz ( const TinyVector< 3, real_t > &  X,
TinyVector< 3, real_t > &  __result 
) const [inline]

Definition at line 826 of file ConformTransformation.hpp.

00828   {
00829     dz(X[0], X[1], X[2], __result);
00830   }

void ConformTransformationP1Tetrahedron::dz ( const real_t &  x,
const real_t &  y,
const real_t &  z,
TinyVector< 3, real_t > &  __result 
) const [inline]

Definition at line 832 of file ConformTransformation.hpp.

References __A.

00834   {
00835     for (size_t i=0; i<3; ++i) __result[i] = __A(i,2);
00836   }

void ConformTransformationP1Tetrahedron::value ( const TinyVector< 3, real_t > &  X,
TinyVector< 3, real_t > &  result 
) const [inline]

computes the value at X (X is inside the reference element).

Definition at line 839 of file ConformTransformation.hpp.

References __A, and __b.

Referenced by MeshOfTetrahedra::buildLocalizationTools(), and value().

00841   {
00842     result = __A*X;
00843     result += __b;
00844   }

void ConformTransformationP1Tetrahedron::value ( const real_t &  x,
const real_t &  y,
const real_t &  z,
TinyVector< 3, real_t > &  result 
) const [inline]

computes the value at (x,y,z) ((x,y,z) is inside the reference element).

Definition at line 847 of file ConformTransformation.hpp.

References value().

00849   {
00850     TinyVector<3,real_t> X(x,y,z);
00851     value(X, result);
00852   }

Here is the call graph for this function:

bool ConformTransformationP1Tetrahedron::invertT ( const TinyVector< 3, real_t > &  X,
TinyVector< 3, real_t > &  Xhat 
) const [inline]

Computes Xhat, the point which transformed is X.

Definition at line 855 of file ConformTransformation.hpp.

References __A_1, and __b.

Referenced by invertT().

00857   {
00858     Xhat = __A_1*(X-__b);
00859     return true;
00860   }

bool ConformTransformationP1Tetrahedron::invertT ( const real_t &  x,
const real_t &  y,
const real_t &  z,
TinyVector< 3, real_t > &  Xhat 
) const [inline]

Computes Xhat, the point which transformed is (x,y,z).

Definition at line 863 of file ConformTransformation.hpp.

References invertT().

00865   {
00866     TinyVector<3,real_t> X(x,y,z);
00867     return invertT(X, Xhat);
00868   }

Here is the call graph for this function:

real_t ConformTransformationP1Tetrahedron::integrate ( const ScalarFunctionBase f  )  const

Computes the integrale of the function f on an element using the reference element

Definition at line 129 of file ConformTransformation.cpp.

References ErrorHandler::unexpected.

00130 {
00131   throw ErrorHandler(__FILE__,__LINE__,
00132                      "not implemented",
00133                      ErrorHandler::unexpected);
00134   return 0;
00135 }


Friends And Related Function Documentation

Definition at line 791 of file ConformTransformation.hpp.


Member Data Documentation

Definition at line 795 of file ConformTransformation.hpp.

Definition at line 797 of file ConformTransformation.hpp.

Referenced by invertT(), and value().

Definition at line 799 of file ConformTransformation.hpp.

Referenced by ConformTransformationP1Tetrahedron(), and invertT().


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

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