cell_pyramid14.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 
20 #ifndef LIBMESH_CELL_PYRAMID14_H
21 #define LIBMESH_CELL_PYRAMID14_H
22 
23 // Local includes
24 #include "libmesh/cell_pyramid.h"
25 
26 // C++ includes
27 #include <cstddef>
28 
29 namespace libMesh
30 {
31 
32 
33 
34 
73 // ------------------------------------------------------------
74 // Pyramid class definition
75 class Pyramid14 : public Pyramid
76 {
77 public:
78 
82  explicit
83  Pyramid14 (Elem* p=NULL);
84 
88  virtual unsigned int n_nodes() const { return 14; }
89 
93  ElemType type () const { return PYRAMID14; }
94 
99  unsigned int n_sub_elem() const { return 1; }
100 
104  virtual bool is_vertex(const unsigned int i) const;
105 
109  virtual bool is_edge(const unsigned int i) const;
110 
114  virtual bool is_face(const unsigned int i) const;
115 
116  /*
117  * @returns true iff the specified (local) node number is on the
118  * specified side
119  */
120  virtual bool is_node_on_side(const unsigned int n,
121  const unsigned int s) const;
122 
123  /*
124  * @returns true iff the specified (local) node number is on the
125  * specified edge
126  */
127  virtual bool is_node_on_edge(const unsigned int n,
128  const unsigned int e) const;
129 
130  /*
131  * @returns true iff the element map is definitely affine within
132  * numerical tolerances
133  */
134  virtual bool has_affine_map () const;
135 
139  Order default_order() const { return SECOND; }
140 
145  AutoPtr<Elem> build_side (const unsigned int i,
146  bool proxy) const;
147 
152  AutoPtr<Elem> build_edge (const unsigned int i) const;
153 
154  virtual void connectivity(const unsigned int sc,
155  const IOPackage iop,
156  std::vector<dof_id_type>& conn) const;
157 
161  virtual unsigned int n_second_order_adjacent_vertices (const unsigned int n) const;
162 
167  virtual unsigned short int second_order_adjacent_vertex (const unsigned int n,
168  const unsigned int v) const;
169 
174  static const unsigned int side_nodes_map[5][9];
175 
180  static const unsigned int edge_nodes_map[8][3];
181 
182 protected:
183 
188 
189 
190 
191 #ifdef LIBMESH_ENABLE_AMR
192 
196  float embedding_matrix (const unsigned int,
197  const unsigned int,
198  const unsigned int) const
199  { libmesh_error(); return 0.; }
200 
201 #endif
202 };
203 
204 
205 
206 // ------------------------------------------------------------
207 // Pyramid14 class member functions
208 inline
210  Pyramid(Pyramid14::n_nodes(), p, _nodelinks_data)
211 {
212 }
213 
214 } // namespace libMesh
215 
216 
217 #endif // LIBMESH_CELL_PYRAMID14_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:04 UTC

Hosted By:
SourceForge.net Logo