Debian Codegraph @

packages/seacas/libraries/ioss/src/exodus/Ioex_SuperElement.h

raw
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 #pragma once
7
8 #include <cstddef> // for size_t
9 #include <cstdint> // for int64_t
10 #include <string> // for string
11
12 #include "Ioss_CodeTypes.h"
13 #include "Ioss_EntityType.h" // for EntityType, etc
14 #include "Ioss_GroupingEntity.h" // for GroupingEntity
15 #include "Ioss_Property.h" // for Property
16 #include "ioex_export.h"
17
18 namespace Ioss {
19 class Field;
20 } // namespace Ioss
21
22 namespace Ioss {
23 class Property;
24 } // namespace Ioss
25
26 namespace Ioex {
27 class IOEX_EXPORT SuperElement : public Ioss::GroupingEntity
28 {
29 public:
30 SuperElement(std::string filename, const std::string &my_name);
31 ~SuperElement() override;
32
33 IOSS_NODISCARD std::string type_string() const override { return "SuperElement"; }
34 IOSS_NODISCARD std::string short_type_string() const override { return "superelement"; }
35 IOSS_NODISCARD std::string contains_string() const override { return "Element"; }
36 IOSS_NODISCARD Ioss::EntityType type() const override { return Ioss::SUPERELEMENT; }
37
38 // Handle implicit properties -- These are calculated from data stored
39 // in the grouping entity instead of having an explicit value assigned.
40 // An example would be 'element_block_count' for a region.
41 IOSS_NODISCARD Ioss::Property get_implicit_property(const std::string &the_name) const override;
42
43 protected:
44 int64_t internal_get_field_data(const Ioss::Field &field, void *data,
45 size_t data_size) const override;
46
47 int64_t internal_put_field_data(const Ioss::Field &field, void *data,
48 size_t data_size) const override;
49
50 int64_t internal_get_zc_field_data(const Ioss::Field &, void **, size_t *) const override
51 {
52 return -1;
53 }
54
55 private:
56 std::string fileName{};
57 size_t numDOF{0};
58 size_t num_nodes{0};
59 size_t numEIG{0};
60 size_t numRBM{0};
61 size_t num_dim{0};
62 int filePtr{-1};
63 };
64 } // namespace Ioex