cell_prism15.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_PRISM15_H
21 #define LIBMESH_CELL_PRISM15_H
22 
23 // Local includes
24 #include "libmesh/cell_prism.h"
25 
26 // C++ includes
27 #include <cstddef>
28 
29 namespace libMesh
30 {
31 
32 
33 
34 
72 // ------------------------------------------------------------
73 // Prism class definition
74 class Prism15 : public Prism
75 {
76 public:
77 
81  explicit
82  Prism15 (Elem* p=NULL);
83 
87  ElemType type () const { return PRISM15; }
88 
92  unsigned int n_nodes() const { return 15; }
93 
97  unsigned int n_sub_elem() const { return 1; }
98 
102  virtual bool is_vertex(const unsigned int i) const;
103 
107  virtual bool is_edge(const unsigned int i) const;
108 
112  virtual bool is_face(const unsigned int i) const;
113 
114  /*
115  * @returns true iff the specified (local) node number is on the
116  * specified side
117  */
118  virtual bool is_node_on_side(const unsigned int n,
119  const unsigned int s) const;
120 
121  /*
122  * @returns true iff the specified (local) node number is on the
123  * specified edge
124  */
125  virtual bool is_node_on_edge(const unsigned int n,
126  const unsigned int e) const;
127 
128  /*
129  * @returns true iff the element map is definitely affine within
130  * numerical tolerances
131  */
132  virtual bool has_affine_map () const;
133 
137  Order default_order() const { return SECOND; }
138 
143  AutoPtr<Elem> build_side (const unsigned int i,
144  bool proxy) const;
145 
150  AutoPtr<Elem> build_edge (const unsigned int i) const;
151 
152  virtual void connectivity(const unsigned int sc,
153  const IOPackage iop,
154  std::vector<dof_id_type>& conn) const;
158  unsigned int n_second_order_adjacent_vertices (const unsigned int) const
159  { return 2; }
160 
166  unsigned short int second_order_adjacent_vertex (const unsigned int n,
167  const unsigned int v) const;
168 
178  virtual std::pair<unsigned short int, unsigned short int>
179  second_order_child_vertex (const unsigned int n) const;
180 
185  static const unsigned int side_nodes_map[5][8];
186 
191  static const unsigned int edge_nodes_map[9][3];
192 
193 
194 protected:
195 
200 
201 
202 
203 #ifdef LIBMESH_ENABLE_AMR
204 
208  float embedding_matrix (const unsigned int,
209  const unsigned int,
210  const unsigned int) const
211  { libmesh_error(); return 0.; }
212 
213 #endif
214 
215 
216 };
217 
218 
219 
220 // ------------------------------------------------------------
221 // Prism15 class member functions
222 inline
224  Prism(Prism15::n_nodes(), p, _nodelinks_data)
225 {
226 }
227 
228 
229 } // namespace libMesh
230 
231 #endif // LIBMESH_CELL_PRISM15_H

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

Hosted By:
SourceForge.net Logo