cell_tet10.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_TET10_H
21 #define LIBMESH_CELL_TET10_H
22 
23 // Local includes
24 #include "libmesh/cell_tet.h"
25 
26 // C++ includes
27 #include <cstddef>
28 
29 namespace libMesh
30 {
31 
32 
33 
34 
61 // ------------------------------------------------------------
62 // Tet10 class definition
63 class Tet10 : public Tet
64 {
65 public:
66 
70  explicit
71  Tet10 (Elem* p=NULL);
72 
76  ElemType type () const { return TET10; }
77 
81  unsigned int n_nodes() const { return 10; }
82 
86  unsigned int n_sub_elem() const { return 8; }
87 
91  virtual bool is_vertex(const unsigned int i) const;
92 
96  virtual bool is_edge(const unsigned int i) const;
97 
101  virtual bool is_face(const unsigned int i) const;
102 
103  /*
104  * @returns true iff the specified (local) node number is on the
105  * specified side
106  */
107  virtual bool is_node_on_side(const unsigned int n,
108  const unsigned int s) const;
109 
110  /*
111  * @returns true iff the specified (local) node number is on the
112  * specified edge
113  */
114  virtual bool is_node_on_edge(const unsigned int n,
115  const unsigned int e) const;
116 
117  /*
118  * @returns true iff the specified child is on the
119  * specified side
120  */
121  virtual bool is_child_on_side(const unsigned int c,
122  const unsigned int s) const;
123 
124  /*
125  * @returns true iff the element map is definitely affine within
126  * numerical tolerances
127  */
128  virtual bool has_affine_map () const;
129 
133  Order default_order() const { return SECOND; }
134 
139  AutoPtr<Elem> build_side (const unsigned int i,
140  bool proxy) const;
141 
146  AutoPtr<Elem> build_edge (const unsigned int i) const;
147 
148  virtual void connectivity(const unsigned int sc,
149  const IOPackage iop,
150  std::vector<dof_id_type>& conn) const;
151 
155  unsigned int n_second_order_adjacent_vertices (const unsigned int) const
156  { return 2; }
157 
163  unsigned short int second_order_adjacent_vertex (const unsigned int n,
164  const unsigned int v) const;
165 
175  virtual std::pair<unsigned short int, unsigned short int>
176  second_order_child_vertex (const unsigned int n) const;
177 
182  static const unsigned int side_nodes_map[4][6];
183 
188  static const unsigned int edge_nodes_map[6][3];
189 
190 protected:
191 
196 
197 
198 
199 #ifdef LIBMESH_ENABLE_AMR
200 
204  float embedding_matrix (const unsigned int i,
205  const unsigned int j,
206  const unsigned int k) const;
207 
212  static const float _embedding_matrix[8][10][10];
213 
214 
215 #endif
216 
217 
218 private:
219 
224  static const unsigned short int _second_order_adjacent_vertices[6][2];
225 
229  static const unsigned short int _second_order_vertex_child_number[10];
230 
234  static const unsigned short int _second_order_vertex_child_index[10];
235 };
236 
237 
238 
239 // ------------------------------------------------------------
240 // Tet10 class member functions
241 inline
243  Tet(Tet10::n_nodes(), p, _nodelinks_data)
244 {
245 }
246 
247 } // namespace libMesh
248 
249 
250 #endif // LIBMESH_CELL_TET10_H

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

Hosted By:
SourceForge.net Logo