 |
VTK
9.0.1
|
Go to the documentation of this file.
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;
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)
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()
virtual void SetDisplayType(int type)
@ SEARCH_TYPE_ELEMENT_THEN_NODE
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 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)
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)
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.
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)
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.
@ SEARCH_TYPE_NODE_THEN_ELEMENT
const char * GetEdgeBlockArrayName(int index)
void ResetCache()
Clears out the cache entries.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.