IOSS  2.0
Ioex_SuperElement.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2020 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 #ifndef IOSS_Ioex_SuperElement_h
7 #define IOSS_Ioex_SuperElement_h
8 
9 #include "Ioss_EntityType.h" // for EntityType, etc
10 #include "Ioss_Property.h" // for Property
11 #include <Ioss_GroupingEntity.h> // for GroupingEntity
12 #include <cstddef> // for size_t
13 #include <cstdint> // for int64_t
14 #include <string> // for string
15 namespace Ioss {
16  class Field;
17 } // namespace Ioss
18 
19 namespace Ioss {
20  class Property;
21 } // namespace Ioss
22 
23 namespace Ioex {
25  {
26  public:
27  SuperElement(std::string filename, const std::string &my_name);
28  ~SuperElement() override;
29 
30  std::string type_string() const override { return "SuperElement"; }
31  std::string short_type_string() const override { return "superelement"; }
32  std::string contains_string() const override { return "Element"; }
33  Ioss::EntityType type() const override { return Ioss::SUPERELEMENT; }
34 
35  // Handle implicit properties -- These are calcuated from data stored
36  // in the grouping entity instead of having an explicit value assigned.
37  // An example would be 'element_block_count' for a region.
38  Ioss::Property get_implicit_property(const std::string &the_name) const override;
39 
40  protected:
41  int64_t internal_get_field_data(const Ioss::Field &field, void *data,
42  size_t data_size) const override;
43 
44  int64_t internal_put_field_data(const Ioss::Field &field, void *data,
45  size_t data_size) const override;
46 
47  private:
48  std::string fileName{};
49  size_t numDOF{0};
50  size_t num_nodes{0};
51  size_t numEIG{0};
52  size_t numRBM{0};
53  size_t num_dim{0};
54  int filePtr{-1};
55  };
56 } // namespace Ioex
57 #endif
Ioex::SuperElement::num_dim
size_t num_dim
Definition: Ioex_SuperElement.h:53
Ioex::SuperElement::type_string
std::string type_string() const override
Get the name of the particular type of entity.
Definition: Ioex_SuperElement.h:30
Ioss::Field
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:22
Ioex::SuperElement::filePtr
int filePtr
Definition: Ioex_SuperElement.h:54
Ioss_Property.h
Ioex::SuperElement::~SuperElement
~SuperElement() override
Definition: Ioex_SuperElement.C:251
Ioex::SuperElement
Definition: Ioex_SuperElement.h:25
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Ioex::SuperElement::internal_put_field_data
int64_t internal_put_field_data(const Ioss::Field &field, void *data, size_t data_size) const override
Definition: Ioex_SuperElement.C:258
Ioex::SuperElement::short_type_string
std::string short_type_string() const override
Get a short name of the particular type of entity.
Definition: Ioex_SuperElement.h:31
Ioex::SuperElement::type
Ioss::EntityType type() const override
Get the EntityType, which indicates the particular type of GroupingEntity this is.
Definition: Ioex_SuperElement.h:33
Ioss::EntityType
EntityType
The particular type of GroupingEntity.
Definition: Ioss_EntityType.h:13
Ioss_EntityType.h
Ioex
A namespace for the exodus database format.
Definition: Ioex_BaseDatabaseIO.C:101
Ioex::SuperElement::numRBM
size_t numRBM
Definition: Ioex_SuperElement.h:52
Ioss::SUPERELEMENT
@ SUPERELEMENT
Definition: Ioss_EntityType.h:27
Ioex::SuperElement::numDOF
size_t numDOF
Definition: Ioex_SuperElement.h:49
Ioex::SuperElement::get_implicit_property
Ioss::Property get_implicit_property(const std::string &the_name) const override
Calculate and get an implicit property.
Definition: Ioex_SuperElement.C:264
Ioex::SuperElement::fileName
std::string fileName
Definition: Ioex_SuperElement.h:48
Ioss_GroupingEntity.h
anonymous_namespace{cth_pressure_map.C}::data
std::vector< char > data
Definition: cth_pressure_map.C:48
Ioex::SuperElement::internal_get_field_data
int64_t internal_get_field_data(const Ioss::Field &field, void *data, size_t data_size) const override
Definition: Ioex_SuperElement.C:146
Ioex::SuperElement::num_nodes
size_t num_nodes
Definition: Ioex_SuperElement.h:50
Ioex::SuperElement::contains_string
std::string contains_string() const override
What does this entity contain.
Definition: Ioex_SuperElement.h:32
Ioss::Property
A named value that has a known type.
Definition: Ioss_Property.h:24
Ioss::GroupingEntity
Base class for all 'grouping' entities. The following derived classes are typical:
Definition: Ioss_GroupingEntity.h:68
Ioex::SuperElement::SuperElement
SuperElement(std::string filename, const std::string &my_name)
Definition: Ioex_SuperElement.C:66
Ioex::SuperElement::numEIG
size_t numEIG
Definition: Ioex_SuperElement.h:51