IOSS 2.0
Loading...
Searching...
No Matches
Ioss_Super.h
Go to the documentation of this file.
1// Copyright(C) 1999-2020, 2022, 2023, 2024 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// See packages/seacas/LICENSE for details
6
7#pragma once
8
9#include "Ioss_CodeTypes.h" // for IntVector
10#include "Ioss_ElementPermutation.h" // for ElementPermutation
11#include <string> // for string
12
14#include "Ioss_Super.h"
15#include "ioss_export.h"
16
17namespace Ioss {
18 class ElementVariableType;
19} // namespace Ioss
20
21namespace Ioss {
22
23 class IOSS_EXPORT Super : public Ioss::ElementTopology
24 {
25
26 public:
27 static const char *name;
28
29 static void factory();
30 Super(const std::string &my_name, int node_count);
31 virtual ~Super() override;
32
33 static void make_super(const std::string &type);
34
35 IOSS_NODISCARD ElementShape shape() const override { return ElementShape::UNKNOWN; }
36 IOSS_NODISCARD int spatial_dimension() const override;
37 IOSS_NODISCARD int parametric_dimension() const override;
38 IOSS_NODISCARD bool is_element() const override { return true; }
39 IOSS_NODISCARD bool is_shell() const override { return false; }
40 IOSS_NODISCARD int order() const override;
41
42 IOSS_NODISCARD int number_corner_nodes() const override;
43 IOSS_NODISCARD int number_nodes() const override;
44 IOSS_NODISCARD int number_edges() const override;
45 IOSS_NODISCARD int number_faces() const override;
46
47 IOSS_NODISCARD int number_nodes_edge(int edge = 0) const override;
48 IOSS_NODISCARD int number_nodes_face(int face = 0) const override;
49 IOSS_NODISCARD int number_edges_face(int face = 0) const override;
50
51 IOSS_NODISCARD Ioss::IntVector edge_connectivity(int edge_number) const override;
52 IOSS_NODISCARD Ioss::IntVector face_connectivity(int face_number) const override;
53 IOSS_NODISCARD Ioss::IntVector element_connectivity() const override;
54
55 IOSS_NODISCARD Ioss::IntVector face_edge_connectivity(int face_number) const override;
56
57 IOSS_NODISCARD Ioss::ElementTopology *face_type(int face_number = 0) const override;
58 IOSS_NODISCARD Ioss::ElementTopology *edge_type(int edge_number = 0) const override;
59
60 IOSS_NODISCARD const std::string &base_topology_permutation_name() const override
61 {
62 return baseTopologyName;
63 }
64
65 protected:
66 private:
69 std::string baseTopologyName{};
70 };
71} // namespace Ioss
#define IOSS_NODISCARD
Definition Ioss_CodeTypes.h:55
Represents an element topology.
Definition Ioss_ElementTopology.h:68
Definition Ioss_ElementVariableType.h:17
Definition Ioss_Super.h:24
IOSS_NODISCARD bool is_shell() const override
Definition Ioss_Super.h:39
static const char * name
Definition Ioss_Super.h:27
IOSS_NODISCARD const std::string & base_topology_permutation_name() const override
Definition Ioss_Super.h:60
IOSS_NODISCARD ElementShape shape() const override
Definition Ioss_Super.h:35
IOSS_NODISCARD bool is_element() const override
Definition Ioss_Super.h:38
int nodeCount
Definition Ioss_Super.h:67
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
ElementShape
Definition Ioss_ElementTopology.h:24
std::vector< int > IntVector
Definition Ioss_CodeTypes.h:21