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