face_inf_quad6.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2018 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 namespace libMesh
32 {
33 
53 class InfQuad6 : public InfQuad
54 {
55 public:
56 
60  explicit
61  InfQuad6 (Elem * p=nullptr):
63 
64  InfQuad6 (InfQuad6 &&) = delete;
65  InfQuad6 (const InfQuad6 &) = delete;
66  InfQuad6 & operator= (const InfQuad6 &) = delete;
67  InfQuad6 & operator= (InfQuad6 &&) = delete;
68  virtual ~InfQuad6() = default;
69 
73  virtual unsigned int n_nodes() const override { return num_nodes; }
74 
78  virtual ElemType type () const override { return INFQUAD6; }
79 
83  virtual unsigned int n_sub_elem() const override { return 2; }
84 
88  virtual bool is_vertex(const unsigned int i) const override;
89 
93  virtual bool is_edge(const unsigned int i) const override;
94 
98  virtual bool is_face(const unsigned int i) const override;
99 
104  virtual bool is_node_on_side(const unsigned int n,
105  const unsigned int s) const override;
106 
107  virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
108 
113  virtual bool is_node_on_edge(const unsigned int n,
114  const unsigned int e) const override
115  { return this->is_node_on_side(n,e); }
116 
120  virtual Order default_order() const override;
121 
125  using Elem::key;
126 
135  virtual dof_id_type key (const unsigned int s) const override;
136 
140  virtual unsigned int which_node_am_i(unsigned int side,
141  unsigned int side_node) const override;
142 
147  virtual std::unique_ptr<Elem> build_side_ptr (const unsigned int i,
148  bool proxy) override;
149 
153  virtual void build_side_ptr (std::unique_ptr<Elem> & elem,
154  const unsigned int i) override;
155 
156  virtual void connectivity(const unsigned int sf,
157  const IOPackage iop,
158  std::vector<dof_id_type> & conn) const override;
159 
163  virtual unsigned int n_second_order_adjacent_vertices (const unsigned int) const override
164  { return 2; }
165 
172  virtual unsigned short int second_order_adjacent_vertex (const unsigned int n,
173  const unsigned int v) const override;
174 
180  virtual std::pair<unsigned short int, unsigned short int>
181  second_order_child_vertex (const unsigned int n) const override;
182 
186  static const int num_nodes = 6;
187  static const int num_sides = 3;
188  static const int num_children = 2;
189  static const int nodes_per_side = 3;
190 
195  static const unsigned int side_nodes_map[num_sides][nodes_per_side];
196 
197 
198 
199 protected:
200 
205 
206 
207 
208 #ifdef LIBMESH_ENABLE_AMR
209 
213  virtual float embedding_matrix (const unsigned int i,
214  const unsigned int j,
215  const unsigned int k) const override
216  { return _embedding_matrix[i][j][k]; }
217 
223 
225 
226 #endif // LIBMESH_ENABLE_AMR
227 
228 private:
229 
234  static const unsigned short int _second_order_adjacent_vertices[2][2];
235 };
236 
237 
238 } // namespace libMesh
239 
240 #endif // ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
241 
242 #endif // LIBMESH_FACE_INF_QUAD6_H
virtual unsigned int which_node_am_i(unsigned int side, unsigned int side_node) const override
InfQuad6 & operator=(const InfQuad6 &)=delete
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const override
static const int nodes_per_side
static const unsigned int side_nodes_map[num_sides][nodes_per_side]
A geometric point in (x,y,z) space associated with a DOF.
Definition: node.h:52
virtual bool is_face(const unsigned int i) const override
virtual Order default_order() const override
virtual ~InfQuad6()=default
virtual dof_id_type key() const
Definition: elem.C:401
virtual unsigned short int second_order_adjacent_vertex(const unsigned int n, const unsigned int v) const override
The base class for all geometric element types.
Definition: elem.h:100
Node * _nodelinks_data[num_nodes]
InfQuad6(Elem *p=nullptr)
virtual bool is_edge(const unsigned int i) const override
virtual unsigned int n_second_order_adjacent_vertices(const unsigned int) const override
virtual unsigned int n_nodes() const override
virtual bool is_vertex(const unsigned int i) const override
static const int num_sides
static const float _embedding_matrix[num_children][num_nodes][num_nodes]
virtual std::vector< unsigned int > nodes_on_side(const unsigned int s) const override
virtual unsigned int n_sub_elem() const override
The base class for all 2D infinite quadrilateral element types.
Definition: face_inf_quad.h:56
static const unsigned short int _second_order_adjacent_vertices[2][2]
A 2D infinite quadrilateral element with 6 nodes.
static const int num_nodes
static const int num_children
virtual std::pair< unsigned short int, unsigned short int > second_order_child_vertex(const unsigned int n) const override
virtual ElemType type() const override
virtual std::unique_ptr< Elem > build_side_ptr(const unsigned int i, bool proxy) override
virtual void connectivity(const unsigned int sf, const IOPackage iop, std::vector< dof_id_type > &conn) const override
virtual float embedding_matrix(const unsigned int i, const unsigned int j, const unsigned int k) const override
std::unique_ptr< Elem > side(const unsigned int i) const
Definition: elem.h:2202
uint8_t dof_id_type
Definition: id_types.h:64
virtual bool is_node_on_edge(const unsigned int n, const unsigned int e) const override