Go to the documentation of this file.
40 #ifndef vtkExodusIIReader_h
41 #define vtkExodusIIReader_h
43 #include "vtkIOExodusModule.h"
87 vtkGetStringMacro(FileName);
95 vtkGetStringMacro(XMLFileName);
102 vtkSetMacro(TimeStep,
int);
103 vtkGetMacro(TimeStep,
int);
112 this->SetTimeStep(val-1);
122 vtkGetVector2Macro(ModeShapesRange,
int);
131 vtkGetVector2Macro(TimeStepRange,
int);
183 SEARCH_TYPE_ELEMENT=0,
187 ID_NOT_FOUND=-234121312
214 GLOBAL_TEMPORAL = 102,
215 NODAL_TEMPORAL = 101,
216 ELEM_BLOCK_TEMPORAL = 100,
218 ELEM_BLOCK_ELEM_CONN = 98,
219 ELEM_BLOCK_FACE_CONN = 97,
220 ELEM_BLOCK_EDGE_CONN = 96,
221 FACE_BLOCK_CONN = 95,
222 EDGE_BLOCK_CONN = 94,
230 IMPLICIT_ELEMENT_ID = 108,
231 IMPLICIT_NODE_ID = 107,
232 GLOBAL_ELEMENT_ID = 86,
236 NODAL_SQUEEZEMAP = 82,
237 ELEM_BLOCK_ATTRIB = 81,
238 FACE_BLOCK_ATTRIB = 80,
239 EDGE_BLOCK_ATTRIB = 79,
354 vtkBooleanMacro(IgnoreFileTime,
bool);
383 {
return this->GetObjectStatus( objectType, this->GetObjectIndex( objectType, objectName ) ); }
400 {
return this->GetObjectArrayStatus( objectType, this->GetObjectArrayIndex( objectType, arrayName ) ); }
417 {
return this->GetObjectAttributeStatus( objectType, objectIndex,
418 this->GetObjectAttributeIndex( objectType, objectIndex, attribName ) ); }
421 { this->SetObjectAttributeStatus( objectType, objectIndex,
422 this->GetObjectAttributeIndex( objectType, objectIndex, attribName ), status ); }
497 vtkGetMacro(DisplayType,
int);
523 {
return this->GetNumberOfObjects(EDGE_BLOCK); }
525 {
return this->GetObjectName(EDGE_BLOCK,
index); }
527 {
return this->GetObjectStatus(EDGE_BLOCK,
name); }
529 { this->SetObjectStatus(EDGE_BLOCK,
name, flag); }
532 {
return this->GetNumberOfObjects(FACE_BLOCK); }
534 {
return this->GetObjectName(FACE_BLOCK,
index); }
536 {
return this->GetObjectStatus(FACE_BLOCK,
name); }
538 { this->SetObjectStatus(FACE_BLOCK,
name, flag); }
541 {
return this->GetNumberOfObjects(ELEM_BLOCK); }
543 {
return this->GetObjectName(ELEM_BLOCK,
index); }
545 {
return this->GetObjectStatus(ELEM_BLOCK,
name); }
547 { this->SetObjectStatus(ELEM_BLOCK,
name, flag); }
550 {
return this->GetNumberOfObjectArrays(GLOBAL); }
552 {
return this->GetObjectArrayName(GLOBAL,
index); }
554 {
return this->GetObjectArrayStatus(GLOBAL,
name); }
556 { this->SetObjectArrayStatus(GLOBAL,
name, flag); }
559 {
return this->GetNumberOfObjectArrays(NODAL); }
561 {
return this->GetObjectArrayName(NODAL,
index); }
563 {
return this->GetObjectArrayStatus(NODAL,
name); }
565 { this->SetObjectArrayStatus(NODAL,
name, flag); }
568 {
return this->GetNumberOfObjectArrays(EDGE_BLOCK); }
570 {
return this->GetObjectArrayName(EDGE_BLOCK,
index); }
572 {
return this->GetObjectArrayStatus(EDGE_BLOCK,
name); }
574 { this->SetObjectArrayStatus(EDGE_BLOCK,
name, flag); }
577 {
return this->GetNumberOfObjectArrays(FACE_BLOCK); }
579 {
return this->GetObjectArrayName(FACE_BLOCK,
index); }
581 {
return this->GetObjectArrayStatus(FACE_BLOCK,
name); }
583 { this->SetObjectArrayStatus(FACE_BLOCK,
name, flag); }
586 {
return this->GetNumberOfObjectArrays(ELEM_BLOCK); }
588 {
return this->GetObjectArrayName(ELEM_BLOCK,
index); }
590 {
return this->GetObjectArrayStatus(ELEM_BLOCK,
name); }
592 { this->SetObjectArrayStatus(ELEM_BLOCK,
name, flag); }
596 {
return this->GetNumberOfObjects(NODE_MAP); }
598 {
return this->GetObjectName(NODE_MAP,
index); }
600 {
return this->GetObjectStatus(NODE_MAP,
name); }
602 { this->SetObjectStatus(NODE_MAP,
name, flag); }
605 {
return this->GetNumberOfObjects(EDGE_MAP); }
607 {
return this->GetObjectName(EDGE_MAP,
index); }
609 {
return this->GetObjectStatus(EDGE_MAP,
name); }
611 { this->SetObjectStatus(EDGE_MAP,
name, flag); }
614 {
return this->GetNumberOfObjects(FACE_MAP); }
616 {
return this->GetObjectName(FACE_MAP,
index); }
618 {
return this->GetObjectStatus(FACE_MAP,
name); }
620 { this->SetObjectStatus(FACE_MAP,
name, flag); }
623 {
return this->GetNumberOfObjects(ELEM_MAP); }
625 {
return this->GetObjectName(ELEM_MAP,
index); }
627 {
return this->GetObjectStatus(ELEM_MAP,
name); }
629 { this->SetObjectStatus(ELEM_MAP,
name, flag); }
632 {
return this->GetNumberOfObjects(NODE_SET); }
634 {
return this->GetObjectName(NODE_SET,
index); }
636 {
return this->GetObjectStatus(NODE_SET,
name); }
638 { this->SetObjectStatus(NODE_SET,
name, flag); }
641 {
return this->GetNumberOfObjects(SIDE_SET); }
643 {
return this->GetObjectName(SIDE_SET,
index); }
645 {
return this->GetObjectStatus(SIDE_SET,
name); }
647 { this->SetObjectStatus(SIDE_SET,
name, flag); }
650 {
return this->GetNumberOfObjects(EDGE_SET); }
652 {
return this->GetObjectName(EDGE_SET,
index); }
654 {
return this->GetObjectStatus(EDGE_SET,
name); }
656 { this->SetObjectStatus(EDGE_SET,
name, flag); }
659 {
return this->GetNumberOfObjects(FACE_SET); }
661 {
return this->GetObjectName(FACE_SET,
index); }
663 {
return this->GetObjectStatus(FACE_SET,
name); }
665 { this->SetObjectStatus(FACE_SET,
name, flag); }
668 {
return this->GetNumberOfObjects(ELEM_SET); }
670 {
return this->GetObjectName(ELEM_SET,
index); }
672 {
return this->GetObjectStatus(ELEM_SET,
name); }
674 { this->SetObjectStatus(ELEM_SET,
name, flag); }
678 {
return this->GetNumberOfObjectArrays(NODE_SET); }
680 {
return this->GetObjectArrayName(NODE_SET,
index); }
682 {
return this->GetObjectArrayStatus(NODE_SET,
name); }
684 { this->SetObjectArrayStatus(NODE_SET,
name, flag); }
687 {
return this->GetNumberOfObjectArrays(SIDE_SET); }
689 {
return this->GetObjectArrayName(SIDE_SET,
index); }
691 {
return this->GetObjectArrayStatus(SIDE_SET,
name); }
693 { this->SetObjectArrayStatus(SIDE_SET,
name, flag); }
696 {
return this->GetNumberOfObjectArrays(EDGE_SET); }
698 {
return this->GetObjectArrayName(EDGE_SET,
index); }
700 {
return this->GetObjectArrayStatus(EDGE_SET,
name); }
702 { this->SetObjectArrayStatus(EDGE_SET,
name, flag); }
705 {
return this->GetNumberOfObjectArrays(FACE_SET); }
707 {
return this->GetObjectArrayName(FACE_SET,
index); }
709 {
return this->GetObjectArrayStatus(FACE_SET,
name); }
711 { this->SetObjectArrayStatus(FACE_SET,
name, flag); }
714 {
return this->GetNumberOfObjectArrays(ELEM_SET); }
716 {
return this->GetObjectArrayName(ELEM_SET,
index); }
718 {
return this->GetObjectArrayStatus(ELEM_SET,
name); }
720 { this->SetObjectArrayStatus(ELEM_SET,
name, flag); }
786 vtkGetMacro(SILUpdateStamp,
int);
832 int TimeStepRange[2];
854 int ModeShapesRange[2];
represent and manipulate 3D points
int GetNumberOfEdgeMapArrays()
int GetNumberOfElementSetArrays()
int GetGlobalResultArrayStatus(const char *name)
int GetNumberOfNodeMapArrays()
vtkTypeBool GetGenerateImplicitNodeIdArray()
int GetNumberOfNodeSetArrays()
virtual void SetGenerateGlobalElementIdArray(vtkTypeBool g)
static const char * GetImplicitElementIdArrayName()
int GetNumberOfObjectArrays(int objectType)
By default arrays are not loaded.
int GetNumberOfEntriesInObject(int objectType, int objectIndex)
virtual void SetMetadata(vtkExodusIIReaderPrivate *)
virtual void SetDisplayType(int type)
static int GetGlobalID(const char *arrayName, vtkDataSet *data, int localID, int searchType)
int GetObjectAttributeIndex(int objectType, int objectIndex, const char *attribName)
void SetFaceSetResultArrayStatus(const char *name, int flag)
int GetNumberOfElementBlockArrays()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static const char * GetSideSetSourceElementSideArrayName()
Get the name of the array that stores the mapping from side set cells back to the canonical side of t...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static const char * GetGlobalNodeIdArrayName()
Extra point data array that can be generated.
const char * GetFaceSetResultArrayName(int index)
int GetNumberOfFaceResultArrays()
const char * GetFaceSetArrayName(int index)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetCacheSize(double CacheSize)
Set the size of the cache in MiB.
void SetEdgeSetResultArrayStatus(const char *name, int flag)
static const char * GetImplicitFaceIdArrayName()
vtkExodusIIReaderPrivate * Metadata
const char * GetNodeSetArrayName(int index)
void SetEdgeBlockArrayStatus(const char *name, int flag)
void AdvertiseTimeSteps(vtkInformation *outputInfo)
Populates the TIME_STEPS and TIME_RANGE keys based on file metadata.
int GetNumberOfTimeSteps()
int GetObjectId(int objectType, int objectIndex)
void SetSideSetArrayStatus(const char *name, int flag)
int GetAssemblyArrayStatus(int index)
vtkTypeBool GetGenerateGlobalNodeIdArray()
vtkTimeStamp FileNameMTime
dynamic, self-adjusting array of float
int GetFaceMapArrayStatus(const char *name)
void SetEdgeResultArrayStatus(const char *name, int flag)
int GetElementSetResultArrayStatus(const char *name)
const char * GetEdgeSetResultArrayName(int index)
virtual void SetHasModeShapes(vtkTypeBool ms)
Set/Get whether the Exodus sequence number corresponds to time steps or mode shapes.
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
int GetNumberOfFaceSetArrays()
int GetNumberOfEdgeSetArrays()
int GetNumberOfElementMapArrays()
void SetMaterialArrayStatus(int index, int flag)
void SetObjectArrayStatus(int objectType, int arrayIndex, int status)
int GetNumberOfObjects(int objectType)
const char * GetEdgeMapArrayName(int index)
int GetNodeSetResultArrayStatus(const char *name)
const char * GetTitle()
Access to meta data generated by UpdateInformation.
record modification and/or execution time
const char * GetPartArrayName(int arrayIdx)
int GetMaterialArrayStatus(const char *)
float GetDisplacementMagnitude()
void SetNodeMapArrayStatus(const char *name, int flag)
const char * GetSideSetResultArrayName(int index)
const char * GetAssemblyArrayName(int arrayIdx)
int GetElementResultArrayStatus(const char *name)
virtual void SetGenerateObjectIdCellArray(vtkTypeBool g)
Extra cell data array that can be generated.
virtual void SetGenerateImplicitElementIdArray(vtkTypeBool g)
int GetObjectIndex(int objectType, int id)
virtual void SetAnimateModeShapes(vtkTypeBool flag)
If this flag is on (the default) and HasModeShapes is also on, then this reader will report a continu...
Read exodus 2 files .ex2.
static int GetIDHelper(const char *arrayName, vtkDataSet *data, int localID, int searchType)
void SetNodeSetResultArrayStatus(const char *name, int flag)
static int GetGlobalEdgeID(vtkDataSet *data, int localID)
static int GetGlobalElementID(vtkDataSet *data, int localID)
void ResetSettings()
Reset the user-specified parameters to their default values.
const char * GetElementSetArrayName(int index)
void SetNodeSetArrayStatus(const char *name, int flag)
void SetPointResultArrayStatus(const char *name, int flag)
void SetEdgeMapArrayStatus(const char *name, int flag)
virtual void SetFileName(const char *fname)
Specify file name of the Exodus file.
int GetNumberOfFaceSetResultArrays()
abstract superclass for arrays of numeric data
int GetNumberOfPartArrays()
By default all parts are loaded.
int GetSideSetArrayStatus(const char *name)
vtkTypeBool GetGenerateObjectIdCellArray()
int GetNumberOfEdgeSetResultArrays()
int GetAssemblyArrayID(const char *name)
int GetNumberOfElementResultArrays()
const char * GetNodeSetResultArrayName(int index)
const char * GetObjectName(int objectType, int objectIndex)
const char * GetElementMapArrayName(int index)
void SetHierarchyArrayStatus(int index, int flag)
int GetEdgeSetResultArrayStatus(const char *name)
void SetElementResultArrayStatus(const char *name, int flag)
int IsValidVariable(const char *type, const char *name)
return boolean indicating whether the type,name is a valid variable
int GetElementSetArrayStatus(const char *name)
int GetNumberOfAssemblyArrays()
By default all assemblies are loaded.
int GetMaterialArrayStatus(int index)
int GetEdgeResultArrayStatus(const char *name)
void SetElementSetArrayStatus(const char *name, int flag)
int GetNumberOfFaceBlockArrays()
static const char * GetObjectIdArrayName()
virtual void SetGenerateImplicitNodeIdArray(vtkTypeBool g)
void SetAssemblyArrayStatus(int index, int flag)
int GetNumberOfNodesInFile()
int GetNumberOfEdgeResultArrays()
void SetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex, int status)
void SetHierarchyArrayStatus(const char *, int flag)
int GetElementBlockArrayStatus(const char *name)
virtual void SetFileId(int f)
static const char * GetSideSetSourceElementIdArrayName()
Get the name of the array that stores the mapping from side set cells back to the global id of the el...
static vtkExodusIIReader * New()
void SetAssemblyArrayStatus(const char *, int flag)
static int GetGlobalNodeID(vtkDataSet *data, int localID)
virtual vtkIdType GetTotalNumberOfElements()
Read Exodus II files (.exii)
virtual void SetDisplacementMagnitude(float s)
int GetNumberOfSideSetResultArrays()
static const char * GetGlobalFaceIdArrayName()
const char * GetGlobalResultArrayName(int index)
int GetPartArrayStatus(const char *)
int GetHierarchyArrayStatus(const char *)
vtkTypeBool GetApplyDisplacements()
static const char * GetImplicitNodeIdArrayName()
int GetNumberOfFacesInFile()
void SetPartArrayStatus(int index, int flag)
int GetHierarchyArrayStatus(int index)
int GetObjectArrayStatus(int objectType, const char *arrayName)
const char * GetHierarchyArrayName(int arrayIdx)
vtkTypeBool GetHasModeShapes()
int GetObjectArrayIndex(int objectType, const char *arrayName)
int GetNumberOfElementsInFile()
int GetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex)
const char * GetNodeMapArrayName(int index)
static int GetGlobalEdgeID(vtkDataSet *data, int localID, int searchType)
int GetNumberOfNodeSetResultArrays()
void SetFaceBlockArrayStatus(const char *name, int flag)
const char * GetElementResultArrayName(int index)
const char * GetObjectAttributeName(int objectType, int objectIndex, int attribIndex)
vtkMTimeType GetMTime() override
Return the object's MTime.
static const char * GetGlobalEdgeIdArrayName()
int GetMaterialArrayID(const char *name)
const char * GetFaceResultArrayName(int index)
vtkTypeBool GetAnimateModeShapes()
void SetObjectArrayStatus(int objectType, const char *arrayName, int status)
a simple class to control print indentation
dynamic, self-adjusting array of int
void GetAllTimes(vtkInformationVector *)
int GetEdgeBlockArrayStatus(const char *name)
int GetNumberOfPointResultArrays()
const char * GetPartBlockInfo(int arrayIdx)
double GetCacheSize()
Get the size of the cache in MiB.
double GetModeShapeTime()
static const char * GetPedigreeEdgeIdArrayName()
int GetNodeSetArrayStatus(const char *name)
virtual vtkIdType GetTotalNumberOfNodes()
void SetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName, int status)
int GetNumberOfFaceMapArrays()
int GetPointResultArrayStatus(const char *name)
int GetPartArrayStatus(int index)
virtual vtkIdType GetTotalNumberOfEdges()
static int GetGlobalElementID(vtkDataSet *data, int localID, int searchType)
static int GetGlobalNodeID(vtkDataSet *data, int localID, int searchType)
const char * GetFaceMapArrayName(int index)
This class holds metadata for an Exodus file.
@ SEARCH_TYPE_NODE_THEN_ELEMENT
int GetNumberOfEdgeBlockArrays()
static const char * GetPedigreeFaceIdArrayName()
int GetObjectStatus(int objectType, int objectIndex)
const char * GetSideSetArrayName(int index)
virtual vtkMTimeType GetMetadataMTime()
Return the MTime of the internal data structure.
vtkTypeBool GetGenerateFileIdArray()
int GetNumberOfObjectArrayComponents(int objectType, int arrayIndex)
virtual int CanReadFile(const char *fname)
Determine if the file can be read with this reader.
int GetNodeMapArrayStatus(const char *name)
int GetElementMapArrayStatus(const char *name)
abstract class to specify dataset behavior
int GetObjectStatus(int objectType, const char *objectName)
void SetGlobalResultArrayStatus(const char *name, int flag)
int GetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName)
static const char * GetPedigreeNodeIdArrayName()
virtual void SetGenerateGlobalNodeIdArray(vtkTypeBool g)
void SetFaceSetArrayStatus(const char *name, int flag)
void SetPartArrayStatus(const char *, int flag)
vtkGraph * GetSIL()
SIL describes organization of/relationships between classifications eg.
void SetFaceMapArrayStatus(const char *name, int flag)
vtkTimeStamp XMLFileNameMTime
const char * GetObjectArrayName(int objectType, int arrayIndex)
void Reset()
Reset the user-specified parameters and flush internal arrays so that the reader state is just as it ...
int GetNumberOfMaterialArrays()
By default all materials are loaded.
void SetModeShape(int val)
Convenience method to set the mode-shape which is same as this->SetTimeStep(val-1);.
int GetObjectTypeFromName(const char *name)
void SetFaceResultArrayStatus(const char *name, int flag)
int GetMaxNameLength()
Get the max_name_length in the file.
int GetFaceSetArrayStatus(const char *name)
static const char * GetGlobalElementIdArrayName()
const char * GetPointResultArrayName(int index)
~vtkExodusIIReader() override
virtual void SetModeShapeTime(double phase)
Set/Get the time used to animate mode shapes.
static int GetGlobalFaceID(vtkDataSet *data, int localID)
static int GetGlobalFaceID(vtkDataSet *data, int localID, int searchType)
static const char * GetPedigreeElementIdArrayName()
static const char * GetImplicitEdgeIdArrayName()
const char * GetFaceBlockArrayName(int index)
int GetObjectArrayStatus(int objectType, int arrayIndex)
const char * GetObjectTypeName(int)
void SetMaterialArrayStatus(const char *, int flag)
const char * GetElementSetResultArrayName(int index)
int GetObjectIndex(int objectType, const char *objectName)
int GetPartArrayID(const char *name)
int GetNumberOfSideSetArrays()
void SetSideSetResultArrayStatus(const char *name, int flag)
vtkTypeBool GetGenerateGlobalElementIdArray()
void SetSqueezePoints(bool sp)
Should the reader output only points used by elements in the output mesh, or all the points.
int GetEdgeSetArrayStatus(const char *name)
int GetAssemblyArrayStatus(const char *)
int GetFaceResultArrayStatus(const char *name)
void SetElementMapArrayStatus(const char *name, int flag)
int GetNumberOfHierarchyArrays()
By default all hierarchy entries are loaded.
const char * GetEdgeResultArrayName(int index)
int GetNumberOfElementSetResultArrays()
dataset represents arbitrary combinations of all possible cell types
virtual void SetGenerateFileIdArray(vtkTypeBool f)
virtual void SetApplyDisplacements(vtkTypeBool d)
Geometric locations can include displacements.
Base class for graph data types.
int GetFaceSetResultArrayStatus(const char *name)
int GetEdgeMapArrayStatus(const char *name)
void SetElementBlockArrayStatus(const char *name, int flag)
int GetTimeSeriesData(int ID, const char *vName, const char *vType, vtkFloatArray *result)
int GetNumberOfObjectAttributes(int objectType, int objectIndex)
By default attributes are not loaded.
const char * GetMaterialArrayName(int arrayIdx)
void SetObjectStatus(int objectType, int objectIndex, int status)
virtual vtkIdType GetTotalNumberOfFaces()
void SetEdgeSetArrayStatus(const char *name, int flag)
const char * GetEdgeSetArrayName(int index)
int GetNumberOfEdgesInFile()
const char * GetElementBlockArrayName(int index)
void SetElementSetResultArrayStatus(const char *name, int flag)
int GetNumberOfGlobalResultArrays()
virtual void SetXMLFileName(const char *fname)
Specify file name of the xml file.
int GetFaceBlockArrayStatus(const char *name)
void SetAllArrayStatus(int otype, int status)
vtkTypeBool GetGenerateImplicitElementIdArray()
void SetObjectStatus(int objectType, const char *objectName, int status)
bool FindXMLFile()
Returns true if the file given by XMLFileName exists.
int GetSideSetResultArrayStatus(const char *name)
@ SEARCH_TYPE_ELEMENT_THEN_NODE
int GetVariableID(const char *type, const char *name)
Return the id of the type,name variable.
vtkTypeUInt32 vtkMTimeType
virtual void SetIgnoreFileTime(bool flag)
When on, this option ignores the time values assigned to each time step in the file.
const char * GetEdgeBlockArrayName(int index)
void ResetCache()
Clears out the cache entries.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.