37 #ifndef vtkExodusIIReader_h
38 #define vtkExodusIIReader_h
40 #include "vtkIOExodusModule.h"
85 vtkGetStringMacro(FileName);
93 vtkGetStringMacro(XMLFileName);
100 vtkSetMacro(TimeStep,
int);
101 vtkGetMacro(TimeStep,
int);
117 vtkGetVector2Macro(ModeShapesRange,
int);
126 vtkGetVector2Macro(TimeStepRange,
int);
179 SEARCH_TYPE_ELEMENT = 0,
183 ID_NOT_FOUND = -234121312
211 GLOBAL_TEMPORAL = 102,
212 NODAL_TEMPORAL = 101,
213 ELEM_BLOCK_TEMPORAL = 100,
215 ELEM_BLOCK_ELEM_CONN = 98,
216 ELEM_BLOCK_FACE_CONN =
218 ELEM_BLOCK_EDGE_CONN =
220 FACE_BLOCK_CONN = 95,
221 EDGE_BLOCK_CONN = 94,
229 IMPLICIT_ELEMENT_ID = 108,
230 IMPLICIT_NODE_ID = 107,
237 NODAL_SQUEEZEMAP = 82,
238 ELEM_BLOCK_ATTRIB = 81,
239 FACE_BLOCK_ATTRIB = 80,
240 EDGE_BLOCK_ATTRIB = 79,
350 vtkBooleanMacro(IgnoreFileTime,
bool);
380 return this->GetObjectStatus(objectType, this->GetObjectIndex(objectType, objectName));
399 return this->GetObjectArrayStatus(objectType, this->GetObjectArrayIndex(objectType, arrayName));
418 return this->GetObjectAttributeStatus(
419 objectType, objectIndex, this->GetObjectAttributeIndex(objectType, objectIndex, attribName));
424 this->SetObjectAttributeStatus(objectType, objectIndex,
425 this->GetObjectAttributeIndex(objectType, objectIndex, attribName), status);
500 vtkGetMacro(DisplayType,
int);
527 this->SetObjectStatus(EDGE_BLOCK,
name, flag);
535 this->SetObjectStatus(FACE_BLOCK,
name, flag);
542 return this->GetObjectStatus(ELEM_BLOCK,
name);
546 this->SetObjectStatus(ELEM_BLOCK,
name, flag);
552 return this->GetObjectArrayName(GLOBAL,
index);
556 return this->GetObjectArrayStatus(GLOBAL,
name);
560 this->SetObjectArrayStatus(GLOBAL,
name, flag);
567 return this->GetObjectArrayStatus(NODAL,
name);
571 this->SetObjectArrayStatus(NODAL,
name, flag);
577 return this->GetObjectArrayName(EDGE_BLOCK,
index);
581 return this->GetObjectArrayStatus(EDGE_BLOCK,
name);
585 this->SetObjectArrayStatus(EDGE_BLOCK,
name, flag);
591 return this->GetObjectArrayName(FACE_BLOCK,
index);
595 return this->GetObjectArrayStatus(FACE_BLOCK,
name);
599 this->SetObjectArrayStatus(FACE_BLOCK,
name, flag);
605 return this->GetObjectArrayName(ELEM_BLOCK,
index);
609 return this->GetObjectArrayStatus(ELEM_BLOCK,
name);
613 this->SetObjectArrayStatus(ELEM_BLOCK,
name, flag);
621 this->SetObjectStatus(NODE_MAP,
name, flag);
629 this->SetObjectStatus(EDGE_MAP,
name, flag);
637 this->SetObjectStatus(FACE_MAP,
name, flag);
645 this->SetObjectStatus(ELEM_MAP,
name, flag);
653 this->SetObjectStatus(NODE_SET,
name, flag);
661 this->SetObjectStatus(SIDE_SET,
name, flag);
669 this->SetObjectStatus(EDGE_SET,
name, flag);
677 this->SetObjectStatus(FACE_SET,
name, flag);
685 this->SetObjectStatus(ELEM_SET,
name, flag);
691 return this->GetObjectArrayName(NODE_SET,
index);
695 return this->GetObjectArrayStatus(NODE_SET,
name);
699 this->SetObjectArrayStatus(NODE_SET,
name, flag);
705 return this->GetObjectArrayName(SIDE_SET,
index);
709 return this->GetObjectArrayStatus(SIDE_SET,
name);
713 this->SetObjectArrayStatus(SIDE_SET,
name, flag);
719 return this->GetObjectArrayName(EDGE_SET,
index);
723 return this->GetObjectArrayStatus(EDGE_SET,
name);
727 this->SetObjectArrayStatus(EDGE_SET,
name, flag);
733 return this->GetObjectArrayName(FACE_SET,
index);
737 return this->GetObjectArrayStatus(FACE_SET,
name);
741 this->SetObjectArrayStatus(FACE_SET,
name, flag);
747 return this->GetObjectArrayName(ELEM_SET,
index);
751 return this->GetObjectArrayStatus(ELEM_SET,
name);
755 this->SetObjectArrayStatus(ELEM_SET,
name, flag);
822 vtkGetMacro(SILUpdateStamp,
int);
854 vtkSetMacro(UseLegacyBlockNames,
bool);
855 vtkGetMacro(UseLegacyBlockNames,
bool);
856 vtkBooleanMacro(UseLegacyBlockNames,
bool);
894 int TimeStepRange[2];
917 int ModeShapesRange[2];
919 bool UseLegacyBlockNames;
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
This class holds metadata for an Exodus file.
Read exodus 2 files .ex2.
virtual void SetGenerateGlobalNodeIdArray(vtkTypeBool g)
int GetNumberOfElementsInFile()
int GetNumberOfFaceSetArrays()
int IsValidVariable(const char *type, const char *name)
return boolean indicating whether the type,name is a valid variable
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
const char * GetFaceSetResultArrayName(int index)
vtkTypeBool GetAnimateModeShapes()
const char * GetEdgeMapArrayName(int index)
const char * GetNodeMapArrayName(int index)
int GetEdgeBlockArrayStatus(const char *name)
int GetFaceResultArrayStatus(const char *name)
virtual void SetFileId(int f)
virtual int CanReadFile(const char *fname)
Determine if the file can be read with this reader.
void SetEdgeBlockArrayStatus(const char *name, int flag)
int GetNumberOfFacesInFile()
static int GetGlobalNodeID(vtkDataSet *data, int localID, int searchType)
vtkTypeBool GetGenerateImplicitNodeIdArray()
static const char * GetImplicitEdgeIdArrayName()
const char * GetEdgeResultArrayName(int index)
static int GetGlobalFaceID(vtkDataSet *data, int localID)
int GetObjectArrayStatus(int objectType, int arrayIndex)
static const char * GetImplicitNodeIdArrayName()
int GetObjectIndex(int objectType, const char *objectName)
void SetElementResultArrayStatus(const char *name, int flag)
static const char * GetPedigreeElementIdArrayName()
int GetNumberOfObjectArrays(int objectType)
By default arrays are not loaded.
int GetEdgeSetResultArrayStatus(const char *name)
void SetElementMapArrayStatus(const char *name, int flag)
void SetElementSetArrayStatus(const char *name, int flag)
const char * GetEdgeSetResultArrayName(int index)
const char * GetSideSetResultArrayName(int index)
int GetNumberOfElementSetArrays()
void SetSideSetResultArrayStatus(const char *name, int flag)
virtual void SetFileName(const char *fname)
Specify file name of the Exodus file.
int GetMaterialArrayStatus(const char *)
int GetNumberOfPointResultArrays()
int GetNodeMapArrayStatus(const char *name)
int GetNumberOfHierarchyArrays()
By default all hierarchy entries are loaded.
static int GetGlobalEdgeID(vtkDataSet *data, int localID, int searchType)
int GetElementMapArrayStatus(const char *name)
void SetEdgeResultArrayStatus(const char *name, int flag)
int GetNumberOfPartArrays()
By default all parts are loaded.
int GetHierarchyArrayStatus(const char *)
int GetNumberOfTimeSteps()
vtkTypeBool GetGenerateFileIdArray()
int GetNumberOfNodesInFile()
void SetFaceBlockArrayStatus(const char *name, int flag)
int GetPointResultArrayStatus(const char *name)
int GetPartArrayStatus(int index)
int GetNumberOfNodeSetArrays()
void SetPartArrayStatus(int index, int flag)
virtual void SetHasModeShapes(vtkTypeBool ms)
Set/Get whether the Exodus sequence number corresponds to time steps or mode shapes.
const char * GetElementResultArrayName(int index)
static int GetGlobalID(const char *arrayName, vtkDataSet *data, int localID, int searchType)
static const char * GetPedigreeFaceIdArrayName()
int GetNumberOfEdgeSetArrays()
vtkTypeBool GetGenerateGlobalElementIdArray()
virtual void SetGenerateImplicitNodeIdArray(vtkTypeBool g)
int GetNumberOfSideSetArrays()
int GetPartArrayID(const char *name)
~vtkExodusIIReader() override
int GetEdgeMapArrayStatus(const char *name)
int GetNumberOfFaceBlockArrays()
void SetPartArrayStatus(const char *, int flag)
vtkExodusIIReaderPrivate * Metadata
int GetMaterialArrayStatus(int index)
int GetNumberOfEdgeSetResultArrays()
int GetElementResultArrayStatus(const char *name)
int GetNumberOfAssemblyArrays()
By default all assemblies are loaded.
const char * GetObjectName(int objectType, int objectIndex)
void SetAssemblyArrayStatus(const char *, int flag)
int GetNumberOfSideSetResultArrays()
int GetNumberOfNodeSetResultArrays()
int GetEdgeSetArrayStatus(const char *name)
void SetNodeSetResultArrayStatus(const char *name, int flag)
const char * GetGlobalResultArrayName(int index)
void SetMaterialArrayStatus(int index, int flag)
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkInformationIntegerKey * GLOBAL_VARIABLE()
Exodus reader outputs global variables and global temporal variables, together with some other variab...
int GetNodeSetResultArrayStatus(const char *name)
virtual void SetGenerateGlobalElementIdArray(vtkTypeBool g)
void SetAllArrayStatus(int otype, int status)
int GetHierarchyArrayStatus(int index)
const char * GetFaceResultArrayName(int index)
vtkTypeBool GetGenerateObjectIdCellArray()
int GetNumberOfMaterialArrays()
By default all materials are loaded.
vtkTypeBool GetGenerateImplicitElementIdArray()
void ResetCache()
Clears out the cache entries.
virtual void SetMetadata(vtkExodusIIReaderPrivate *)
void SetMaterialArrayStatus(const char *, int flag)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void Reset()
Reset the user-specified parameters and flush internal arrays so that the reader state is just as it ...
double GetCacheSize()
Get the size of the cache in MiB.
virtual void SetDisplayType(int type)
static const char * GetGlobalEdgeIdArrayName()
int GetNumberOfGlobalResultArrays()
static vtkExodusIIReader * New()
int GetNumberOfEntriesInObject(int objectType, int objectIndex)
const char * GetElementSetArrayName(int index)
int GetObjectStatus(int objectType, int objectIndex)
void SetSideSetArrayStatus(const char *name, int flag)
void SetNodeMapArrayStatus(const char *name, int flag)
static int GetIDHelper(const char *arrayName, vtkDataSet *data, int localID, int searchType)
void SetEdgeMapArrayStatus(const char *name, int flag)
void SetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex, int status)
const char * GetElementSetResultArrayName(int index)
const char * GetHierarchyArrayName(int arrayIdx)
vtkTimeStamp FileNameMTime
int GetAssemblyArrayStatus(const char *)
void SetModeShape(int val)
Convenience method to set the mode-shape which is same as this->SetTimeStep(val-1);.
int GetAssemblyArrayID(const char *name)
static const char * GetGlobalElementIdArrayName()
static int GetGlobalEdgeID(vtkDataSet *data, int localID)
void SetObjectArrayStatus(int objectType, int arrayIndex, int status)
int GetNumberOfFaceResultArrays()
void SetFaceMapArrayStatus(const char *name, int flag)
int GetSideSetArrayStatus(const char *name)
void ResetSettings()
Reset the user-specified parameters to their default values.
const char * GetSideSetArrayName(int index)
const char * GetTitle()
Access to meta data generated by UpdateInformation.
int GetMaterialArrayID(const char *name)
void SetFaceResultArrayStatus(const char *name, int flag)
int GetObjectIndex(int objectType, int id)
int GetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName)
static int GetGlobalFaceID(vtkDataSet *data, int localID, int searchType)
const char * GetFaceMapArrayName(int index)
void SetObjectStatus(int objectType, int objectIndex, int status)
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 SetElementSetResultArrayStatus(const char *name, int flag)
void SetAssemblyArrayStatus(int index, int flag)
int GetObjectArrayIndex(int objectType, const char *arrayName)
static vtkInformationIntegerKey * GLOBAL_TEMPORAL_VARIABLE()
@ SEARCH_TYPE_NODE_THEN_ELEMENT
@ SEARCH_TYPE_ELEMENT_THEN_NODE
int GetNumberOfObjectAttributes(int objectType, int objectIndex)
By default attributes are not loaded.
void GetAllTimes(vtkInformationVector *)
int GetFaceSetArrayStatus(const char *name)
void SetHierarchyArrayStatus(int index, int flag)
int GetMaxNameLength()
Get the max_name_length in the file.
int GetNumberOfEdgeBlockArrays()
const char * GetFaceBlockArrayName(int index)
double GetModeShapeTime()
vtkTimeStamp XMLFileNameMTime
static const char * GetPedigreeNodeIdArrayName()
int GetEdgeResultArrayStatus(const char *name)
const char * GetObjectArrayName(int objectType, int arrayIndex)
const char * GetPartArrayName(int arrayIdx)
float GetDisplacementMagnitude()
virtual void SetGenerateObjectIdCellArray(vtkTypeBool g)
Extra cell data array that can be generated.
int GetTimeSeriesData(int ID, const char *vName, const char *vType, vtkFloatArray *result)
int GetNumberOfEdgeResultArrays()
void SetObjectStatus(int objectType, const char *objectName, int status)
void SetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName, int status)
const char * GetEdgeSetArrayName(int index)
static int GetGlobalNodeID(vtkDataSet *data, int localID)
int GetFaceMapArrayStatus(const char *name)
int GetFaceBlockArrayStatus(const char *name)
const char * GetMaterialArrayName(int arrayIdx)
int GetNumberOfElementMapArrays()
virtual vtkIdType GetTotalNumberOfEdges()
virtual vtkMTimeType GetMetadataMTime()
Return the MTime of the internal data structure.
const char * GetElementBlockArrayName(int index)
bool FindXMLFile()
Returns true if the file given by XMLFileName exists.
int GetNumberOfFaceMapArrays()
void AdvertiseTimeSteps(vtkInformation *outputInfo)
Populates the TIME_STEPS and TIME_RANGE keys based on file metadata.
vtkTypeBool GetHasModeShapes()
void SetEdgeSetArrayStatus(const char *name, int flag)
static const char * GetGlobalNodeIdArrayName()
Extra point data array that can be generated.
virtual vtkIdType GetTotalNumberOfFaces()
int GetObjectId(int objectType, int objectIndex)
int GetNumberOfElementSetResultArrays()
const char * GetNodeSetResultArrayName(int index)
int GetNumberOfEdgesInFile()
void SetElementBlockArrayStatus(const char *name, int flag)
virtual void SetModeShapeTime(double phase)
Set/Get the time used to animate mode shapes.
const char * GetFaceSetArrayName(int index)
void SetFaceSetArrayStatus(const char *name, int flag)
void SetGlobalResultArrayStatus(const char *name, int flag)
vtkTypeBool GetGenerateGlobalNodeIdArray()
virtual void SetApplyDisplacements(vtkTypeBool d)
Geometric locations can include displacements.
virtual vtkIdType GetTotalNumberOfElements()
virtual void SetXMLFileName(const char *fname)
Specify file name of the xml file.
vtkMTimeType GetMTime() override
Return the object's MTime.
void SetHierarchyArrayStatus(const char *, int flag)
int GetNumberOfObjects(int objectType)
const char * GetObjectAttributeName(int objectType, int objectIndex, int attribIndex)
static const char * GetGlobalFaceIdArrayName()
static const char * GetObjectIdArrayName()
static const char * GetImplicitFaceIdArrayName()
virtual void SetIgnoreFileTime(bool flag)
When on, this option ignores the time values assigned to each time step in the file.
const char * GetNodeSetArrayName(int index)
int GetAssemblyArrayStatus(int index)
int GetObjectTypeFromName(const char *name)
vtkGraph * GetSIL()
SIL describes organization of/relationships between classifications eg.
const char * GetEdgeBlockArrayName(int index)
int GetElementBlockArrayStatus(const char *name)
int GetElementSetResultArrayStatus(const char *name)
int GetObjectAttributeIndex(int objectType, int objectIndex, const char *attribName)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetDisplacementMagnitude(float s)
int GetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex)
int GetNumberOfNodeMapArrays()
int GetGlobalResultArrayStatus(const char *name)
virtual vtkIdType GetTotalNumberOfNodes()
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...
const char * GetObjectTypeName(int)
virtual void SetAnimateModeShapes(vtkTypeBool flag)
If this flag is on (the default) and HasModeShapes is also on, then this reader will report a continu...
virtual void SetGenerateImplicitElementIdArray(vtkTypeBool g)
const char * GetElementMapArrayName(int index)
const char * GetPartBlockInfo(int arrayIdx)
int GetNumberOfElementBlockArrays()
void SetPointResultArrayStatus(const char *name, int flag)
int GetVariableID(const char *type, const char *name)
Return the id of the type,name variable.
void SetNodeSetArrayStatus(const char *name, int flag)
int GetNumberOfEdgeMapArrays()
int GetSideSetResultArrayStatus(const char *name)
static const char * GetImplicitElementIdArrayName()
void SetSqueezePoints(bool sp)
Should the reader output only points used by elements in the output mesh, or all the points.
static const char * GetPedigreeEdgeIdArrayName()
virtual void SetGenerateFileIdArray(vtkTypeBool f)
void SetFaceSetResultArrayStatus(const char *name, int flag)
int GetNumberOfFaceSetResultArrays()
void SetCacheSize(double CacheSize)
Set the size of the cache in MiB.
static int GetGlobalElementID(vtkDataSet *data, int localID, int searchType)
int GetElementSetArrayStatus(const char *name)
const char * GetAssemblyArrayName(int arrayIdx)
int GetNumberOfObjectArrayComponents(int objectType, int arrayIndex)
vtkTypeBool GetApplyDisplacements()
int GetObjectStatus(int objectType, const char *objectName)
int GetNumberOfElementResultArrays()
int GetObjectArrayStatus(int objectType, const char *arrayName)
void SetEdgeSetResultArrayStatus(const char *name, int flag)
static int GetGlobalElementID(vtkDataSet *data, int localID)
int GetNodeSetArrayStatus(const char *name)
int GetFaceSetResultArrayStatus(const char *name)
int GetPartArrayStatus(const char *)
void SetObjectArrayStatus(int objectType, const char *arrayName, int status)
const char * GetPointResultArrayName(int index)
dynamic, self-adjusting array of float
Base class for graph data types.
a simple class to control print indentation
dynamic, self-adjusting array of int
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Read Exodus II files (.exii)
represent and manipulate 3D points
record modification and/or execution time
dataset represents arbitrary combinations of all possible cell types
vtkTypeUInt32 vtkMTimeType