cell_prism6.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_CELL_PRISM6_H
21 #define LIBMESH_CELL_PRISM6_H
22 
23 // Local includes
24 #include "libmesh/cell_prism.h"
25 
26 // C++ includes
27 #include <cstddef>
28 
29 namespace libMesh
30 {
31 
32 
33 
34 
53 // ------------------------------------------------------------
54 // Prism class definition
55 class Prism6 : public Prism
56 {
57 public:
58 
62  explicit
63  Prism6 (Elem* p=NULL);
64 
68  ElemType type () const { return PRISM6; }
69 
73  unsigned int n_sub_elem() const { return 1; }
74 
78  virtual bool is_vertex(const unsigned int i) const;
79 
83  virtual bool is_edge(const unsigned int i) const;
84 
88  virtual bool is_face(const unsigned int i) const;
89 
90  /*
91  * @returns true iff the specified (local) node number is on the
92  * specified side
93  */
94  virtual bool is_node_on_side(const unsigned int n,
95  const unsigned int s) const;
96 
97  /*
98  * @returns true iff the specified (local) node number is on the
99  * specified edge
100  */
101  virtual bool is_node_on_edge(const unsigned int n,
102  const unsigned int e) const;
103 
104  /*
105  * @returns true iff the element map is definitely affine within
106  * numerical tolerances
107  */
108  virtual bool has_affine_map () const;
109 
113  Order default_order() const { return FIRST; }
114 
119  AutoPtr<Elem> build_side (const unsigned int i,
120  bool proxy) const;
121 
126  AutoPtr<Elem> build_edge (const unsigned int i) const;
127 
128  virtual void connectivity(const unsigned int sc,
129  const IOPackage iop,
130  std::vector<dof_id_type>& conn) const;
131 
136  static const unsigned int side_nodes_map[5][4];
137 
141  static const unsigned int side_elems_map[5][4];
142 
147  static const unsigned int edge_nodes_map[9][2];
148 
152  virtual Real volume () const;
153 
154 protected:
155 
160 
161 
162 
163 #ifdef LIBMESH_ENABLE_AMR
164 
168  float embedding_matrix (const unsigned int i,
169  const unsigned int j,
170  const unsigned int k) const
171  { return _embedding_matrix[i][j][k]; }
172 
177  static const float _embedding_matrix[8][6][6];
178 
179 #endif
180 
181 };
182 
183 
184 
185 // ------------------------------------------------------------
186 // Prism6 class member functions
187 inline
189  Prism(Prism6::n_nodes(), p, _nodelinks_data)
190 {
191 }
192 
193 
194 } // namespace libMesh
195 
196 #endif // LIBMESH_CELL_PRISM6_H

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

Hosted By:
SourceForge.net Logo