libMesh
cell_pyramid13.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2012 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_PYRAMID13_H
21 #define LIBMESH_CELL_PYRAMID13_H
22 
23 // Local includes
24 #include "libmesh/cell_pyramid.h"
25 
26 namespace libMesh
27 {
28 
66 class Pyramid13 libmesh_final : public Pyramid
67 {
68 public:
69 
73  explicit
75  Pyramid(Pyramid13::n_nodes(), p, _nodelinks_data)
76  {}
77 
81  virtual unsigned int n_nodes() const libmesh_override { return 13; }
82 
86  virtual ElemType type () const libmesh_override { return PYRAMID13; }
87 
92  virtual unsigned int n_sub_elem() const libmesh_override { return 1; }
93 
97  virtual bool is_vertex(const unsigned int i) const libmesh_override;
98 
102  virtual bool is_edge(const unsigned int i) const libmesh_override;
103 
107  virtual bool is_face(const unsigned int i) const libmesh_override;
108 
113  virtual bool is_node_on_side(const unsigned int n,
114  const unsigned int s) const libmesh_override;
115 
120  virtual bool is_node_on_edge(const unsigned int n,
121  const unsigned int e) const libmesh_override;
122 
127  virtual bool has_affine_map () const libmesh_override;
128 
132  virtual Order default_order() const libmesh_override { return SECOND; }
133 
137  virtual unsigned int which_node_am_i(unsigned int side,
138  unsigned int side_node) const libmesh_override;
139 
144  virtual UniquePtr<Elem> build_side_ptr (const unsigned int i,
145  bool proxy) libmesh_override;
146 
151  virtual UniquePtr<Elem> build_edge_ptr (const unsigned int i) libmesh_override;
152 
153  virtual void connectivity(const unsigned int sc,
154  const IOPackage iop,
155  std::vector<dof_id_type> & conn) const libmesh_override;
156 
160  virtual unsigned int n_second_order_adjacent_vertices (const unsigned int n) const libmesh_override;
161 
166  virtual unsigned short int second_order_adjacent_vertex (const unsigned int n,
167  const unsigned int v) const libmesh_override;
168 
173  static const unsigned int side_nodes_map[5][8];
174 
179  static const unsigned int edge_nodes_map[8][3];
180 
184  virtual Real volume () const libmesh_override;
185 
186 protected:
187 
191  Node * _nodelinks_data[13];
192 
193 
194 
195 #ifdef LIBMESH_ENABLE_AMR
196 
200  virtual float embedding_matrix (const unsigned int,
201  const unsigned int,
202  const unsigned int) const libmesh_override
203  { libmesh_not_implemented(); return 0.; }
204 
205  LIBMESH_ENABLE_TOPOLOGY_CACHES;
206 
207 #endif // LIBMESH_ENABLE_AMR
208 
209 };
210 
211 } // namespace libMesh
212 
213 
214 #endif // LIBMESH_CELL_PYRAMID13_H
The Pyramid is an element in 3D with 5 sides.
Definition: cell_pyramid.h:39
A Node is like a Point, but with more information.
Definition: node.h:52
ElemType
Defines an enum for geometric element types.
unsigned short int side
Definition: xdr_io.C:49
This is the base class from which all geometric element types are derived.
Definition: elem.h:89
const class libmesh_nullptr_t libmesh_nullptr
The libMesh namespace provides an interface to certain functionality in the library.
std::unique_ptr< T > UniquePtr
Definition: auto_ptr.h:46
virtual unsigned int n_nodes() const libmesh_override
virtual float embedding_matrix(const unsigned int, const unsigned int, const unsigned int) const libmesh_override
Matrix used to create the elements children.
const dof_id_type n_nodes
Definition: tecplot_io.C:67
Pyramid13(Elem *p=libmesh_nullptr)
Constructor.
virtual ElemType type() const libmesh_override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Order default_order() const libmesh_override
Order
defines an enum for polynomial orders.
Definition: enum_order.h:32
IOPackage
libMesh interfaces with several different software packages for the purposes of creating, reading, and writing mesh files.
virtual unsigned int n_sub_elem() const libmesh_override
FIXME: we don&#39;t yet have a refinement pattern for pyramids...