IOSS 2.0

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