face_inf_quad6.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_FACE_INF_QUAD6_H
21 #define LIBMESH_FACE_INF_QUAD6_H
22 
23 
24 #include "libmesh/libmesh_config.h"
25 
26 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
27 
28 // Local includes
29 #include "libmesh/face_inf_quad.h"
30 
31 // C++ includes
32 #include <cstddef>
33 
34 namespace libMesh
35 {
36 
37 
38 
55 // ------------------------------------------------------------
56 // InfQuad6 class definition
57 class InfQuad6 : public InfQuad
58 {
59 public:
60 
64  explicit
65  InfQuad6 (Elem* p=NULL):
67 
71  unsigned int n_nodes() const { return 6; }
72 
76  ElemType type () const { return INFQUAD6; }
77 
81  unsigned int n_sub_elem() const { return 2; }
82 
86  virtual bool is_vertex(const unsigned int i) const;
87 
91  virtual bool is_edge(const unsigned int i) const;
92 
96  virtual bool is_face(const unsigned int i) const;
97 
98  /*
99  * @returns true iff the specified (local) node number is on the
100  * specified side
101  */
102  virtual bool is_node_on_side(const unsigned int n,
103  const unsigned int s) const;
104 
105  /*
106  * @returns true iff the specified (local) node number is on the
107  * specified edge (== is_node_on_side in 2D)
108  */
109  virtual bool is_node_on_edge(const unsigned int n,
110  const unsigned int e) const
111  { return this->is_node_on_side(n,e); }
112 
113 
117  Order default_order() const { return SECOND; }
118 
123  AutoPtr<Elem> build_side (const unsigned int i,
124  bool proxy) const;
125 
126  virtual void connectivity(const unsigned int sf,
127  const IOPackage iop,
128  std::vector<dof_id_type>& conn) const;
129 
133  unsigned int n_second_order_adjacent_vertices (const unsigned int) const
134  { return 2; }
135 
141  unsigned short int second_order_adjacent_vertex (const unsigned int n,
142  const unsigned int v) const;
143 
153  virtual std::pair<unsigned short int, unsigned short int>
154  second_order_child_vertex (const unsigned int n) const;
155 
160  static const unsigned int side_nodes_map[3][3];
161 
162 
163 
164 protected:
165 
170 
171 
172 
173 #ifdef LIBMESH_ENABLE_AMR
174 
178  float embedding_matrix (const unsigned int i,
179  const unsigned int j,
180  const unsigned int k) const
181  { return _embedding_matrix[i][j][k]; }
182 
187  static const float _embedding_matrix[2][6][6];
188 
189 #endif
190 
191 
192 private:
193 
198  static const unsigned short int _second_order_adjacent_vertices[2][2];
199 
200 };
201 
202 
203 } // namespace libMesh
204 
205 #endif // ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
206 
207 #endif // LIBMESH_FACE_INF_QUAD6_H

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

Hosted By:
SourceForge.net Logo