face_quad.h
Go to the documentation of this file.00001 // The libMesh Finite Element Library. 00002 // Copyright (C) 2002-2012 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_QUAD_H 00021 #define LIBMESH_FACE_QUAD_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 00053 // ------------------------------------------------------------ 00054 // Quad class definition 00055 class Quad : public Face 00056 { 00057 public: 00058 00063 Quad (const unsigned int nn, Elem* p, Node** nodelinkdata) : 00064 Face(nn, Quad::n_sides(), p, _elemlinks_data, nodelinkdata) {} 00065 00070 unsigned int n_nodes() const { return 4; } 00071 00075 unsigned int n_sides() const { return 4; } 00076 00080 unsigned int n_vertices() const { return 4; } 00081 00085 unsigned int n_edges() const { return 4; } 00086 00090 unsigned int n_children() const { return 4; } 00091 00092 /* 00093 * @returns true iff the specified child is on the 00094 * specified side 00095 */ 00096 virtual bool is_child_on_side(const unsigned int c, 00097 const unsigned int s) const; 00098 00103 virtual unsigned int opposite_side(const unsigned int s) const; 00104 00110 virtual unsigned int opposite_node(const unsigned int n, 00111 const unsigned int s) const; 00112 00118 dof_id_type key (const unsigned int s) const; 00119 00124 AutoPtr<Elem> side (const unsigned int i) const; 00125 00130 Real quality (const ElemQuality q) const; 00131 00137 std::pair<Real, Real> qual_bounds (const ElemQuality q) const; 00138 00139 protected: 00140 00144 Elem* _elemlinks_data[5+(LIBMESH_DIM>2)]; 00145 00152 static const unsigned short int _second_order_adjacent_vertices[4][2]; 00153 00157 static const unsigned short int _second_order_vertex_child_number[9]; 00158 00162 static const unsigned short int _second_order_vertex_child_index[9]; 00163 }; 00164 00165 00166 // ------------------------------------------------------------ 00167 // Quad class member functions 00168 00169 00170 } // namespace libMesh 00171 00172 #endif // LIBMESH_FACE_QUAD_H
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:46 UTC
Hosted By: