$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_INF_QUAD6_H 00021 #define LIBMESH_FACE_INF_QUAD6_H 00022 00023 00024 #include "libmesh/libmesh_config.h" 00025 00026 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS 00027 00028 // Local includes 00029 #include "libmesh/face_inf_quad.h" 00030 00031 // C++ includes 00032 #include <cstddef> 00033 00034 namespace libMesh 00035 { 00036 00037 00038 00054 class InfQuad6 : public InfQuad 00055 { 00056 public: 00057 00061 explicit 00062 InfQuad6 (Elem* p=NULL): 00063 InfQuad(InfQuad6::n_nodes(), p, _nodelinks_data) {} 00064 00068 unsigned int n_nodes() const { return 6; } 00069 00073 ElemType type () const { return INFQUAD6; } 00074 00078 unsigned int n_sub_elem() const { return 2; } 00079 00083 virtual bool is_vertex(const unsigned int i) const; 00084 00088 virtual bool is_edge(const unsigned int i) const; 00089 00093 virtual bool is_face(const unsigned int i) const; 00094 00095 /* 00096 * @returns true iff the specified (local) node number is on the 00097 * specified side 00098 */ 00099 virtual bool is_node_on_side(const unsigned int n, 00100 const unsigned int s) const; 00101 00102 /* 00103 * @returns true iff the specified (local) node number is on the 00104 * specified edge (== is_node_on_side in 2D) 00105 */ 00106 virtual bool is_node_on_edge(const unsigned int n, 00107 const unsigned int e) const 00108 { return this->is_node_on_side(n,e); } 00109 00110 00114 Order default_order() const { return SECOND; } 00115 00120 UniquePtr<Elem> build_side (const unsigned int i, 00121 bool proxy) const; 00122 00123 virtual void connectivity(const unsigned int sf, 00124 const IOPackage iop, 00125 std::vector<dof_id_type>& conn) const; 00126 00130 unsigned int n_second_order_adjacent_vertices (const unsigned int) const 00131 { return 2; } 00132 00138 unsigned short int second_order_adjacent_vertex (const unsigned int n, 00139 const unsigned int v) const; 00140 00150 virtual std::pair<unsigned short int, unsigned short int> 00151 second_order_child_vertex (const unsigned int n) const; 00152 00157 static const unsigned int side_nodes_map[3][3]; 00158 00159 00160 00161 protected: 00162 00166 Node* _nodelinks_data[6]; 00167 00168 00169 00170 #ifdef LIBMESH_ENABLE_AMR 00171 00175 float embedding_matrix (const unsigned int i, 00176 const unsigned int j, 00177 const unsigned int k) const 00178 { return _embedding_matrix[i][j][k]; } 00179 00184 static const float _embedding_matrix[2][6][6]; 00185 00186 #endif 00187 00188 00189 private: 00190 00195 static const unsigned short int _second_order_adjacent_vertices[2][2]; 00196 00197 }; 00198 00199 00200 } // namespace libMesh 00201 00202 #endif // ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS 00203 00204 #endif // LIBMESH_FACE_INF_QUAD6_H