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