libMesh
face_inf_quad6.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2017 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
63 
67  virtual unsigned int n_nodes() const libmesh_override { return 6; }
68 
72  virtual ElemType type () const libmesh_override { return INFQUAD6; }
73 
77  virtual unsigned int n_sub_elem() const libmesh_override { return 2; }
78 
82  virtual bool is_vertex(const unsigned int i) const libmesh_override;
83 
87  virtual bool is_edge(const unsigned int i) const libmesh_override;
88 
92  virtual bool is_face(const unsigned int i) const libmesh_override;
93 
98  virtual bool is_node_on_side(const unsigned int n,
99  const unsigned int s) const libmesh_override;
100 
105  virtual bool is_node_on_edge(const unsigned int n,
106  const unsigned int e) const libmesh_override
107  { return this->is_node_on_side(n,e); }
108 
112  virtual Order default_order() const libmesh_override { return SECOND; }
113 
117  using Elem::key;
118 
127  virtual dof_id_type key (const unsigned int s) const libmesh_override;
128 
132  virtual unsigned int which_node_am_i(unsigned int side,
133  unsigned int side_node) const libmesh_override;
134 
139  virtual UniquePtr<Elem> build_side_ptr (const unsigned int i,
140  bool proxy) libmesh_override;
141 
142  virtual void connectivity(const unsigned int sf,
143  const IOPackage iop,
144  std::vector<dof_id_type> & conn) const libmesh_override;
145 
149  virtual unsigned int n_second_order_adjacent_vertices (const unsigned int) const libmesh_override
150  { return 2; }
151 
158  virtual unsigned short int second_order_adjacent_vertex (const unsigned int n,
159  const unsigned int v) const libmesh_override;
160 
166  virtual std::pair<unsigned short int, unsigned short int>
167  second_order_child_vertex (const unsigned int n) const libmesh_override;
168 
173  static const unsigned int side_nodes_map[3][3];
174 
175 
176 
177 protected:
178 
183 
184 
185 
186 #ifdef LIBMESH_ENABLE_AMR
187 
191  virtual float embedding_matrix (const unsigned int i,
192  const unsigned int j,
193  const unsigned int k) const libmesh_override
194  { return _embedding_matrix[i][j][k]; }
195 
200  static const float _embedding_matrix[2][6][6];
201 
203 
204 #endif // LIBMESH_ENABLE_AMR
205 
206 private:
207 
212  static const unsigned short int _second_order_adjacent_vertices[2][2];
213 };
214 
215 
216 } // namespace libMesh
217 
218 #endif // ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
219 
220 #endif // LIBMESH_FACE_INF_QUAD6_H
Node * _nodelinks_data[6]
Data for links to nodes.
virtual Order default_order() const libmesh_override
A Node is like a Point, but with more information.
Definition: node.h:52
UniquePtr< Elem > side(const unsigned int i) const
Definition: elem.h:2105
static const float _embedding_matrix[2][6][6]
Matrix that computes new nodal locations/solution values from current nodes/solution.
ElemType
Defines an enum for geometric element types.
virtual void connectivity(const unsigned int sf, const IOPackage iop, std::vector< dof_id_type > &conn) const libmesh_override
This is the base class from which all geometric element types are derived.
Definition: elem.h:89
const class libmesh_nullptr_t libmesh_nullptr
static const unsigned int side_nodes_map[3][3]
This maps the node of the side to element node numbers.
The libMesh namespace provides an interface to certain functionality in the library.
virtual bool is_face(const unsigned int i) const libmesh_override
virtual std::pair< unsigned short int, unsigned short int > second_order_child_vertex(const unsigned int n) const libmesh_override
std::unique_ptr< T > UniquePtr
Definition: auto_ptr.h:46
virtual unsigned int n_nodes() const libmesh_override
virtual unsigned int which_node_am_i(unsigned int side, unsigned int side_node) const libmesh_override
virtual dof_id_type key() const
Definition: elem.C:503
InfQuad6(Elem *p=libmesh_nullptr)
Constructor.
virtual bool is_vertex(const unsigned int i) const libmesh_override
The InfQuad is an abstract element type that lives in two dimensions.
Definition: face_inf_quad.h:56
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const libmesh_override
static const unsigned short int _second_order_adjacent_vertices[2][2]
Matrix that tells which vertices define the location of mid-side (or second-order) nodes...
The INFQUAD6 is an infinite element in 2D composed of 6 nodes.
virtual unsigned int n_second_order_adjacent_vertices(const unsigned int) const libmesh_override
virtual ElemType type() const libmesh_override
virtual unsigned short int second_order_adjacent_vertex(const unsigned int n, const unsigned int v) const libmesh_override
Order
defines an enum for polynomial orders.
Definition: enum_order.h:32
virtual unsigned int n_sub_elem() const libmesh_override
virtual float embedding_matrix(const unsigned int i, const unsigned int j, const unsigned int k) const libmesh_override
Matrix used to create the elements children.
IOPackage
libMesh interfaces with several different software packages for the purposes of creating, reading, and writing mesh files.
virtual bool is_edge(const unsigned int i) const libmesh_override
virtual UniquePtr< Elem > build_side_ptr(const unsigned int i, bool proxy) libmesh_override
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 libmesh_override