$extrastylesheet
00001 // The libMesh Finite Element Library. 00002 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner 00003 00004 // This library is free software; you can redistribute it and/or 00005 // modify it under the terms of the GNU Lesser General Public 00006 // License as published by the Free Software Foundation; either 00007 // version 2.1 of the License, or (at your option) any later version. 00008 00009 // This library is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 // Lesser General Public License for more details. 00013 00014 // You should have received a copy of the GNU Lesser General Public 00015 // License along with this library; if not, write to the Free Software 00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 00018 00019 00020 #ifndef LIBMESH_FACE_TRI_H 00021 #define LIBMESH_FACE_TRI_H 00022 00023 00024 // Local includes 00025 #include "libmesh/libmesh_common.h" 00026 #include "libmesh/face.h" 00027 00028 // C++ includes 00029 00030 namespace libMesh 00031 { 00032 00033 00034 // Forward declarations 00035 00036 00037 00038 00039 00054 class Tri : public Face 00055 { 00056 public: 00057 00062 Tri (const unsigned int nn, 00063 Elem* p, 00064 Node** nodelinkdata) : 00065 Face(nn, Tri::n_sides(), p, _elemlinks_data, nodelinkdata) {} 00066 00071 unsigned int n_nodes() const { return 3; } 00072 00076 unsigned int n_sides() const { return 3; } 00077 00081 unsigned int n_vertices() const { return 3; } 00082 00086 unsigned int n_edges() const { return 3; } 00087 00091 unsigned int n_children() const { return 4; } 00092 00093 /* 00094 * @returns true iff the specified child is on the 00095 * specified side 00096 */ 00097 virtual bool is_child_on_side(const unsigned int c, 00098 const unsigned int s) const; 00099 00105 dof_id_type key (const unsigned int s) const; 00106 00111 UniquePtr<Elem> side (const unsigned int i) const; 00112 00117 Real quality (const ElemQuality q) const; 00118 00124 std::pair<Real, Real> qual_bounds (const ElemQuality q) const; 00125 00126 00127 protected: 00128 00132 Elem* _elemlinks_data[4+(LIBMESH_DIM>2)]; 00133 }; 00134 00135 // ------------------------------------------------------------ 00136 // Tri class member functions 00137 00138 } // namespace libMesh 00139 00140 #endif // LIBMESH_FACE_TRI_H