face_inf_quad6.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_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 00055 // ------------------------------------------------------------ 00056 // InfQuad6 class definition 00057 class InfQuad6 : public InfQuad 00058 { 00059 public: 00060 00064 explicit 00065 InfQuad6 (Elem* p=NULL): 00066 InfQuad(InfQuad6::n_nodes(), p, _nodelinks_data) {} 00067 00071 unsigned int n_nodes() const { return 6; } 00072 00076 ElemType type () const { return INFQUAD6; } 00077 00081 unsigned int n_sub_elem() const { return 2; } 00082 00086 virtual bool is_vertex(const unsigned int i) const; 00087 00091 virtual bool is_edge(const unsigned int i) const; 00092 00096 virtual bool is_face(const unsigned int i) const; 00097 00098 /* 00099 * @returns true iff the specified (local) node number is on the 00100 * specified side 00101 */ 00102 virtual bool is_node_on_side(const unsigned int n, 00103 const unsigned int s) const; 00104 00105 /* 00106 * @returns true iff the specified (local) node number is on the 00107 * specified edge (== is_node_on_side in 2D) 00108 */ 00109 virtual bool is_node_on_edge(const unsigned int n, 00110 const unsigned int e) const 00111 { return this->is_node_on_side(n,e); } 00112 00113 00117 Order default_order() const { return SECOND; } 00118 00123 AutoPtr<Elem> build_side (const unsigned int i, 00124 bool proxy) const; 00125 00126 virtual void connectivity(const unsigned int sf, 00127 const IOPackage iop, 00128 std::vector<dof_id_type>& conn) const; 00129 00133 unsigned int n_second_order_adjacent_vertices (const unsigned int) const 00134 { return 2; } 00135 00141 unsigned short int second_order_adjacent_vertex (const unsigned int n, 00142 const unsigned int v) const; 00143 00153 virtual std::pair<unsigned short int, unsigned short int> 00154 second_order_child_vertex (const unsigned int n) const; 00155 00160 static const unsigned int side_nodes_map[3][3]; 00161 00162 00163 00164 protected: 00165 00169 Node* _nodelinks_data[6]; 00170 00171 00172 00173 #ifdef LIBMESH_ENABLE_AMR 00174 00178 float embedding_matrix (const unsigned int i, 00179 const unsigned int j, 00180 const unsigned int k) const 00181 { return _embedding_matrix[i][j][k]; } 00182 00187 static const float _embedding_matrix[2][6][6]; 00188 00189 #endif 00190 00191 00192 private: 00193 00198 static const unsigned short int _second_order_adjacent_vertices[2][2]; 00199 00200 }; 00201 00202 00203 } // namespace libMesh 00204 00205 #endif // ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS 00206 00207 #endif // LIBMESH_FACE_INF_QUAD6_H
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:46 UTC
Hosted By: