00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef __QUAD4_H
00035 #define __QUAD4_H
00036
00037 #include "OFELI_Config.h"
00038 #include "FEShape.h"
00039
00040 namespace OFELI {
00041
00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00047 struct ErrorInQuad4 {
00048 void Message(const char *file, size_t line, int code, int p1) const;
00049 };
00050 #endif
00051
00063 class Quad4 : public FEShape
00064 {
00065
00066 public :
00067
00069 Quad4();
00070
00072 Quad4(const Element *element);
00073
00075 Quad4(const Side *side);
00076
00078 ~Quad4()
00079 {
00080 #ifdef _OFELI_DEBUG
00081 std::clog << "An instance of class Quad4 is destructed.\n";
00082 std::clog << "File : " << __FILE__ << ", Line : " << __LINE__ << endl;
00083 #endif
00084 }
00085
00091 void setLocal(const Point<double> &s);
00092
00095 Point<double> DSh(size_t i) const { return _dsh[i-1]; }
00096
00099 double getDet() const { return _det; }
00100
00102 double getMaxEdgeLength() const;
00103
00105 double getMinEdgeLength() const;
00106
00114 double check() const;
00115
00116 private :
00117 ErrorInQuad4 _e;
00118 const Element *_el;
00119 const Side *_sd;
00120 };
00121
00122 }
00123
00124 #endif