IOSS  2.0
Ioss_Wedge12.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 // -*- Mode: c++ -*-
34 #ifndef IOSS_Ioss_Wedge12_h
35 #define IOSS_Ioss_Wedge12_h
36 
37 #include <Ioss_CodeTypes.h> // for IntVector
38 #include <Ioss_ElementTopology.h> // for ElementTopology
39 
40 // STL Includes
41 
42 namespace Ioss {
44  {
45 
46  public:
47  static constexpr auto name = "wedge12";
48 
49  static void factory();
50  ~Wedge12() override;
51 
52  ElementShape shape() const override { return ElementShape::WEDGE; }
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  bool faces_similar() const override { return false; }
68  bool edges_similar() const override { return false; }
69 
70  Ioss::IntVector edge_connectivity(int edge_number) const override;
71  Ioss::IntVector face_connectivity(int face_number) const override;
72  Ioss::IntVector element_connectivity() const override;
73 
74  Ioss::IntVector face_edge_connectivity(int face_number) const override;
75 
76  Ioss::ElementTopology *face_type(int face_number = 0) const override;
77  Ioss::ElementTopology *edge_type(int edge_number = 0) const override;
78 
79  protected:
80  Wedge12();
81 
82  private:
83  Wedge12(const Wedge12 &) = delete;
84  };
85 } // namespace Ioss
86 #endif
Represents an element topology.
Definition: Ioss_ElementTopology.h:72
bool edges_similar() const override
Definition: Ioss_Wedge12.h:68
The main namespace for the Ioss library.
Definition: Iocgns_DatabaseIO.h:50
int parametric_dimension() const override
Definition: Ioss_Wedge12.C:105
ElementShape shape() const override
Definition: Ioss_Wedge12.h:52
int number_nodes_edge(int edge=0) const override
Definition: Ioss_Wedge12.C:114
int number_faces() const override
Definition: Ioss_Wedge12.C:112
Ioss::ElementTopology * edge_type(int edge_number=0) const override
Definition: Ioss_Wedge12.C:190
int number_edges() const override
Definition: Ioss_Wedge12.C:111
Ioss::ElementTopology * face_type(int face_number=0) const override
Definition: Ioss_Wedge12.C:175
Wedge12()
Definition: Ioss_Wedge12.C:98
std::vector< int > IntVector
Definition: Ioss_CodeTypes.h:42
Ioss::IntVector element_connectivity() const override
Definition: Ioss_Wedge12.C:166
int number_corner_nodes() const override
Definition: Ioss_Wedge12.C:109
bool is_element() const override
Definition: Ioss_Wedge12.h:55
ElementShape
Definition: Ioss_ElementTopology.h:45
Ioss::IntVector edge_connectivity(int edge_number) const override
Definition: Ioss_Wedge12.C:143
bool faces_similar() const override
Definition: Ioss_Wedge12.h:67
int spatial_dimension() const override
Definition: Ioss_Wedge12.C:106
Ioss::IntVector face_edge_connectivity(int face_number) const override
Definition: Ioss_Wedge12.C:206
int order() const override
Definition: Ioss_Wedge12.C:107
int number_nodes_face(int face=0) const override
Definition: Ioss_Wedge12.C:129
Definition: Ioss_Wedge12.h:43
int number_nodes() const override
Definition: Ioss_Wedge12.C:110
int number_edges_face(int face=0) const override
Definition: Ioss_Wedge12.C:136
const std::string & name() const
Definition: Ioss_ElementTopology.h:83
Ioss::IntVector face_connectivity(int face_number) const override
Definition: Ioss_Wedge12.C:154
~Wedge12() override
static void factory()
Definition: Ioss_Wedge12.C:92