cell_prism15.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_CELL_PRISM15_H 00021 #define LIBMESH_CELL_PRISM15_H 00022 00023 // Local includes 00024 #include "libmesh/cell_prism.h" 00025 00026 // C++ includes 00027 #include <cstddef> 00028 00029 namespace libMesh 00030 { 00031 00032 00033 00034 00072 // ------------------------------------------------------------ 00073 // Prism class definition 00074 class Prism15 : public Prism 00075 { 00076 public: 00077 00081 explicit 00082 Prism15 (Elem* p=NULL); 00083 00087 ElemType type () const { return PRISM15; } 00088 00092 unsigned int n_nodes() const { return 15; } 00093 00097 unsigned int n_sub_elem() const { return 1; } 00098 00102 virtual bool is_vertex(const unsigned int i) const; 00103 00107 virtual bool is_edge(const unsigned int i) const; 00108 00112 virtual bool is_face(const unsigned int i) const; 00113 00114 /* 00115 * @returns true iff the specified (local) node number is on the 00116 * specified side 00117 */ 00118 virtual bool is_node_on_side(const unsigned int n, 00119 const unsigned int s) const; 00120 00121 /* 00122 * @returns true iff the specified (local) node number is on the 00123 * specified edge 00124 */ 00125 virtual bool is_node_on_edge(const unsigned int n, 00126 const unsigned int e) const; 00127 00128 /* 00129 * @returns true iff the element map is definitely affine within 00130 * numerical tolerances 00131 */ 00132 virtual bool has_affine_map () const; 00133 00137 Order default_order() const { return SECOND; } 00138 00143 AutoPtr<Elem> build_side (const unsigned int i, 00144 bool proxy) const; 00145 00150 AutoPtr<Elem> build_edge (const unsigned int i) const; 00151 00152 virtual void connectivity(const unsigned int sc, 00153 const IOPackage iop, 00154 std::vector<dof_id_type>& conn) const; 00158 unsigned int n_second_order_adjacent_vertices (const unsigned int) const 00159 { return 2; } 00160 00166 unsigned short int second_order_adjacent_vertex (const unsigned int n, 00167 const unsigned int v) const; 00168 00178 virtual std::pair<unsigned short int, unsigned short int> 00179 second_order_child_vertex (const unsigned int n) const; 00180 00185 static const unsigned int side_nodes_map[5][8]; 00186 00191 static const unsigned int edge_nodes_map[9][3]; 00192 00193 00194 protected: 00195 00199 Node* _nodelinks_data[15]; 00200 00201 00202 00203 #ifdef LIBMESH_ENABLE_AMR 00204 00208 float embedding_matrix (const unsigned int, 00209 const unsigned int, 00210 const unsigned int) const 00211 { libmesh_error(); return 0.; } 00212 00213 #endif 00214 00215 00216 }; 00217 00218 00219 00220 // ------------------------------------------------------------ 00221 // Prism15 class member functions 00222 inline 00223 Prism15::Prism15(Elem* p) : 00224 Prism(Prism15::n_nodes(), p, _nodelinks_data) 00225 { 00226 } 00227 00228 00229 } // namespace libMesh 00230 00231 #endif // LIBMESH_CELL_PRISM15_H 00232
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:45 UTC
Hosted By: