libMesh
face_tri3_subdivision.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2024 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
The Tri3 is an element in 2D composed of 3 nodes.
Definition: face_tri3.h:61
ElemType
Defines an enum for geometric element types.
Order
defines an enum for polynomial orders.
Definition: enum_order.h:40
A Node is like a Point, but with more information.
Definition: node.h:52
bool _subdivision_updated
true if the subdivision element is ready for use, i.e.
virtual bool is_linear() const override
virtual ~Tri3Subdivision()=default
Tri3Subdivision()
Constructor without parent specification.
This is the base class from which all geometric element types are derived.
Definition: elem.h:94
The libMesh namespace provides an interface to certain functionality in the library.
void prepare_subdivision_properties()
Prepares the element for use by reordering the nodes such that the irregular node (valence != 6)...
virtual bool has_affine_map() const override
Node * get_ordered_node(unsigned int node_id) const
bool _is_ghost
true if the element is a ghost element (e.g.
The Tri3Subdivision element is a three-noded subdivision surface shell element used in mechanics calc...
unsigned int local_node_number(unsigned int node_id) const
Node * _ordered_nodes[3]
A list containing the ordered nodes such that the irregular node (valence != 6), if there is one...
unsigned int get_ordered_valence(unsigned int node_id) const
virtual Order default_order() const override
Tri3Subdivision & operator=(const Tri3Subdivision &)=delete
void set_ghost(bool ghosted)
Sets the boolean flag identifying ghost elements.
virtual ElemType type() const override
dof_id_type node_id(const unsigned int i) const
Definition: elem.h:2299