libMesh
face_inf_quad4.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 #ifndef LIBMESH_FACE_INF_QUAD4_H
20 #define LIBMESH_FACE_INF_QUAD4_H
21 
22 
23 #include "libmesh/libmesh_config.h"
24 
25 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
26 
27 // Local includes
28 #include "libmesh/face_inf_quad.h"
29 
30 namespace libMesh
31 {
32 
52 class InfQuad4 : public InfQuad
53 {
54 public:
55 
59  explicit
62 
66  virtual unsigned int n_nodes() const libmesh_override { return 4; }
67 
71  virtual ElemType type () const libmesh_override { return INFQUAD4; }
72 
76  virtual unsigned int n_sub_elem() const libmesh_override { return 1; }
77 
81  virtual bool is_vertex(const unsigned int i) const libmesh_override;
82 
86  virtual bool is_edge(const unsigned int i) const libmesh_override;
87 
91  virtual bool is_face(const unsigned int i) const libmesh_override;
92 
97  virtual bool is_node_on_side(const unsigned int n,
98  const unsigned int s) const libmesh_override;
99 
104  virtual bool is_node_on_edge(const unsigned int n,
105  const unsigned int e) const libmesh_override
106  { return this->is_node_on_side(n,e); }
107 
111  virtual Order default_order() const libmesh_override { return FIRST; }
112 
117  virtual UniquePtr<Elem> build_side_ptr (const unsigned int i,
118  bool proxy) libmesh_override;
119 
120  virtual void connectivity(const unsigned int sf,
121  const IOPackage iop,
122  std::vector<dof_id_type> & conn) const libmesh_override;
123 
130  virtual bool contains_point (const Point & p, Real tol=TOLERANCE) const libmesh_override;
131 
136  static const unsigned int side_nodes_map[3][2];
137 
138 
139 protected:
140 
145 
146 
147 
148 #ifdef LIBMESH_ENABLE_AMR
149 
153  virtual float embedding_matrix (const unsigned int i,
154  const unsigned int j,
155  const unsigned int k) const libmesh_override
156  { return _embedding_matrix[i][j][k]; }
157 
162  static const float _embedding_matrix[2][4][4];
163 
165 
166 #endif // LIBMESH_ENABLE_AMR
167 
168 };
169 
170 
171 } // namespace libMesh
172 
173 #endif // ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
174 
175 #endif // LIBMESH_FACE_INF_QUAD4_H
A Node is like a Point, but with more information.
Definition: node.h:52
virtual bool is_face(const unsigned int i) const libmesh_override
The INFQUAD4 is an infinite element in 2D composed of 4 nodes.
virtual bool is_vertex(const unsigned int i) const libmesh_override
ElemType
Defines an enum for geometric element types.
virtual bool is_node_on_side(const unsigned int n, const unsigned int s) const libmesh_override
static const float _embedding_matrix[2][4][4]
Matrix that computes new nodal locations/solution values from current nodes/solution.
This is the base class from which all geometric element types are derived.
Definition: elem.h:89
const class libmesh_nullptr_t libmesh_nullptr
virtual bool contains_point(const Point &p, Real tol=TOLERANCE) const libmesh_override
static const Real TOLERANCE
virtual bool is_node_on_edge(const unsigned int n, const unsigned int e) const libmesh_override
static const unsigned int side_nodes_map[3][2]
This maps the node of the side to element node numbers.
The libMesh namespace provides an interface to certain functionality in the library.
virtual ElemType type() const libmesh_override
std::unique_ptr< T > UniquePtr
Definition: auto_ptr.h:46
Node * _nodelinks_data[4]
Data for links to nodes.
virtual unsigned int n_sub_elem() const libmesh_override
The InfQuad is an abstract element type that lives in two dimensions.
Definition: face_inf_quad.h:56
InfQuad4(Elem *p=libmesh_nullptr)
Constructor.
virtual Order default_order() const libmesh_override
virtual unsigned int n_nodes() const libmesh_override
virtual bool is_edge(const unsigned int i) const libmesh_override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Order
defines an enum for polynomial orders.
Definition: enum_order.h:32
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.
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition: point.h:38
virtual UniquePtr< Elem > build_side_ptr(const unsigned int i, bool proxy) libmesh_override
virtual void connectivity(const unsigned int sf, const IOPackage iop, std::vector< dof_id_type > &conn) const libmesh_override