IOSS  2.0
Ioss_FaceSet.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 
7 #ifndef IOSS_Ioss_FaceSet_h
8 #define IOSS_Ioss_FaceSet_h
9 
10 #include "Ioss_EntityType.h" // for EntityType, etc
11 #include "Ioss_Property.h" // for Property
12 #include <Ioss_EntitySet.h> // for EntitySet
13 #include <cstddef> // for size_t
14 #include <cstdint> // for int64_t
15 #include <string> // for string
16 #include <vector> // for vector
17 namespace Ioss {
18  class DatabaseIO;
19 } // namespace Ioss
20 namespace Ioss {
21  class Field;
22 } // namespace Ioss
23 
24 namespace Ioss {
25 
26  /** \brief A collection of element faces.
27  */
28  class FaceSet : public EntitySet
29  {
30  public:
31  FaceSet(); // Used for template typing only
32  FaceSet(const FaceSet &) = default;
33  FaceSet(DatabaseIO *io_database, const std::string &my_name, int64_t number_faces);
34 
35  std::string type_string() const override { return "FaceSet"; }
36  std::string short_type_string() const override { return "facelist"; }
37  std::string contains_string() const override { return "Face"; }
38  EntityType type() const override { return FACESET; }
39 
40  // Handle implicit properties -- These are calcuated from data stored
41  // in the grouping entity instead of having an explicit value assigned.
42  // An example would be 'element_block_count' for a region.
43  Property get_implicit_property(const std::string &my_name) const override;
44 
45  void block_membership(std::vector<std::string> &block_membership) override;
46 
47  protected:
48  int64_t internal_get_field_data(const Field &field, void *data,
49  size_t data_size) const override;
50 
51  int64_t internal_put_field_data(const Field &field, void *data,
52  size_t data_size) const override;
53  };
54 } // namespace Ioss
55 #endif
Ioss::FaceSet::contains_string
std::string contains_string() const override
What does this entity contain.
Definition: Ioss_FaceSet.h:37
Ioss::Field
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:22
Ioss_Property.h
Ioss::FaceSet::type_string
std::string type_string() const override
Get the name of the particular type of entity.
Definition: Ioss_FaceSet.h:35
Ioss::FaceSet::get_implicit_property
Property get_implicit_property(const std::string &my_name) const override
Calculate and get an implicit property.
Definition: Ioss_FaceSet.C:48
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Ioss::FaceSet
A collection of element faces.
Definition: Ioss_FaceSet.h:29
Ioss::EntityType
EntityType
The particular type of GroupingEntity.
Definition: Ioss_EntityType.h:13
Ioss_EntityType.h
Ioss::FaceSet::FaceSet
FaceSet(const FaceSet &)=default
Ioss::DatabaseIO
An input or output Database.
Definition: Ioss_DatabaseIO.h:59
Ioss::FACESET
@ FACESET
Definition: Ioss_EntityType.h:20
Ioss::EntitySet
Base class for all 'set'-type grouping entities, which means that members of the set are not necessar...
Definition: Ioss_EntitySet.h:36
Ioss::FaceSet::short_type_string
std::string short_type_string() const override
Get a short name of the particular type of entity.
Definition: Ioss_FaceSet.h:36
anonymous_namespace{cth_pressure_map.C}::data
std::vector< char > data
Definition: cth_pressure_map.C:48
Ioss::FaceSet::FaceSet
FaceSet()
Definition: Ioss_FaceSet.C:19
Ioss::FaceSet::type
EntityType type() const override
Get the EntityType, which indicates the particular type of GroupingEntity this is.
Definition: Ioss_FaceSet.h:38
Ioss::FaceSet::block_membership
void block_membership(std::vector< std::string > &block_membership) override
Get list of blocks that the entities in this GroupingEntity "touch".
Definition: Ioss_FaceSet.C:53
Ioss_EntitySet.h
Ioss::Property
A named value that has a known type.
Definition: Ioss_Property.h:24
Ioss::FaceSet::internal_put_field_data
int64_t internal_put_field_data(const Field &field, void *data, size_t data_size) const override
Definition: Ioss_FaceSet.C:42
Ioss::FaceSet::internal_get_field_data
int64_t internal_get_field_data(const Field &field, void *data, size_t data_size) const override
Definition: Ioss_FaceSet.C:36