IOSS  2.0
Ioss_Tet4.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2017 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 //
12 // * Redistributions in binary form must reproduce the above
13 // copyright notice, this list of conditions and the following
14 // disclaimer in the documentation and/or other materials provided
15 // with the distribution.
16 //
17 // * Neither the name of NTESS nor the names of its
18 // contributors may be used to endorse or promote products derived
19 // from this software without specific prior written permission.
20 //
21 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 #ifndef IOSS_Ioss_Tet4_h
34 #define IOSS_Ioss_Tet4_h
35 
36 #include <Ioss_CodeTypes.h> // for IntVector
37 #include <Ioss_ElementTopology.h> // for ElementTopology
38 
39 // STL Includes
40 
41 namespace Ioss {
42  class Tet4 : public Ioss::ElementTopology
43  {
44 
45  public:
46  static const char *name;
47 
48  static void factory();
49  ~Tet4() override;
50 
51  ElementShape shape() const override { return ElementShape::TET; }
52  int spatial_dimension() const override;
53  int parametric_dimension() const override;
54  bool is_element() const override { return true; }
55  int order() const override;
56 
57  int number_corner_nodes() const override;
58  int number_nodes() const override;
59  int number_edges() const override;
60  int number_faces() const override;
61 
62  int number_nodes_edge(int edge = 0) const override;
63  int number_nodes_face(int face = 0) const override;
64  int number_edges_face(int face = 0) const override;
65 
66  Ioss::IntVector edge_connectivity(int edge_number) const override;
67  Ioss::IntVector face_connectivity(int face_number) const override;
68  Ioss::IntVector element_connectivity() const override;
69 
70  Ioss::IntVector face_edge_connectivity(int face_number) const override;
71 
72  Ioss::ElementTopology *face_type(int face_number = 0) const override;
73  Ioss::ElementTopology *edge_type(int edge_number = 0) const override;
74 
75  protected:
76  Tet4();
77 
78  private:
79  static Tet4 instance_;
80 
81  Tet4(const Tet4 &) = delete;
82  };
83 } // namespace Ioss
84 #endif
Ioss::Tet4::number_nodes_edge
int number_nodes_edge(int edge=0) const override
Definition: Ioss_Tet4.C:115
Ioss::Tet4::factory
static void factory()
Definition: Ioss_Tet4.C:90
Ioss::Tet4::order
int order() const override
Definition: Ioss_Tet4.C:108
Ioss::Tet4::number_faces
int number_faces() const override
Definition: Ioss_Tet4.C:113
Ioss::Tet4::face_connectivity
Ioss::IntVector face_connectivity(int face_number) const override
Definition: Ioss_Tet4.C:143
Ioss::IntVector
std::vector< int > IntVector
Definition: Ioss_CodeTypes.h:51
Ioss::Tet4::is_element
bool is_element() const override
Definition: Ioss_Tet4.h:54
Ioss::Tet4::element_connectivity
Ioss::IntVector element_connectivity() const override
Definition: Ioss_Tet4.C:155
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:66
Ioss::Tet4::edge_type
Ioss::ElementTopology * edge_type(int edge_number=0) const override
Definition: Ioss_Tet4.C:175
Ioss::Tet4::Tet4
Tet4()
Definition: Ioss_Tet4.C:96
Ioss::Tet4::face_edge_connectivity
Ioss::IntVector face_edge_connectivity(int face_number) const override
Definition: Ioss_Tet4.C:185
Ioss::Tet4::number_nodes_face
int number_nodes_face(int face=0) const override
Definition: Ioss_Tet4.C:117
Ioss::Tet4::number_edges
int number_edges() const override
Definition: Ioss_Tet4.C:112
Ioss::Tet4::number_nodes
int number_nodes() const override
Definition: Ioss_Tet4.C:111
Ioss::Tet4::~Tet4
~Tet4() override
Ioss::Tet4::spatial_dimension
int spatial_dimension() const override
Definition: Ioss_Tet4.C:107
Ioss::Tet4::edge_connectivity
Ioss::IntVector edge_connectivity(int edge_number) const override
Definition: Ioss_Tet4.C:131
Ioss::Tet4::number_edges_face
int number_edges_face(int face=0) const override
Definition: Ioss_Tet4.C:124
Ioss::Tet4::face_type
Ioss::ElementTopology * face_type(int face_number=0) const override
Definition: Ioss_Tet4.C:164
Ioss::Tet4::instance_
static Tet4 instance_
Definition: Ioss_Tet4.h:79
Ioss::ElementTopology
Represents an element topology.
Definition: Ioss_ElementTopology.h:72
Ioss::Tet4::number_corner_nodes
int number_corner_nodes() const override
Definition: Ioss_Tet4.C:110
Ioss::Tet4
Definition: Ioss_Tet4.h:42
Ioss::ElementShape
ElementShape
Definition: Ioss_ElementTopology.h:45
Ioss::ElementShape::TET
Ioss::Tet4::parametric_dimension
int parametric_dimension() const override
Definition: Ioss_Tet4.C:106
Ioss::Tet4::shape
ElementShape shape() const override
Definition: Ioss_Tet4.h:51
Ioss_CodeTypes.h
Ioss::Tet4::name
static const char * name
Definition: Ioss_Tet4.h:46
Ioss_ElementTopology.h