IOSS  2.0
Ioss_Region.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_Region_h
8 #define IOSS_Ioss_Region_h
9 
10 #include <Ioss_CoordinateFrame.h> // for CoordinateFrame
11 #include <Ioss_DatabaseIO.h> // for DatabaseIO
12 #include <Ioss_EntityType.h> // for EntityType, etc
13 #include <Ioss_GroupingEntity.h> // for GroupingEntity
14 #include <Ioss_MeshType.h>
15 #include <Ioss_Property.h> // for Property
16 #include <Ioss_State.h> // for State
17 #include <cstddef> // for size_t, nullptr
18 #include <cstdint> // for int64_t
19 #include <functional> // for less
20 #include <iosfwd> // for ostream
21 #include <map> // for map, map<>::value_compare
22 #include <string> // for string, operator<
23 #include <utility> // for pair
24 #include <vector> // for vector
25 namespace Ioss {
26  class Assembly;
27  class Blob;
28  class CommSet;
29  class EdgeBlock;
30  class EdgeSet;
31  class ElementBlock;
32  class ElementSet;
33  class FaceBlock;
34  class FaceSet;
35  class Field;
36  class NodeBlock;
37  class NodeSet;
38  class SideBlock;
39  class SideSet;
40  class StructuredBlock;
41 } // namespace Ioss
42 // Needed for node_global_to_local inline function.
43 
44 namespace Ioss {
45 
46  class CoordinateFrame;
47 
48  using AssemblyContainer = std::vector<Ioss::Assembly *>;
49  using BlobContainer = std::vector<Ioss::Blob *>;
50 
51  using NodeBlockContainer = std::vector<NodeBlock *>;
52  using EdgeBlockContainer = std::vector<EdgeBlock *>;
53  using FaceBlockContainer = std::vector<FaceBlock *>;
54  using ElementBlockContainer = std::vector<ElementBlock *>;
55 
56  using NodeSetContainer = std::vector<NodeSet *>;
57  using EdgeSetContainer = std::vector<EdgeSet *>;
58  using FaceSetContainer = std::vector<FaceSet *>;
59  using ElementSetContainer = std::vector<ElementSet *>;
60 
61  using SideSetContainer = std::vector<SideSet *>;
62  using StructuredBlockContainer = std::vector<StructuredBlock *>;
63  using CommSetContainer = std::vector<CommSet *>;
64  using StateTimeContainer = std::vector<double>;
65 
66  using CoordinateFrameContainer = std::vector<CoordinateFrame>;
67 
68  using AliasMap = std::map<std::string, std::string, std::less<std::string>>;
69 
70  /** \brief A grouping entity that contains other grouping entities.
71  *
72  * Maintains a list of NodeBlocks, ElementBlocks, NodeLists, CommLists and Surfaces.
73  * [Similar to the "Composite Pattern" in Design Patterns] All interface to
74  * GroupingEntities is through the Region class; clients of the IO subsystem have no direct
75  * access to the underlying GroupingEntities (other than the Region).
76  */
77  class Region : public GroupingEntity
78  {
79  public:
80  explicit Region(DatabaseIO *iodatabase = nullptr, const std::string &my_name = "");
81 
82  ~Region() override;
83 
84  std::string type_string() const override { return "Region"; }
85  std::string short_type_string() const override { return "region"; }
86  std::string contains_string() const override { return "Entities"; }
87  EntityType type() const override { return REGION; }
88 
89  MeshType mesh_type() const;
90  const std::string mesh_type_string() const;
91  bool node_major() const;
92 
93  void output_summary(std::ostream &strm, bool do_transient = true) const;
94 
95  bool supports_field_type(Ioss::EntityType fld_type) const;
96 
97  // Helper function...
98  int64_t node_global_to_local(int64_t global, bool must_exist = true) const;
99 
100  bool begin_mode(State new_state);
101  bool end_mode(State current_state);
102 
103  // Add a new state at this time, return state number
104  virtual int add_state(double time)
105  {
106  IOSS_FUNC_ENTER(m_);
107  return add_state__(time);
108  }
109  virtual int add_state__(double time);
110 
111  // Get time corresponding to specified state
112 
113  virtual double get_state_time(int state = -1) const;
114  int get_current_state() const;
115  double begin_state(int state);
116  double end_state(int state);
117 
118  /** \brief Determine whether the metadata defining the model (nontransient,
119  * geometry, and toploloty) has been set.
120  *
121  * \returns True if the metadata defining the model has been set.
122  */
123  bool model_defined() const { return modelDefined; }
124 
125  /** \brief Determine whether the metadata related to the transient
126  * data has been set.
127  *
128  * \returns True if the metadata related to the transient data has been set.
129  */
130  bool transient_defined() const { return transientDefined; }
131 
132  // Return a pair consisting of the step (1-based) corresponding to
133  // the maximum time on the database and the corresponding maximum
134  // time value. Note that this may not necessarily be the last step
135  // on the database if cycle and overlay are being used.
136  std::pair<int, double> get_max_time() const;
137 
138  // Return a pair consisting of the step (1-based) corresponding to
139  // the minimum time on the database and the corresponding minimum
140  // time value. Note that this may not necessarily be the first step
141  // on the database if cycle and overlay are being used.
142  std::pair<int, double> get_min_time() const;
143 
144  // Functions for an output region...
145  bool add(NodeBlock *node_block);
146  bool add(EdgeBlock *edge_block);
147  bool add(FaceBlock *face_block);
148  bool add(ElementBlock *element_block);
149  bool add(SideSet *sideset);
150  bool add(NodeSet *nodeset);
151  bool add(EdgeSet *edgeset);
152  bool add(FaceSet *faceset);
153  bool add(ElementSet *elementset);
154  bool add(CommSet *commset);
155  bool add(StructuredBlock *structured_block);
156  bool add(Assembly *assembly);
157  bool add(Blob *blob);
158  bool add(const CoordinateFrame &frame);
159 
160  // Special purpose...
161  bool remove(Assembly *removal);
162 
163  const NodeBlockContainer & get_node_blocks() const;
164  const EdgeBlockContainer & get_edge_blocks() const;
165  const FaceBlockContainer & get_face_blocks() const;
167  const SideSetContainer & get_sidesets() const;
168  const NodeSetContainer & get_nodesets() const;
169  const EdgeSetContainer & get_edgesets() const;
170  const FaceSetContainer & get_facesets() const;
171  const ElementSetContainer & get_elementsets() const;
172  const CommSetContainer & get_commsets() const;
174  const AssemblyContainer & get_assemblies() const;
175  const BlobContainer & get_blobs() const;
177 
178  // Retrieve the Grouping Entity with the specified name.
179  // Returns nullptr if the entity does not exist
180  GroupingEntity * get_entity(const std::string &my_name, EntityType io_type) const;
181  GroupingEntity * get_entity(const std::string &my_name) const;
182  NodeBlock * get_node_block(const std::string &my_name) const;
183  EdgeBlock * get_edge_block(const std::string &my_name) const;
184  FaceBlock * get_face_block(const std::string &my_name) const;
185  ElementBlock * get_element_block(const std::string &my_name) const;
186  SideSet * get_sideset(const std::string &my_name) const;
187  SideBlock * get_sideblock(const std::string &my_name) const;
188  NodeSet * get_nodeset(const std::string &my_name) const;
189  EdgeSet * get_edgeset(const std::string &my_name) const;
190  FaceSet * get_faceset(const std::string &my_name) const;
191  ElementSet * get_elementset(const std::string &my_name) const;
192  CommSet * get_commset(const std::string &my_name) const;
193  StructuredBlock *get_structured_block(const std::string &my_name) const;
194  Assembly * get_assembly(const std::string &my_name) const;
195  Blob * get_blob(const std::string &my_name) const;
196 
197  // Not guaranteed to be efficient...
198  // Note that not all GroupingEntity's are guaranteed to have an 'id'...
199  GroupingEntity *get_entity(const int64_t id, EntityType io_type) const;
200 
201  const CoordinateFrame &get_coordinate_frame(int64_t id) const;
202 
203  // Add the name 'alias' as an alias for the database entity with the
204  // name 'db_name'. Returns true if alias added; false if problems
205  // adding alias.
206  bool add_alias(const std::string &db_name, const std::string &alias);
207  bool add_alias(const GroupingEntity *ge);
208  std::string get_alias(const std::string &alias) const;
209  std::string get_alias__(const std::string &alias) const; // Not locked by mutex
210 
211  const AliasMap &get_alias_map() const;
212 
213  /// Get a map containing all aliases defined for the entity with basename 'name'
214  int get_aliases(const std::string &my_name, std::vector<std::string> &aliases) const;
215 
216  // This routine transfers all relevant aliases from the 'this'
217  // region and applies them to the 'to' file.
218  void transfer_mesh_aliases(Region *to) const;
219 
220  // Ensure that the 'this' region has the same ids and names as the 'from' region.
221  void synchronize_id_and_name(const Region *from, bool sync_attribute_field_names = false);
222 
223  // Returns true if the passed in name refers to a known Entity
224  // defined on this region. If true, then 'type' (if non-nullptr) is
225  // filled in with the type of the entity; if false, then type (if
226  // non-nullptr) is set to 'INVALID' This function is defined to
227  // consolidate several distinct implementations of this code in
228  // client code. Because of this, the 'type' used in the client
229  // code is repeated here instead of something more generic.
230  bool is_valid_io_entity(const std::string &my_name, unsigned int io_type,
231  std::string *my_type = nullptr) const;
232 
233  // Retrieve the element block that contains the specified element
234  // The 'local_id' is the local database id (1-based), not the global id.
235  // returns nullptr if no element block contains this element (local_id <= 0
236  // or greater than number of elements in database)
237  ElementBlock *get_element_block(size_t local_id) const;
238 
239  // Retrieve the structured block that contains the specified node
240  // The 'global_offset' is the global offset (0-based)
241  // returns nullptr if no structured block contains this node (local_id <= 0
242  // or greater than number of cell-nodes in database)
243  StructuredBlock *get_structured_block(size_t global_offset) const;
244 
245  // Handle implicit properties -- These are calcuated from data stored
246  // in the grouping entity instead of having an explicit value assigned.
247  // An example would be 'element_block_count' for a region.
248  Property get_implicit_property(const std::string &my_name) const override;
249 
250  const std::vector<std::string> &get_information_records() const;
251  void add_information_records(const std::vector<std::string> &info);
252  void add_information_record(const std::string &info);
253 
254  const std::vector<std::string> &get_qa_records() const;
255  void add_qa_record(const std::string &code, const std::string &code_qa,
256  const std::string &date = "", const std::string &time = "");
257 
258  protected:
259  int64_t internal_get_field_data(const Field &field, void *data,
260  size_t data_size = 0) const override;
261 
262  int64_t internal_put_field_data(const Field &field, void *data,
263  size_t data_size = 0) const override;
264 
265  private:
266  // Add the name 'alias' as an alias for the database entity with the
267  // name 'db_name'. Returns true if alias added; false if problems
268  // adding alias. Not protected by mutex -- call internally only.
269  bool add_alias__(const std::string &db_name, const std::string &alias);
270  bool add_alias__(const GroupingEntity *ge);
271 
272  bool begin_mode__(State new_state);
273  bool end_mode__(State current_state);
274 
275  void delete_database() override;
276 
277  AliasMap aliases_; ///< Stores alias mappings
278 
279  // Containers for all grouping entities
284 
289 
297 
299  mutable int stateCount;
302  };
303 } // namespace Ioss
304 
305 /** \brief Get the index (1-based) of the currently-active state.
306  *
307  * \returns The index.
308  */
309 inline int Ioss::Region::get_current_state() const { return currentState; }
310 
312 {
313  return static_cast<unsigned int>((get_database()->entity_field_support() & fld_type) != 0u) != 0u;
314 }
315 
316 inline int64_t Ioss::Region::node_global_to_local(int64_t global, bool must_exist) const
317 {
318  return get_database()->node_global_to_local(global, must_exist);
319 }
320 
321 /** \brief Get all information records (informative strings) for the region's database.
322  *
323  * \returns The informative strings.
324  */
325 inline const std::vector<std::string> &Ioss::Region::get_information_records() const
326 {
327  IOSS_FUNC_ENTER(m_);
328  return get_database()->get_information_records();
329 }
330 
331 /** \brief Add multiple information records (informative strings) to the region's database.
332  *
333  * \param[in] info The strings to add.
334  */
335 inline void Ioss::Region::add_information_records(const std::vector<std::string> &info)
336 {
337  IOSS_FUNC_ENTER(m_);
338  return get_database()->add_information_records(info);
339 }
340 
341 /** \brief Add an information record (an informative string) to the region's database.
342  *
343  * \param[in] info The string to add.
344  */
345 inline void Ioss::Region::add_information_record(const std::string &info)
346 {
347  IOSS_FUNC_ENTER(m_);
348  return get_database()->add_information_record(info);
349 }
350 
351 /** \brief Add a QA record, which consists of 4 strings, to the region's database
352  *
353  * The 4 function parameters correspond to the 4 QA record strings.
354  *
355  * \param[in] code A descriptive code name, such as the application that modified the database.
356  * \param[in] code_qa A descriptive string, such as the version of the application that modified
357  * the database.
358  * \param[in] date A relevant date, such as the date the database was modified.
359  * \param[in] time A relevant time, such as the time the database was modified.
360  */
361 inline void Ioss::Region::add_qa_record(const std::string &code, const std::string &code_qa,
362  const std::string &date, const std::string &time)
363 {
364  IOSS_FUNC_ENTER(m_);
365  return get_database()->add_qa_record(code, code_qa, date, time);
366 }
367 
368 /** \brief Get all QA records, each of which consists of 4 strings, from the region's database.
369  *
370  * The 4 strings that make up a database QA record are:
371  *
372  * 1. A descriptive code name, such as the application that modified the database.
373  *
374  * 2. A descriptive string, such as the version of the application that modified the database.
375  *
376  * 3. A relevant date, such as the date the database was modified.
377  *
378  * 4. A relevant time, such as the time the database was modified.
379  *
380  * \returns All QA records in a single vector. Every 4 consecutive elements of the
381  * vector make up a single QA record.
382  */
383 inline const std::vector<std::string> &Ioss::Region::get_qa_records() const
384 {
385  IOSS_FUNC_ENTER(m_);
386  return get_database()->get_qa_records();
387 }
388 
389 #endif
Ioss::SideSetContainer
std::vector< SideSet * > SideSetContainer
Definition: Ioss_Region.h:61
Ioss::Region::edgeSets
EdgeSetContainer edgeSets
Definition: Ioss_Region.h:286
Ioss::Region::transientDefined
bool transientDefined
Definition: Ioss_Region.h:301
Ioss::Region::assemblies
AssemblyContainer assemblies
Definition: Ioss_Region.h:294
Ioss::Region::is_valid_io_entity
bool is_valid_io_entity(const std::string &my_name, unsigned int io_type, std::string *my_type=nullptr) const
Determine whether the entity with the given name and type exists.
Definition: Ioss_Region.C:2160
Ioss::Region::node_global_to_local
int64_t node_global_to_local(int64_t global, bool must_exist=true) const
Definition: Ioss_Region.h:316
Ioss::MeshType
MeshType
The mesh type – structured, unstructured, hybrid (future), or unknown.
Definition: Ioss_MeshType.h:13
Ioss::Region::get_structured_block
StructuredBlock * get_structured_block(const std::string &my_name) const
Get the structured block with the given name.
Definition: Ioss_Region.C:1974
Ioss::Field
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:22
Ioss_Property.h
Ioss::Region::remove
bool remove(Assembly *removal)
Remove an assembly to the region.
Definition: Ioss_Region.C:1099
Ioss::Region::currentState
int currentState
Definition: Ioss_Region.h:298
Ioss::Region::transfer_mesh_aliases
void transfer_mesh_aliases(Region *to) const
Transfer all relevant aliases from this region to another region.
Definition: Ioss_Region.C:2443
Ioss::StateTimeContainer
std::vector< double > StateTimeContainer
Definition: Ioss_Region.h:64
Ioss::Region::modelDefined
bool modelDefined
Definition: Ioss_Region.h:300
Ioss::Region::get_assembly
Assembly * get_assembly(const std::string &my_name) const
Get the assembly with the given name.
Definition: Ioss_Region.C:1848
Ioss::Region::get_nodesets
const NodeSetContainer & get_nodesets() const
Get all the region's NodeSet objects.
Definition: Ioss_Region.C:1491
Ioss::Region::add_alias
bool add_alias(const std::string &db_name, const std::string &alias)
Add an alias for a name in a region.
Definition: Ioss_Region.C:1586
Ioss::Assembly
A homogeneous collection of other GroupingEntities.
Definition: Ioss_Assembly.h:28
Ioss::Region::edgeBlocks
EdgeBlockContainer edgeBlocks
Definition: Ioss_Region.h:281
Ioss::Region::get_elementset
ElementSet * get_elementset(const std::string &my_name) const
Get the element set with the given name.
Definition: Ioss_Region.C:2097
Ioss::Blob
A homogeneous collection of other GroupingEntities.
Definition: Ioss_Blob.h:28
Ioss::Region::get_node_block
NodeBlock * get_node_block(const std::string &my_name) const
Get the node block with the given name.
Definition: Ioss_Region.C:1890
Ioss::Region::elementBlocks
ElementBlockContainer elementBlocks
Definition: Ioss_Region.h:283
Ioss::AssemblyContainer
std::vector< Ioss::Assembly * > AssemblyContainer
Definition: Ioss_Region.h:48
Ioss::Region::get_alias__
std::string get_alias__(const std::string &alias) const
Definition: Ioss_Region.C:1630
Ioss::Region::type_string
std::string type_string() const override
Get the name of the particular type of entity.
Definition: Ioss_Region.h:84
Ioss::Region::get_state_time
virtual double get_state_time(int state=-1) const
Get the time corresponding to the specified state or the currently active state.
Definition: Ioss_Region.C:826
Ioss::Region::blobs
BlobContainer blobs
Definition: Ioss_Region.h:295
Ioss::Region::end_state
double end_state(int state)
End a state (moment in time).
Definition: Ioss_Region.C:994
IOSS_FUNC_ENTER
#define IOSS_FUNC_ENTER(m)
Definition: Ioss_CodeTypes.h:100
Ioss::Region::elementSets
ElementSetContainer elementSets
Definition: Ioss_Region.h:288
Ioss::Region::get_edgesets
const EdgeSetContainer & get_edgesets() const
Get all the region's EdgeSet objects.
Definition: Ioss_Region.C:1497
Ioss::Region::begin_mode__
bool begin_mode__(State new_state)
Definition: Ioss_Region.C:627
Ioss::EdgeBlock
A collection of element edges with the same topology.
Definition: Ioss_EdgeBlock.h:28
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Ioss::Region::add_information_records
void add_information_records(const std::vector< std::string > &info)
Add multiple information records (informative strings) to the region's database.
Definition: Ioss_Region.h:335
Ioss::Region::get_coordinate_frame
const CoordinateFrame & get_coordinate_frame(int64_t id) const
Get the coordinate frame with the given id.
Definition: Ioss_Region.C:2139
Ioss::Region::add_qa_record
void add_qa_record(const std::string &code, const std::string &code_qa, const std::string &date="", const std::string &time="")
Add a QA record, which consists of 4 strings, to the region's database.
Definition: Ioss_Region.h:361
Ioss::Region::structuredBlocks
StructuredBlockContainer structuredBlocks
Definition: Ioss_Region.h:293
Ioss::State
State
Access states for a database.
Definition: Ioss_State.h:16
Ioss::Region::get_facesets
const FaceSetContainer & get_facesets() const
Get all the region's FaceSet objects.
Definition: Ioss_Region.C:1503
Ioss::Region::end_mode__
bool end_mode__(State current_state)
Definition: Ioss_Region.C:675
Ioss::Region
A grouping entity that contains other grouping entities.
Definition: Ioss_Region.h:78
Ioss::Region::get_nodeset
NodeSet * get_nodeset(const std::string &my_name) const
Get the node set with the given name.
Definition: Ioss_Region.C:2034
Ioss::AliasMap
std::map< std::string, std::string, std::less< std::string > > AliasMap
Definition: Ioss_Region.h:68
Ioss::Region::begin_state
double begin_state(int state)
Begin a state (moment in time).
Definition: Ioss_Region.C:942
Ioss::Region::get_max_time
std::pair< int, double > get_max_time() const
Get the maximum time step index (1-based) and time for the region.
Definition: Ioss_Region.C:878
Ioss::Region::stateCount
int stateCount
Definition: Ioss_Region.h:299
Ioss::Region::nodeSets
NodeSetContainer nodeSets
Definition: Ioss_Region.h:285
Ioss::NodeBlockContainer
std::vector< NodeBlock * > NodeBlockContainer
Definition: Ioss_Region.h:51
Ioss::NodeSet
A collection of nodes.
Definition: Ioss_NodeSet.h:28
Ioss::FaceBlockContainer
std::vector< FaceBlock * > FaceBlockContainer
Definition: Ioss_Region.h:53
Ioss::FaceSet
A collection of element faces.
Definition: Ioss_FaceSet.h:29
Ioss::StructuredBlock
A structured zone – i,j,k.
Definition: Ioss_StructuredBlock.h:78
Ioss::Region::add_information_record
void add_information_record(const std::string &info)
Add an information record (an informative string) to the region's database.
Definition: Ioss_Region.h:345
Ioss::EdgeSet
A collection of element edges.
Definition: Ioss_EdgeSet.h:29
Ioss::ElementSet
A collection of elements.
Definition: Ioss_ElementSet.h:29
Ioss::Region::get_face_blocks
const FaceBlockContainer & get_face_blocks() const
Get all the region's FaceBlock objects.
Definition: Ioss_Region.C:1467
Ioss::Region::sideSets
SideSetContainer sideSets
Definition: Ioss_Region.h:290
Ioss::StructuredBlockContainer
std::vector< StructuredBlock * > StructuredBlockContainer
Definition: Ioss_Region.h:62
Ioss::Region::get_sideset
SideSet * get_sideset(const std::string &my_name) const
Get the side set with the given name.
Definition: Ioss_Region.C:1995
Ioss::Region::internal_put_field_data
int64_t internal_put_field_data(const Field &field, void *data, size_t data_size=0) const override
Definition: Ioss_Region.C:2434
Ioss::EntityType
EntityType
The particular type of GroupingEntity.
Definition: Ioss_EntityType.h:13
Ioss::CommSet
Definition: Ioss_CommSet.h:26
Ioss::CoordinateFrame
Definition: Ioss_CoordinateFrame.h:17
Ioss::Region::begin_mode
bool begin_mode(State new_state)
Set the Region and the associated DatabaseIO to the given State.
Definition: Ioss_Region.C:602
Ioss_EntityType.h
Ioss::Region::nodeBlocks
NodeBlockContainer nodeBlocks
Definition: Ioss_Region.h:280
Ioss::Region::get_element_block
ElementBlock * get_element_block(const std::string &my_name) const
Get the element block with the given name.
Definition: Ioss_Region.C:1953
Ioss::Region::get_commsets
const CommSetContainer & get_commsets() const
Get all the region's CommSet objects.
Definition: Ioss_Region.C:1515
Ioss::Region::Region
Region(DatabaseIO *iodatabase=nullptr, const std::string &my_name="")
Constructor reads in all metadata from disk.
Definition: Ioss_Region.C:332
Ioss::ElementBlockContainer
std::vector< ElementBlock * > ElementBlockContainer
Definition: Ioss_Region.h:54
Ioss::Region::get_aliases
int get_aliases(const std::string &my_name, std::vector< std::string > &aliases) const
Get a map containing all aliases defined for the entity with basename 'name'.
Definition: Ioss_Region.C:1648
Ioss::FaceBlock
A collection of element faces with the same topology.
Definition: Ioss_FaceBlock.h:28
Ioss_MeshType.h
Ioss::Region::node_major
bool node_major() const
Definition: Ioss_Region.C:445
Ioss::Region::~Region
~Region() override
Definition: Ioss_Region.C:376
Ioss::REGION
@ REGION
Definition: Ioss_EntityType.h:26
Ioss::DatabaseIO
An input or output Database.
Definition: Ioss_DatabaseIO.h:59
Ioss::Region::internal_get_field_data
int64_t internal_get_field_data(const Field &field, void *data, size_t data_size=0) const override
Definition: Ioss_Region.C:2429
Ioss::Region::get_information_records
const std::vector< std::string > & get_information_records() const
Get all information records (informative strings) for the region's database.
Definition: Ioss_Region.h:325
Ioss::BlobContainer
std::vector< Ioss::Blob * > BlobContainer
Definition: Ioss_Region.h:49
Ioss::Region::get_blobs
const BlobContainer & get_blobs() const
Get all the region's Blob objects.
Definition: Ioss_Region.C:1449
Ioss::Region::add
bool add(NodeBlock *node_block)
Add a node block to the region.
Definition: Ioss_Region.C:1074
Ioss::Region::get_min_time
std::pair< int, double > get_min_time() const
Get the minimum time step index (1-based) and time for the region.
Definition: Ioss_Region.C:911
Ioss::NodeSetContainer
std::vector< NodeSet * > NodeSetContainer
Definition: Ioss_Region.h:56
Ioss::CoordinateFrameContainer
std::vector< CoordinateFrame > CoordinateFrameContainer
Definition: Ioex_Utils.h:26
Ioss_State.h
Ioss::SideBlock
A collection of element sides having the same topology.
Definition: Ioss_SideBlock.h:34
Ioss::Region::contains_string
std::string contains_string() const override
What does this entity contain.
Definition: Ioss_Region.h:86
Ioss::Region::get_sideblock
SideBlock * get_sideblock(const std::string &my_name) const
Get the side block with the given name.
Definition: Ioss_Region.C:2016
Ioss::Region::get_assemblies
const AssemblyContainer & get_assemblies() const
Get all the region's Assembly objects.
Definition: Ioss_Region.C:1443
Ioss::Region::get_node_blocks
const NodeBlockContainer & get_node_blocks() const
Get all the region's NodeBlock objects.
Definition: Ioss_Region.C:1455
Ioss::Region::get_edge_block
EdgeBlock * get_edge_block(const std::string &my_name) const
Get the edge block with the given name.
Definition: Ioss_Region.C:1911
Ioss::Region::get_blob
Blob * get_blob(const std::string &my_name) const
Get the blob with the given name.
Definition: Ioss_Region.C:1869
Ioss::Region::short_type_string
std::string short_type_string() const override
Get a short name of the particular type of entity.
Definition: Ioss_Region.h:85
Ioss::Region::model_defined
bool model_defined() const
Determine whether the metadata defining the model (nontransient, geometry, and toploloty) has been se...
Definition: Ioss_Region.h:123
Ioss::Region::stateTimes
StateTimeContainer stateTimes
Definition: Ioss_Region.h:296
Ioss::Region::get_qa_records
const std::vector< std::string > & get_qa_records() const
Get all QA records, each of which consists of 4 strings, from the region's database.
Definition: Ioss_Region.h:383
Ioss::Region::get_coordinate_frames
const CoordinateFrameContainer & get_coordinate_frames() const
Get all the region's CoordinateFrame objects.
Definition: Ioss_Region.C:1521
Ioss::Region::aliases_
AliasMap aliases_
Stores alias mappings.
Definition: Ioss_Region.h:277
Ioss::Region::coordinateFrames
CoordinateFrameContainer coordinateFrames
Definition: Ioss_Region.h:292
Ioss::Region::mesh_type_string
const std::string mesh_type_string() const
Definition: Ioss_Region.C:462
Ioss::ElementBlock
A collection of elements having the same topology.
Definition: Ioss_ElementBlock.h:23
Ioss::Region::transient_defined
bool transient_defined() const
Determine whether the metadata related to the transient data has been set.
Definition: Ioss_Region.h:130
Ioss_GroupingEntity.h
Ioss_CoordinateFrame.h
Ioss::Region::get_edgeset
EdgeSet * get_edgeset(const std::string &my_name) const
Get the edge set with the given name.
Definition: Ioss_Region.C:2055
Ioss::Region::get_edge_blocks
const EdgeBlockContainer & get_edge_blocks() const
Get all the region's EdgeBlock objects.
Definition: Ioss_Region.C:1461
Ioss::Region::end_mode
bool end_mode(State current_state)
Return the Region and the associated DatabaseIO to STATE_CLOSED.
Definition: Ioss_Region.C:669
Ioss::Region::add_state__
virtual int add_state__(double time)
Add a state for a specified time.
Definition: Ioss_Region.C:779
Ioss::EdgeSetContainer
std::vector< EdgeSet * > EdgeSetContainer
Definition: Ioss_Region.h:57
Ioss::Region::get_face_block
FaceBlock * get_face_block(const std::string &my_name) const
Get the face block with the given name.
Definition: Ioss_Region.C:1932
Ioss::CommSetContainer
std::vector< CommSet * > CommSetContainer
Definition: Ioss_Region.h:63
Ioss::Region::get_faceset
FaceSet * get_faceset(const std::string &my_name) const
Get the face set with the given name.
Definition: Ioss_Region.C:2076
anonymous_namespace{cth_pressure_map.C}::data
std::vector< char > data
Definition: cth_pressure_map.C:48
Ioss::Region::get_entity
GroupingEntity * get_entity(const std::string &my_name, EntityType io_type) const
Get an entity of a known EntityType.
Definition: Ioss_Region.C:1674
Ioss::Region::output_summary
void output_summary(std::ostream &strm, bool do_transient=true) const
Print a summary of entities in the region.
Definition: Ioss_Region.C:479
Ioss::Region::add_state
virtual int add_state(double time)
Definition: Ioss_Region.h:104
Ioss::Region::get_elementsets
const ElementSetContainer & get_elementsets() const
Get all the region's ElementSet objects.
Definition: Ioss_Region.C:1509
Ioss::NodeBlock
A collection of all nodes in the region.
Definition: Ioss_NodeBlock.h:28
Ioss::EdgeBlockContainer
std::vector< EdgeBlock * > EdgeBlockContainer
Definition: Ioss_Region.h:52
Ioss::Region::get_alias_map
const AliasMap & get_alias_map() const
Get all original name / alias pairs for the region.
Definition: Ioss_Region.C:1666
Ioss::Region::faceBlocks
FaceBlockContainer faceBlocks
Definition: Ioss_Region.h:282
Ioss::FaceSetContainer
std::vector< FaceSet * > FaceSetContainer
Definition: Ioss_Region.h:58
Ioss::Region::supports_field_type
bool supports_field_type(Ioss::EntityType fld_type) const
Definition: Ioss_Region.h:311
Ioss::Region::commSets
CommSetContainer commSets
Definition: Ioss_Region.h:291
Ioss::Region::get_implicit_property
Property get_implicit_property(const std::string &my_name) const override
Get an implicit property – These are calcuated from data stored in the grouping entity instead of hav...
Definition: Ioss_Region.C:2305
Ioss::Region::get_element_blocks
const ElementBlockContainer & get_element_blocks() const
Get all the region's ElementBlock objects.
Definition: Ioss_Region.C:1473
Ioss::Region::get_sidesets
const SideSetContainer & get_sidesets() const
Get all the region's SideSet objects.
Definition: Ioss_Region.C:1485
Ioss::Region::synchronize_id_and_name
void synchronize_id_and_name(const Region *from, bool sync_attribute_field_names=false)
Ensure that the restart and results files have the same ids.
Definition: Ioss_Region.C:2496
Ioss::ElementSetContainer
std::vector< ElementSet * > ElementSetContainer
Definition: Ioss_Region.h:59
Ioss::Property
A named value that has a known type.
Definition: Ioss_Property.h:24
Ioss::Region::add_alias__
bool add_alias__(const std::string &db_name, const std::string &alias)
Definition: Ioss_Region.C:1592
Ioss::Region::get_structured_blocks
const StructuredBlockContainer & get_structured_blocks() const
Get all the region's StructuredBlock objects.
Definition: Ioss_Region.C:1479
Ioss::Region::delete_database
void delete_database() override
Definition: Ioss_Region.C:443
Ioss::SideSet
A collection of element sides.
Definition: Ioss_SideSet.h:28
Ioss::GroupingEntity
Base class for all 'grouping' entities. The following derived classes are typical:
Definition: Ioss_GroupingEntity.h:68
Ioss::Region::type
EntityType type() const override
Get the EntityType, which indicates the particular type of GroupingEntity this is.
Definition: Ioss_Region.h:87
Ioss::Region::get_commset
CommSet * get_commset(const std::string &my_name) const
Get the comm set with the given name.
Definition: Ioss_Region.C:2118
Ioss::Region::faceSets
FaceSetContainer faceSets
Definition: Ioss_Region.h:287
Ioss_DatabaseIO.h
Ioss::Region::mesh_type
MeshType mesh_type() const
Definition: Ioss_Region.C:447
Ioss::Region::get_current_state
int get_current_state() const
Get the index (1-based) of the currently-active state.
Definition: Ioss_Region.h:309
Ioss::Region::get_alias
std::string get_alias(const std::string &alias) const
Get the original name for an alias.
Definition: Ioss_Region.C:1624