 |
VTK
9.1.0
|
Go to the documentation of this file.
66 #ifndef vtkExodusIIReader_h
67 #define vtkExodusIIReader_h
69 #include "vtkIOExodusModule.h"
129 vtkSetMacro(TimeStep,
int);
130 vtkGetMacro(TimeStep,
int);
146 vtkGetVector2Macro(ModeShapesRange,
int);
155 vtkGetVector2Macro(TimeStepRange,
int);
208 SEARCH_TYPE_ELEMENT = 0,
212 ID_NOT_FOUND = -234121312
240 GLOBAL_TEMPORAL = 102,
241 NODAL_TEMPORAL = 101,
242 ELEM_BLOCK_TEMPORAL = 100,
244 ELEM_BLOCK_ELEM_CONN = 98,
245 ELEM_BLOCK_FACE_CONN =
247 ELEM_BLOCK_EDGE_CONN =
249 FACE_BLOCK_CONN = 95,
250 EDGE_BLOCK_CONN = 94,
258 IMPLICIT_ELEMENT_ID = 108,
259 IMPLICIT_NODE_ID = 107,
266 NODAL_SQUEEZEMAP = 82,
267 ELEM_BLOCK_ATTRIB = 81,
268 FACE_BLOCK_ATTRIB = 80,
269 EDGE_BLOCK_ATTRIB = 79,
379 vtkBooleanMacro(IgnoreFileTime,
bool);
409 return this->GetObjectStatus(objectType, this->GetObjectIndex(objectType, objectName));
428 return this->GetObjectArrayStatus(objectType, this->GetObjectArrayIndex(objectType, arrayName));
447 return this->GetObjectAttributeStatus(
448 objectType, objectIndex, this->GetObjectAttributeIndex(objectType, objectIndex, attribName));
453 this->SetObjectAttributeStatus(objectType, objectIndex,
454 this->GetObjectAttributeIndex(objectType, objectIndex, attribName), status);
529 vtkGetMacro(DisplayType,
int);
556 this->SetObjectStatus(EDGE_BLOCK,
name, flag);
564 this->SetObjectStatus(FACE_BLOCK,
name, flag);
571 return this->GetObjectStatus(ELEM_BLOCK,
name);
575 this->SetObjectStatus(ELEM_BLOCK,
name, flag);
581 return this->GetObjectArrayName(GLOBAL,
index);
585 return this->GetObjectArrayStatus(GLOBAL,
name);
589 this->SetObjectArrayStatus(GLOBAL,
name, flag);
596 return this->GetObjectArrayStatus(NODAL,
name);
600 this->SetObjectArrayStatus(NODAL,
name, flag);
606 return this->GetObjectArrayName(EDGE_BLOCK,
index);
610 return this->GetObjectArrayStatus(EDGE_BLOCK,
name);
614 this->SetObjectArrayStatus(EDGE_BLOCK,
name, flag);
620 return this->GetObjectArrayName(FACE_BLOCK,
index);
624 return this->GetObjectArrayStatus(FACE_BLOCK,
name);
628 this->SetObjectArrayStatus(FACE_BLOCK,
name, flag);
634 return this->GetObjectArrayName(ELEM_BLOCK,
index);
638 return this->GetObjectArrayStatus(ELEM_BLOCK,
name);
642 this->SetObjectArrayStatus(ELEM_BLOCK,
name, flag);
650 this->SetObjectStatus(NODE_MAP,
name, flag);
658 this->SetObjectStatus(EDGE_MAP,
name, flag);
666 this->SetObjectStatus(FACE_MAP,
name, flag);
674 this->SetObjectStatus(ELEM_MAP,
name, flag);
682 this->SetObjectStatus(NODE_SET,
name, flag);
690 this->SetObjectStatus(SIDE_SET,
name, flag);
698 this->SetObjectStatus(EDGE_SET,
name, flag);
706 this->SetObjectStatus(FACE_SET,
name, flag);
714 this->SetObjectStatus(ELEM_SET,
name, flag);
720 return this->GetObjectArrayName(NODE_SET,
index);
724 return this->GetObjectArrayStatus(NODE_SET,
name);
728 this->SetObjectArrayStatus(NODE_SET,
name, flag);
734 return this->GetObjectArrayName(SIDE_SET,
index);
738 return this->GetObjectArrayStatus(SIDE_SET,
name);
742 this->SetObjectArrayStatus(SIDE_SET,
name, flag);
748 return this->GetObjectArrayName(EDGE_SET,
index);
752 return this->GetObjectArrayStatus(EDGE_SET,
name);
756 this->SetObjectArrayStatus(EDGE_SET,
name, flag);
762 return this->GetObjectArrayName(FACE_SET,
index);
766 return this->GetObjectArrayStatus(FACE_SET,
name);
770 this->SetObjectArrayStatus(FACE_SET,
name, flag);
776 return this->GetObjectArrayName(ELEM_SET,
index);
780 return this->GetObjectArrayStatus(ELEM_SET,
name);
784 this->SetObjectArrayStatus(ELEM_SET,
name, flag);
851 vtkGetMacro(SILUpdateStamp,
int);
883 vtkSetMacro(UseLegacyBlockNames,
bool);
884 vtkGetMacro(UseLegacyBlockNames,
bool);
885 vtkBooleanMacro(UseLegacyBlockNames,
bool);
923 int TimeStepRange[2];
946 int ModeShapesRange[2];
948 bool UseLegacyBlockNames;
represent and manipulate 3D points
int GetNumberOfEdgeMapArrays()
int GetNumberOfElementSetArrays()
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
int GetGlobalResultArrayStatus(const char *name)
int GetNumberOfNodeMapArrays()
vtkTypeBool GetGenerateImplicitNodeIdArray()
int GetNumberOfNodeSetArrays()
virtual void SetGenerateGlobalElementIdArray(vtkTypeBool g)
virtual void SetFileName(VTK_FILEPATH const char *fname)
Specify file name of the Exodus file.
static const char * GetImplicitElementIdArrayName()
int GetNumberOfObjectArrays(int objectType)
By default arrays are not loaded.
int GetNumberOfEntriesInObject(int objectType, int objectIndex)
virtual void SetMetadata(vtkExodusIIReaderPrivate *)
static vtkInformationIntegerKey * GLOBAL_TEMPORAL_VARIABLE()
Exodus reader outputs global variables and global temporal variables, together with some other variab...
virtual void SetDisplayType(int type)
static int GetGlobalID(const char *arrayName, vtkDataSet *data, int localID, int searchType)
@ SEARCH_TYPE_NODE_THEN_ELEMENT
int GetObjectAttributeIndex(int objectType, int objectIndex, const char *attribName)
By default attributes are not loaded.
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()
Access to meta data generated by UpdateInformation.
int GetObjectId(int objectType, int objectIndex)
void SetSideSetArrayStatus(const char *name, int flag)
int GetAssemblyArrayStatus(int index)
By default all assemblies are loaded.
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.
virtual void SetXMLFileName(VTK_FILEPATH const char *fname)
Specify file name of the xml file.
int GetNumberOfFaceSetArrays()
int GetNumberOfEdgeSetArrays()
int GetNumberOfElementMapArrays()
void SetMaterialArrayStatus(int index, int flag)
By default all materials are loaded.
void SetObjectArrayStatus(int objectType, int arrayIndex, int status)
By default arrays are not loaded.
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)
By default all parts are loaded.
int GetMaterialArrayStatus(const char *)
By default all materials are loaded.
float GetDisplacementMagnitude()
Geometric locations can include displacements.
void SetNodeMapArrayStatus(const char *name, int flag)
const char * GetSideSetResultArrayName(int index)
const char * GetAssemblyArrayName(int arrayIdx)
By default all assemblies are loaded.
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)
int GetNumberOfFaceSetResultArrays()
abstract superclass for arrays of numeric data
int GetNumberOfPartArrays()
By default all parts are loaded.
int GetSideSetArrayStatus(const char *name)
vtkTypeBool GetGenerateObjectIdCellArray()
Extra cell data array that can be generated.
int GetNumberOfEdgeSetResultArrays()
int GetAssemblyArrayID(const char *name)
By default all assemblies are loaded.
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)
By default all hierarchy entries are loaded.
vtkGetFilePathMacro(FileName)
Specify file name of the Exodus file.
int GetEdgeSetResultArrayStatus(const char *name)
void SetElementResultArrayStatus(const char *name, int flag)
static vtkInformationIntegerKey * GLOBAL_VARIABLE()
Exodus reader outputs global variables and global temporal variables, together with some other variab...
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)
By default all materials are loaded.
int GetEdgeResultArrayStatus(const char *name)
void SetElementSetArrayStatus(const char *name, int flag)
ObjectType
Extra cell data array that can be generated.
int GetNumberOfFaceBlockArrays()
static const char * GetObjectIdArrayName()
Extra cell data array that can be generated.
virtual void SetGenerateImplicitNodeIdArray(vtkTypeBool g)
void SetAssemblyArrayStatus(int index, int flag)
By default all assemblies are loaded.
int GetNumberOfNodesInFile()
int GetNumberOfEdgeResultArrays()
void SetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex, int status)
By default attributes are not loaded.
void SetHierarchyArrayStatus(const char *, int flag)
By default all hierarchy entries are loaded.
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)
By default all assemblies are loaded.
static int GetGlobalNodeID(vtkDataSet *data, int localID)
Extra point data array that can be generated.
virtual vtkIdType GetTotalNumberOfElements()
Read Exodus II files (.exii)
virtual void SetDisplacementMagnitude(float s)
Geometric locations can include displacements.
int GetNumberOfSideSetResultArrays()
static const char * GetGlobalFaceIdArrayName()
const char * GetGlobalResultArrayName(int index)
int GetPartArrayStatus(const char *)
By default all parts are loaded.
int GetHierarchyArrayStatus(const char *)
By default all hierarchy entries are loaded.
bool GetSqueezePoints()
Should the reader output only points used by elements in the output mesh, or all the points.
vtkTypeBool GetApplyDisplacements()
Geometric locations can include displacements.
static const char * GetImplicitNodeIdArrayName()
Extra point data array that can be generated.
int GetNumberOfFacesInFile()
void SetPartArrayStatus(int index, int flag)
By default all parts are loaded.
int GetHierarchyArrayStatus(int index)
By default all hierarchy entries are loaded.
int GetObjectArrayStatus(int objectType, const char *arrayName)
By default arrays are not loaded.
const char * GetHierarchyArrayName(int arrayIdx)
By default all hierarchy entries are loaded.
vtkTypeBool GetHasModeShapes()
Set/Get whether the Exodus sequence number corresponds to time steps or mode shapes.
int GetObjectArrayIndex(int objectType, const char *arrayName)
By default arrays are not loaded.
int GetNumberOfElementsInFile()
int GetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex)
By default attributes are not loaded.
vtkGetFilePathMacro(XMLFileName)
Specify file name of the xml file.
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)
By default attributes are not loaded.
vtkMTimeType GetMTime() override
Return the object's MTime.
static const char * GetGlobalEdgeIdArrayName()
int GetMaterialArrayID(const char *name)
By default all materials are loaded.
const char * GetFaceResultArrayName(int index)
vtkTypeBool GetAnimateModeShapes()
If this flag is on (the default) and HasModeShapes is also on, then this reader will report a continu...
void SetObjectArrayStatus(int objectType, const char *arrayName, int status)
By default arrays are not loaded.
a simple class to control print indentation
@ SEARCH_TYPE_ELEMENT_THEN_NODE
dynamic, self-adjusting array of int
void GetAllTimes(vtkInformationVector *)
int GetEdgeBlockArrayStatus(const char *name)
int GetNumberOfPointResultArrays()
const char * GetPartBlockInfo(int arrayIdx)
By default all parts are loaded.
int GetDimensionality()
Access to meta data generated by UpdateInformation.
double GetCacheSize()
Get the size of the cache in MiB.
double GetModeShapeTime()
Set/Get the time used to animate mode shapes.
static const char * GetPedigreeEdgeIdArrayName()
int GetNodeSetArrayStatus(const char *name)
virtual vtkIdType GetTotalNumberOfNodes()
void SetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName, int status)
By default attributes are not loaded.
int GetNumberOfFaceMapArrays()
int GetPointResultArrayStatus(const char *name)
int GetPartArrayStatus(int index)
By default all parts are loaded.
virtual vtkIdType GetTotalNumberOfEdges()
static int GetGlobalElementID(vtkDataSet *data, int localID, int searchType)
static int GetGlobalNodeID(vtkDataSet *data, int localID, int searchType)
Extra point data array that can be generated.
bool GetIgnoreFileTime()
When on, this option ignores the time values assigned to each time step in the file.
const char * GetFaceMapArrayName(int index)
This class holds metadata for an Exodus file.
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)
By default arrays are not loaded.
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)
By default attributes are not loaded.
static const char * GetPedigreeNodeIdArrayName()
Extra point data array that can be generated.
virtual void SetGenerateGlobalNodeIdArray(vtkTypeBool g)
void SetFaceSetArrayStatus(const char *name, int flag)
void SetPartArrayStatus(const char *, int flag)
By default all parts are loaded.
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)
By default arrays are not loaded.
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)
virtual int CanReadFile(VTK_FILEPATH const char *fname)
Determine if the file can be read with this reader.
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)
By default arrays are not loaded.
const char * GetObjectTypeName(int)
void SetMaterialArrayStatus(const char *, int flag)
By default all materials are loaded.
const char * GetElementSetResultArrayName(int index)
int GetObjectIndex(int objectType, const char *objectName)
int GetPartArrayID(const char *name)
By default all parts are loaded.
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 *)
By default all assemblies are loaded.
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)
By default all materials are loaded.
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()
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)
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.