IOSS 2.0

Ioss_Super.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_Super_h
34 #define IOSS_Ioss_Super_h
35
36 #include "Ioss_Super.h"
37 #include <Ioss_CodeTypes.h> // for IntVector
38 #include <Ioss_ElementTopology.h> // for ElementTopology
39 #include <string> // for string
40 namespace Ioss {
41 class ElementVariableType;
42 } // namespace Ioss
43
44 // STL Includes
45
46 namespace Ioss {
47
48 class Super : public Ioss::ElementTopology
49 {
50
51 public:
52 static const char *name;
53
54 static void factory();
55 ~Super() override;
56 Super(const std::string &my_name, int node_count);
57
58 static void make_super(const std::string &type);
59
60 ElementShape shape() const override { return ElementShape::UNKNOWN; }
61 int spatial_dimension() const override;
62 int parametric_dimension() const override;
63 bool is_element() const override { return true; }
64 int order() const override;
65
66 int number_corner_nodes() const override;
67 int number_nodes() const override;
68 int number_edges() const override;
69 int number_faces() const override;
70
71 int number_nodes_edge(int edge = 0) const override;
72 int number_nodes_face(int face = 0) const override;
73 int number_edges_face(int face = 0) const override;
74
75 Ioss::IntVector edge_connectivity(int edge_number) const override;
76 Ioss::IntVector face_connectivity(int face_number) const override;
77 Ioss::IntVector element_connectivity() const override;
78
79 Ioss::IntVector face_edge_connectivity(int face_number) const override;
80
81 Ioss::ElementTopology *face_type(int face_number = 0) const override;
82 Ioss::ElementTopology *edge_type(int edge_number = 0) const override;
83
84 protected:
85 private:
86 int nodeCount;
87 Ioss::ElementVariableType *storageType;
88 Super(const Super &) = delete;
89 };
90 } // namespace Ioss
91 #endif
Ioss::Super::number_nodes_face
int number_nodes_face(int face=0) const override
Definition: Ioss_Super.C:92
Ioss::Super::edge_type
Ioss::ElementTopology * edge_type(int edge_number=0) const override
Definition: Ioss_Super.C:121
Ioss::Super::face_connectivity
Ioss::IntVector face_connectivity(int face_number) const override
Definition: Ioss_Super.C:101
Ioss::Super::face_type
Ioss::ElementTopology * face_type(int face_number=0) const override
Definition: Ioss_Super.C:116
Ioss::Super::nodeCount
int nodeCount
Definition: Ioss_Super.h:86
Ioss::Super::~Super
~Super() override
Definition: Ioss_Super.C:67
Ioss::IntVector
std::vector< int > IntVector
Definition: Ioss_CodeTypes.h:51
Ioss::Super::shape
ElementShape shape() const override
Definition: Ioss_Super.h:60
Ioss::Super
Definition: Ioss_Super.h:48
Ioss::Super::Super
Super(const std::string &my_name, int node_count)
Definition: Ioss_Super.C:61
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:66
Ioss::Super::face_edge_connectivity
Ioss::IntVector face_edge_connectivity(int face_number) const override
Definition: Ioss_Super.C:126
Ioss::ElementShape::UNKNOWN
Ioss::Super::number_edges
int number_edges() const override
Definition: Ioss_Super.C:87
Ioss::Super::number_faces
int number_faces() const override
Definition: Ioss_Super.C:88
Ioss::Super::number_edges_face
int number_edges_face(int face=0) const override
Definition: Ioss_Super.C:93
Ioss::Super::number_nodes_edge
int number_nodes_edge(int edge=0) const override
Definition: Ioss_Super.C:90
Ioss::Super::parametric_dimension
int parametric_dimension() const override
Definition: Ioss_Super.C:81
Ioss::Super::edge_connectivity
Ioss::IntVector edge_connectivity(int edge_number) const override
Definition: Ioss_Super.C:95
Ioss::Super::spatial_dimension
int spatial_dimension() const override
Definition: Ioss_Super.C:82
Ioss::ElementVariableType
Definition: Ioss_ElementVariableType.h:41
Ioss::Super::number_nodes
int number_nodes() const override
Definition: Ioss_Super.C:86
Ioss::Super::number_corner_nodes
int number_corner_nodes() const override
Definition: Ioss_Super.C:85
Ioss::Super::is_element
bool is_element() const override
Definition: Ioss_Super.h:63
Ioss::Super::name
static const char * name
Definition: Ioss_Super.h:52
Ioss::ElementTopology
Represents an element topology.
Definition: Ioss_ElementTopology.h:72
Ioss::Super::element_connectivity
Ioss::IntVector element_connectivity() const override
Definition: Ioss_Super.C:107
Ioss::Super::order
int order() const override
Definition: Ioss_Super.C:83
Ioss::ElementShape
ElementShape
Definition: Ioss_ElementTopology.h:45
Ioss_Super.h
Ioss_CodeTypes.h
Ioss_ElementTopology.h
Ioss::Super::storageType
Ioss::ElementVariableType * storageType
Definition: Ioss_Super.h:87
Ioss::Super::make_super
static void make_super(const std::string &type)
Definition: Ioss_Super.C:69
Ioss::Super::factory
static void factory()
Definition: Ioss_Super.C:54