IOSS 2.0
Loading...
Searching...
No Matches
Ioexnl_SuperElement.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#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
17namespace Ioss {
18 class Field;
19} // namespace Ioss
20
21namespace Ioss {
22 class Property;
23} // namespace Ioss
24
25namespace 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"; }
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
#define IOSS_NODISCARD
Definition Ioss_CodeTypes.h:54
Definition Ioexnl_SuperElement.h:27
IOSS_NODISCARD std::string type_string() const override
Get the name of the particular type of entity.
Definition Ioexnl_SuperElement.h:32
IOSS_NODISCARD std::string short_type_string() const override
Get a short name of the particular type of entity.
Definition Ioexnl_SuperElement.h:33
IOSS_NODISCARD Ioss::EntityType type() const override
Get the EntityType, which indicates the particular type of GroupingEntity this is.
Definition Ioexnl_SuperElement.h:35
IOSS_NODISCARD std::string contains_string() const override
What does this entity contain.
Definition Ioexnl_SuperElement.h:34
Holds metadata for bulk data associated with a GroupingEntity.
Definition Ioss_Field.h:25
Base class for all 'grouping' entities. The following derived classes are typical:
Definition Ioss_GroupingEntity.h:67
A named value that has a known type.
Definition Ioss_Property.h:27
A namespace for the exodus database format.
Definition Ioexnl_BaseDatabaseIO.C:76
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
EntityType
The particular type of GroupingEntity.
Definition Ioss_EntityType.h:12
@ SUPERELEMENT
Definition Ioss_EntityType.h:26