edge_inf_edge2.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_EDGE_INF_EDGE2_H
21 #define LIBMESH_EDGE_INF_EDGE2_H
22 
23 #include "libmesh/libmesh_common.h"
24 
25 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
26 
27 // Local includes
28 #include "libmesh/edge.h"
29 
30 // C++ includes
31 #include <cstddef>
32 
33 namespace libMesh
34 {
35 
36 
53 // ------------------------------------------------------------
54 // InfEdge2 class definition
55 class InfEdge2 : public Edge
56 {
57  public:
58 
62  explicit
63  InfEdge2 (Elem* p=NULL) :
65 
69  unsigned int n_sub_elem() const { return 1; }
70 
74  virtual bool is_vertex(const unsigned int i) const;
75 
79  virtual bool is_edge(const unsigned int i) const;
80 
84  virtual bool is_face(const unsigned int i) const;
85 
86  /*
87  * @returns true iff the specified (local) node number is on the
88  * specified side
89  */
90  virtual bool is_node_on_side(const unsigned int n,
91  const unsigned int s) const;
92 
93  /*
94  * @returns true iff the specified (local) node number is on the
95  * specified edge (i.e. "returns true" in 1D)
96  */
97  virtual bool is_node_on_edge(const unsigned int n,
98  const unsigned int e) const;
99 
103  ElemType type() const { return INFEDGE2; }
104 
108  Order default_order() const { return FIRST; }
109 
110  virtual void connectivity(const unsigned int se,
111  const IOPackage iop,
112  std::vector<dof_id_type>& conn) const;
113 
114 // const std::vector<unsigned int> tecplot_connectivity(const unsigned int se=0) const;
115 
116 // void vtk_connectivity(const unsigned int se,
117 // std::vector<unsigned int>*conn = NULL) const;
118 
119 // unsigned int vtk_element_type (const unsigned int) const
120 // { return 3; }
121 
122 
123 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
124 
128  bool infinite () const { return true; }
129 
133  Point origin () const;
134 
135 #endif
136 
137 
138 protected:
139 
144 
145 
146 
147 #ifdef LIBMESH_ENABLE_AMR
148 
152  float embedding_matrix (const unsigned int,
153  const unsigned int,
154  const unsigned int) const
155  { libmesh_error(); return 0.; }
156 
157 #endif
158 };
159 
160 
161 
162 
163 // ------------------------------------------------------------
164 // InfEdge2 class member functions
165 inline
167 {
168  return ( this->point(0)*2 - this->point(1) );
169 }
170 
171 
172 } // namespace libMesh
173 
174 #endif
175 
176 #endif // LIBMESH_EDGE_INF_EDGE2_H

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

Hosted By:
SourceForge.net Logo