00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <Q0HexahedronFiniteElement.hpp>
00021
00022 TinyVector<3, real_t> Q0HexahedronFiniteElement::__massCenter(0.5, 0.5, 0.5);
00023
00024 const size_t
00025 Q0HexahedronFiniteElement::
00026 facesDOF[Hexahedron::NumberOfFaces][1]
00027 = {{std::numeric_limits<size_t>::max()},
00028 {std::numeric_limits<size_t>::max()},
00029 {std::numeric_limits<size_t>::max()},
00030 {std::numeric_limits<size_t>::max()},
00031 {std::numeric_limits<size_t>::max()},
00032 {std::numeric_limits<size_t>::max()}};
00033
00034 real_t
00035 Q0HexahedronFiniteElement::W(const size_t& i, const TinyVector<3>& X) const
00036 {
00037 if (i>0) {
00038 throw ErrorHandler(__FILE__,__LINE__,
00039 "unexpected basis function number",
00040 ErrorHandler::unexpected);
00041 }
00042
00043 return 1;
00044 }
00045
00046 real_t
00047 Q0HexahedronFiniteElement::dxW(const size_t& i, const TinyVector<3>& X) const
00048 {
00049 if (i>0) {
00050 throw ErrorHandler(__FILE__,__LINE__,
00051 "unexpected basis function number",
00052 ErrorHandler::unexpected);
00053 }
00054
00055 return 0;
00056 }
00057
00058 real_t
00059 Q0HexahedronFiniteElement::dyW(const size_t& i, const TinyVector<3>& X) const
00060 {
00061 if (i>0) {
00062 throw ErrorHandler(__FILE__,__LINE__,
00063 "unexpected basis function number",
00064 ErrorHandler::unexpected);
00065 }
00066
00067 return 0;
00068 }
00069
00070 real_t
00071 Q0HexahedronFiniteElement::dzW(const size_t& i, const TinyVector<3>& X) const
00072 {
00073 if (i>0) {
00074 throw ErrorHandler(__FILE__,__LINE__,
00075 "unexpected basis function number",
00076 ErrorHandler::unexpected);
00077 }
00078
00079 return 0;
00080 }