face_tri3_subdivision.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_TRI3_SUBDIVISION_H
21 #define LIBMESH_FACE_TRI3_SUBDIVISION_H
22 
23 
24 // Local includes
25 #include "libmesh/face_tri3.h"
26 
27 namespace libMesh
28 {
29 
40 class Tri3Subdivision final : public Tri3
41 {
42 public:
43 
48  Tri3(), _subdivision_updated(false), _is_ghost(false) {}
49 
53  Tri3Subdivision(Elem * p);
54 
55  Tri3Subdivision (Tri3Subdivision &&) = delete;
56  Tri3Subdivision (const Tri3Subdivision &) = delete;
57  Tri3Subdivision & operator= (const Tri3Subdivision &) = delete;
59  virtual ~Tri3Subdivision() = default;
60 
64  virtual ElemType type () const override { return TRI3SUBDIVISION; }
65 
70  virtual bool has_affine_map () const override { return false; }
71 
76  virtual bool is_linear () const override { return false; }
77 
81  virtual Order default_order() const override;
82 
89 
95 
99  Node * get_ordered_node(unsigned int node_id) const;
100 
105  unsigned int get_ordered_valence(unsigned int node_id) const;
106 
111  unsigned int local_node_number(unsigned int node_id) const;
112 
116  bool is_ghost() const { return _is_ghost; }
117 
121  void set_ghost(bool ghosted) { _is_ghost = ghosted; }
122 
123 private:
124 
130 
136 
141  bool _is_ghost;
142 };
143 
144 
145 } // namespace libMesh
146 
147 #endif // LIBMESH_FACE_TRI3_SUBDIVISION_H
A 2D triangular element with 3 nodes.
Definition: face_tri3.h:56
A geometric point in (x,y,z) space associated with a DOF.
Definition: node.h:52
virtual bool is_linear() const override
virtual ~Tri3Subdivision()=default
The base class for all geometric element types.
Definition: elem.h:100
virtual bool has_affine_map() const override
Node * get_ordered_node(unsigned int node_id) const
A surface shell element used in mechanics calculations.
unsigned int local_node_number(unsigned int node_id) const
unsigned int get_ordered_valence(unsigned int node_id) const
virtual Order default_order() const override
Tri3Subdivision & operator=(const Tri3Subdivision &)=delete
virtual ElemType type() const override
dof_id_type node_id(const unsigned int i) const
Definition: elem.h:1914