Debian Codegraph @

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