162 #ifndef vtkIOSSReader_h
163 #define vtkIOSSReader_h
165 #include "vtkIOIOSSModule.h"
171 VTK_ABI_NAMESPACE_BEGIN
189 void ClearFileNames();
191 int GetNumberOfFileNames()
const;
204 vtkSetStringMacro(DatabaseTypeOverride);
205 vtkGetStringMacro(DatabaseTypeOverride);
213 void SetDisplacementMagnitude(
double magnitude);
214 double GetDisplacementMagnitude();
227 void SetGroupNumericVectorFieldComponents(
bool value);
228 bool GetGroupNumericVectorFieldComponents();
235 void SetFieldSuffixSeparator(
const char*
value);
244 void SetScanForRelatedFiles(
bool value);
245 vtkGetMacro(ScanForRelatedFiles,
bool);
246 vtkBooleanMacro(ScanForRelatedFiles,
bool);
263 vtkSetVector2Macro(FileRange,
int);
264 vtkGetVector2Macro(FileRange,
int);
266 vtkGetMacro(FileStride,
int);
275 void SetMergeExodusEntityBlocks(
bool value);
276 vtkGetMacro(MergeExodusEntityBlocks,
bool);
277 vtkBooleanMacro(MergeExodusEntityBlocks,
bool);
288 vtkSetMacro(GenerateFileId,
bool);
289 vtkGetMacro(GenerateFileId,
bool);
290 vtkBooleanMacro(GenerateFileId,
bool);
298 vtkSetMacro(ReadIds,
bool);
299 vtkGetMacro(ReadIds,
bool);
300 vtkBooleanMacro(ReadIds,
bool);
312 void SetRemoveUnusedPoints(
bool);
313 vtkGetMacro(RemoveUnusedPoints,
bool);
314 vtkBooleanMacro(RemoveUnusedPoints,
bool);
322 vtkSetMacro(ApplyDisplacements,
bool);
323 vtkGetMacro(ApplyDisplacements,
bool);
324 vtkBooleanMacro(ApplyDisplacements,
bool);
331 vtkSetMacro(ReadGlobalFields,
bool);
332 vtkGetMacro(ReadGlobalFields,
bool);
333 vtkBooleanMacro(ReadGlobalFields,
bool);
345 void SetReadAllFilesToDetermineStructure(
bool);
346 vtkGetMacro(ReadAllFilesToDetermineStructure,
bool);
347 vtkBooleanMacro(ReadAllFilesToDetermineStructure,
bool);
355 vtkSetMacro(ReadQAAndInformationRecords,
bool);
356 vtkGetMacro(ReadQAAndInformationRecords,
bool);
357 vtkBooleanMacro(ReadQAAndInformationRecords,
bool);
383 void AddProperty(
const char*
name,
int value);
384 void AddProperty(
const char*
name,
double value);
385 void AddProperty(
const char*
name,
void*
value);
386 void AddProperty(
const char*
name,
const char*
value);
387 void RemoveProperty(
const char*
name);
388 void ClearProperties();
405 BLOCK_START = NODEBLOCK,
408 SET_END = NUMBER_OF_ENTITY_TYPES,
409 ENTITY_START = NODEBLOCK,
410 ENTITY_END = NUMBER_OF_ENTITY_TYPES,
415 static const char* GetDataAssemblyNodeNameForEntityType(
int type);
416 static const char* GetMergedEntityNameForEntityType(
int type);
424 return this->GetEntitySelection(ELEMENTBLOCK);
428 return this->GetEntitySelection(STRUCTUREDBLOCK);
442 return this->GetFieldSelection(ELEMENTBLOCK);
446 return this->GetFieldSelection(STRUCTUREDBLOCK);
453 return this->GetFieldSelection(ELEMENTSET);
457 void RemoveAllEntitySelections();
458 void RemoveAllFieldSelections();
461 this->RemoveAllEntitySelections();
462 this->RemoveAllFieldSelections();
471 const std::map<std::string, vtkTypeInt64>& GetEntityIdMap(
int type)
const;
474 return this->GetEntityIdMap(NODEBLOCK);
478 return this->GetEntityIdMap(EDGEBLOCK);
482 return this->GetEntityIdMap(FACEBLOCK);
486 return this->GetEntityIdMap(ELEMENTBLOCK);
490 return this->GetEntityIdMap(STRUCTUREDBLOCK);
494 return this->GetEntityIdMap(NODESET);
498 return this->GetEntityIdMap(EDGESET);
502 return this->GetEntityIdMap(FACESET);
506 return this->GetEntityIdMap(ELEMENTSET);
510 return this->GetEntityIdMap(SIDESET);
523 return this->GetEntityIdMapAsString(NODEBLOCK);
527 return this->GetEntityIdMapAsString(EDGEBLOCK);
531 return this->GetEntityIdMapAsString(FACEBLOCK);
535 return this->GetEntityIdMapAsString(ELEMENTBLOCK);
539 return this->GetEntityIdMapAsString(STRUCTUREDBLOCK);
546 return this->GetEntityIdMapAsString(ELEMENTSET);
573 vtkGetMacro(AssemblyTag,
int);
580 bool AddSelector(
const char* selector);
581 void ClearSelectors();
582 void SetSelector(
const char* selector);
589 int GetNumberOfSelectors()
const;
590 const char* GetSelector(
int index)
const;
611 static bool DoTestFilePatternMatching();
632 std::map<std::string, vtkTypeInt64> EntityIdMap[NUMBER_OF_ENTITY_TYPES + 1];
636 bool MergeExodusEntityBlocks;
638 bool ScanForRelatedFiles;
640 bool RemoveUnusedPoints;
641 bool ApplyDisplacements;
642 bool ReadAllFilesToDetermineStructure;
643 bool ReadGlobalFields;
644 bool ReadQAAndInformationRecords;
645 char* DatabaseTypeOverride;
651 vtkInternals* Internals;
656 VTK_ABI_NAMESPACE_END
std::string GetFileName(const std::string &fileName) noexcept
Set the appropriate file name based on recognized user input.
static bool GetEntityTypeIsSet(int type)
vtkTypeUInt32 vtkMTimeType
vtkDataArraySelection * GetEdgeSetFieldSelection()
vtkDataArraySelection * GetElementSetSelection()
a vtkAbstractArray subclass for strings
vtkDataArraySelection * GetNodeBlockFieldSelection()
vtkDataArraySelection * GetFaceSetSelection()
vtkDataArraySelection * GetFaceSetFieldSelection()
const std::map< std::string, vtkTypeInt64 > & GetElementSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkStringArray * GetFaceBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetEdgeSetSelection()
vtkDataArraySelection * GetElementBlockSelection()
vtkDataArraySelection * GetNodeBlockSelection()
vtkDataArraySelection * GetNodeSetSelection()
vtkStringArray * GetElementBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkStringArray * GetSideSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetSideSetFieldSelection()
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
const std::map< std::string, vtkTypeInt64 > & GetFaceBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
a simple class to control print indentation
vtkStringArray * GetEdgeSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
Store on/off settings for data arrays, etc.
vtkStringArray * GetFaceSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkDataArraySelection * GetElementSetFieldSelection()
const std::map< std::string, vtkTypeInt64 > & GetSideSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
const std::map< std::string, vtkTypeInt64 > & GetNodeBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkDataArraySelection * GetEdgeBlockFieldSelection()
vtkStringArray * GetElementSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetNodeSetFieldSelection()
int ReadArrays(int, int, int, int, vtkDataObject *) override
Implementation for vtkReaderAlgorithm API.
vtkDataArraySelection * GetFaceBlockSelection()
virtual int ReadMesh(int piece, int npieces, int nghosts, int timestep, vtkDataObject *output)=0
Read the mesh (connectivity) for a given set of data partitioning, number of ghost levels and time st...
Reader for IOSS (Sierra IO System)
int ReadPoints(int, int, int, int, vtkDataObject *) override
Implementation for vtkReaderAlgorithm API.
vtkDataArraySelection * GetElementBlockFieldSelection()
vtkDataArraySelection * GetEdgeBlockSelection()
const std::map< std::string, vtkTypeInt64 > & GetEdgeBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkDataArraySelection * GetFaceBlockFieldSelection()
const std::map< std::string, vtkTypeInt64 > & GetEdgeSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
virtual int ReadMetaData(vtkInformation *metadata)=0
Provide meta-data for the pipeline.
static vtkAlgorithm * New()
const std::map< std::string, vtkTypeInt64 > & GetElementBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
static bool GetEntityTypeIsBlock(int type)
hierarchical representation to use with vtkPartitionedDataSetCollection
vtkStringArray * GetStructuredBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetSideSetSelection()
vtkStringArray * GetNodeBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
general representation of visualization data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const std::map< std::string, vtkTypeInt64 > & GetStructuredBlockIdMap() const
In IOSS entity blocks/sets may have unique ids.
const std::map< std::string, vtkTypeInt64 > & GetNodeSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
Overridden to call appropriate handle pipeline request from executive.
vtkStringArray * GetEdgeBlockIdMapAsString() const
This API is not really meant for public use and may change without notices.
vtkDataArraySelection * GetStructuredBlockFieldSelection()
const std::map< std::string, vtkTypeInt64 > & GetFaceSetIdMap() const
In IOSS entity blocks/sets may have unique ids.
vtkDataArraySelection * GetStructuredBlockSelection()
Superclass for readers that implement a simplified API.
void RemoveAllSelections()
vtkStringArray * GetNodeSetIdMapAsString() const
This API is not really meant for public use and may change without notices.
Multiprocessing communication superclass.