VTK  9.2.6
vtkExodusIIReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkExodusIIReader.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15/*----------------------------------------------------------------------------
16 Copyright (c) Sandia Corporation
17 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18----------------------------------------------------------------------------*/
19
36
37#ifndef vtkExodusIIReader_h
38#define vtkExodusIIReader_h
39
40#include "vtkIOExodusModule.h" // For export macro
42
43class vtkDataArray;
44class vtkDataSet;
47class vtkFloatArray;
48class vtkGraph;
50class vtkIntArray;
51class vtkPoints;
53
54class VTKIOEXODUS_EXPORT vtkExodusIIReader : public vtkMultiBlockDataSetAlgorithm
55{
56public:
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
64 virtual int CanReadFile(VTK_FILEPATH const char* fname);
65
66 // virtual void Modified();
67
72
79
81
84 virtual void SetFileName(VTK_FILEPATH const char* fname);
87
89
92 virtual void SetXMLFileName(VTK_FILEPATH const char* fname);
95
97
100 vtkSetMacro(TimeStep, int);
101 vtkGetMacro(TimeStep, int);
103
108 void SetModeShape(int val) { this->SetTimeStep(val - 1); }
109
111
117 vtkGetVector2Macro(ModeShapesRange, int);
119
121
126 vtkGetVector2Macro(TimeStepRange, int);
128
130
143 vtkBooleanMacro(GenerateObjectIdCellArray, vtkTypeBool);
144 static const char* GetObjectIdArrayName() { return "ObjectId"; }
146
149 vtkBooleanMacro(GenerateGlobalElementIdArray, vtkTypeBool);
150
153 vtkBooleanMacro(GenerateGlobalNodeIdArray, vtkTypeBool);
154
157 vtkBooleanMacro(GenerateImplicitElementIdArray, vtkTypeBool);
158
161 vtkBooleanMacro(GenerateImplicitNodeIdArray, vtkTypeBool);
162
165 vtkBooleanMacro(GenerateFileIdArray, vtkTypeBool);
166
167 virtual void SetFileId(int f);
169
171
177 enum
178 {
183 ID_NOT_FOUND = -234121312
184 };
185 // NOTE: GetNumberOfObjectTypes must be updated whenever you add an entry to enum ObjectType {...}
187 {
188 // match Exodus macros from exodusII.h and exodusII_ext.h
201 GLOBAL = 13,
202 NODAL = 14,
203 // extended values (not in Exodus headers) for use with SetAllArrayStatus:
205 PART = 61,
208 // extended values (not in Exodus headers) for use in cache keys:
217 97,
219 96,
232 86,
234 85,
236 NODE_ID = 83,
241 FACE_ID = 105,
242 EDGE_ID = 106,
244 };
245
246
247 static const char* GetGlobalElementIdArrayName() { return "GlobalElementId"; }
248 static const char* GetPedigreeElementIdArrayName() { return "PedigreeElementId"; }
249 static int GetGlobalElementID(vtkDataSet* data, int localID);
250 static int GetGlobalElementID(vtkDataSet* data, int localID, int searchType);
251 static const char* GetImplicitElementIdArrayName() { return "ImplicitElementId"; }
252
253 static const char* GetGlobalFaceIdArrayName() { return "GlobalFaceId"; }
254 static const char* GetPedigreeFaceIdArrayName() { return "PedigreeFaceId"; }
255 static int GetGlobalFaceID(vtkDataSet* data, int localID);
256 static int GetGlobalFaceID(vtkDataSet* data, int localID, int searchType);
257 static const char* GetImplicitFaceIdArrayName() { return "ImplicitFaceId"; }
258
259 static const char* GetGlobalEdgeIdArrayName() { return "GlobalEdgeId"; }
260 static const char* GetPedigreeEdgeIdArrayName() { return "PedigreeEdgeId"; }
261 static int GetGlobalEdgeID(vtkDataSet* data, int localID);
262 static int GetGlobalEdgeID(vtkDataSet* data, int localID, int searchType);
263 static const char* GetImplicitEdgeIdArrayName() { return "ImplicitEdgeId"; }
264
266
272 static const char* GetGlobalNodeIdArrayName() { return "GlobalNodeId"; }
273 static const char* GetPedigreeNodeIdArrayName() { return "PedigreeNodeId"; }
274 static int GetGlobalNodeID(vtkDataSet* data, int localID);
275 static int GetGlobalNodeID(vtkDataSet* data, int localID, int searchType);
276 static const char* GetImplicitNodeIdArrayName() { return "ImplicitNodeId"; }
278
283 static const char* GetSideSetSourceElementIdArrayName() { return "SourceElementId"; }
284
289 static const char* GetSideSetSourceElementSideArrayName() { return "SourceElementSide"; }
291
300 vtkBooleanMacro(ApplyDisplacements, vtkTypeBool);
301 virtual void SetDisplacementMagnitude(float s);
304
306
313 vtkBooleanMacro(HasModeShapes, vtkTypeBool);
315
317
324 virtual void SetModeShapeTime(double phase);
327
329
338 vtkBooleanMacro(AnimateModeShapes, vtkTypeBool);
340
342
348 virtual void SetIgnoreFileTime(bool flag);
350 vtkBooleanMacro(IgnoreFileTime, bool);
352
354
357 const char* GetTitle();
361
366
367 int GetObjectTypeFromName(const char* name);
368 const char* GetObjectTypeName(int);
369
371 int GetNumberOfObjects(int objectType);
372 int GetNumberOfEntriesInObject(int objectType, int objectIndex);
373 int GetObjectId(int objectType, int objectIndex);
374 const char* GetObjectName(int objectType, int objectIndex);
376 int GetObjectIndex(int objectType, const char* objectName);
377 int GetObjectIndex(int objectType, int id);
378 int GetObjectStatus(int objectType, int objectIndex);
379 int GetObjectStatus(int objectType, const char* objectName)
380 {
381 return this->GetObjectStatus(objectType, this->GetObjectIndex(objectType, objectName));
382 }
383 void SetObjectStatus(int objectType, int objectIndex, int status);
384 void SetObjectStatus(int objectType, const char* objectName, int status);
385
387
393 int GetNumberOfObjectArrays(int objectType);
394 const char* GetObjectArrayName(int objectType, int arrayIndex);
395 int GetObjectArrayIndex(int objectType, const char* arrayName);
396 int GetNumberOfObjectArrayComponents(int objectType, int arrayIndex);
397 int GetObjectArrayStatus(int objectType, int arrayIndex);
398 int GetObjectArrayStatus(int objectType, const char* arrayName)
399 {
400 return this->GetObjectArrayStatus(objectType, this->GetObjectArrayIndex(objectType, arrayName));
401 }
402 void SetObjectArrayStatus(int objectType, int arrayIndex, int status);
403 void SetObjectArrayStatus(int objectType, const char* arrayName, int status);
405
407
413 int GetNumberOfObjectAttributes(int objectType, int objectIndex);
414 const char* GetObjectAttributeName(int objectType, int objectIndex, int attribIndex);
415 int GetObjectAttributeIndex(int objectType, int objectIndex, const char* attribName);
416 int GetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex);
417 int GetObjectAttributeStatus(int objectType, int objectIndex, const char* attribName)
418 {
419 return this->GetObjectAttributeStatus(
420 objectType, objectIndex, this->GetObjectAttributeIndex(objectType, objectIndex, attribName));
421 }
422 void SetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex, int status);
423 void SetObjectAttributeStatus(int objectType, int objectIndex, const char* attribName, int status)
424 {
425 this->SetObjectAttributeStatus(objectType, objectIndex,
426 this->GetObjectAttributeIndex(objectType, objectIndex, attribName), status);
427 }
428
429
434
436
442 const char* GetPartArrayName(int arrayIdx);
443 int GetPartArrayID(const char* name);
444 const char* GetPartBlockInfo(int arrayIdx);
445 void SetPartArrayStatus(int index, int flag);
446 void SetPartArrayStatus(const char*, int flag);
447 int GetPartArrayStatus(int index);
448 int GetPartArrayStatus(const char*);
450
452
459 const char* GetMaterialArrayName(int arrayIdx);
460 int GetMaterialArrayID(const char* name);
461 void SetMaterialArrayStatus(int index, int flag);
462 void SetMaterialArrayStatus(const char*, int flag);
464 int GetMaterialArrayStatus(const char*);
466
468
475 const char* GetAssemblyArrayName(int arrayIdx);
476 int GetAssemblyArrayID(const char* name);
477 void SetAssemblyArrayStatus(int index, int flag);
478 void SetAssemblyArrayStatus(const char*, int flag);
480 int GetAssemblyArrayStatus(const char*);
482
484
494 const char* GetHierarchyArrayName(int arrayIdx);
495 void SetHierarchyArrayStatus(int index, int flag);
496 void SetHierarchyArrayStatus(const char*, int flag);
498 int GetHierarchyArrayStatus(const char*);
500
501 vtkGetMacro(DisplayType, int);
502 virtual void SetDisplayType(int type);
503
507 int IsValidVariable(const char* type, const char* name);
508
512 int GetVariableID(const char* type, const char* name);
513
514 void SetAllArrayStatus(int otype, int status);
515 // Helper functions
516 // static int StringsEqual(const char* s1, char* s2);
517 // static void StringUppercase(const char* str, char* upperstr);
518 // static char *StrDupWithNew(const char *s);
519
520 // time series query functions
521 int GetTimeSeriesData(int ID, const char* vName, const char* vType, vtkFloatArray* result);
522
524 const char* GetEdgeBlockArrayName(int index) { return this->GetObjectName(EDGE_BLOCK, index); }
525 int GetEdgeBlockArrayStatus(const char* name) { return this->GetObjectStatus(EDGE_BLOCK, name); }
526 void SetEdgeBlockArrayStatus(const char* name, int flag)
527 {
528 this->SetObjectStatus(EDGE_BLOCK, name, flag);
529 }
530
532 const char* GetFaceBlockArrayName(int index) { return this->GetObjectName(FACE_BLOCK, index); }
533 int GetFaceBlockArrayStatus(const char* name) { return this->GetObjectStatus(FACE_BLOCK, name); }
534 void SetFaceBlockArrayStatus(const char* name, int flag)
535 {
536 this->SetObjectStatus(FACE_BLOCK, name, flag);
537 }
538
540 const char* GetElementBlockArrayName(int index) { return this->GetObjectName(ELEM_BLOCK, index); }
541 int GetElementBlockArrayStatus(const char* name)
542 {
543 return this->GetObjectStatus(ELEM_BLOCK, name);
544 }
545 void SetElementBlockArrayStatus(const char* name, int flag)
546 {
547 this->SetObjectStatus(ELEM_BLOCK, name, flag);
548 }
549
551 const char* GetGlobalResultArrayName(int index)
552 {
553 return this->GetObjectArrayName(GLOBAL, index);
554 }
555 int GetGlobalResultArrayStatus(const char* name)
556 {
557 return this->GetObjectArrayStatus(GLOBAL, name);
558 }
559 void SetGlobalResultArrayStatus(const char* name, int flag)
560 {
561 this->SetObjectArrayStatus(GLOBAL, name, flag);
562 }
563
565 const char* GetPointResultArrayName(int index) { return this->GetObjectArrayName(NODAL, index); }
566 int GetPointResultArrayStatus(const char* name)
567 {
568 return this->GetObjectArrayStatus(NODAL, name);
569 }
570 void SetPointResultArrayStatus(const char* name, int flag)
571 {
572 this->SetObjectArrayStatus(NODAL, name, flag);
573 }
574
576 const char* GetEdgeResultArrayName(int index)
577 {
578 return this->GetObjectArrayName(EDGE_BLOCK, index);
579 }
580 int GetEdgeResultArrayStatus(const char* name)
581 {
582 return this->GetObjectArrayStatus(EDGE_BLOCK, name);
583 }
584 void SetEdgeResultArrayStatus(const char* name, int flag)
585 {
586 this->SetObjectArrayStatus(EDGE_BLOCK, name, flag);
587 }
588
590 const char* GetFaceResultArrayName(int index)
591 {
592 return this->GetObjectArrayName(FACE_BLOCK, index);
593 }
594 int GetFaceResultArrayStatus(const char* name)
595 {
596 return this->GetObjectArrayStatus(FACE_BLOCK, name);
597 }
598 void SetFaceResultArrayStatus(const char* name, int flag)
599 {
600 this->SetObjectArrayStatus(FACE_BLOCK, name, flag);
601 }
602
604 const char* GetElementResultArrayName(int index)
605 {
606 return this->GetObjectArrayName(ELEM_BLOCK, index);
607 }
608 int GetElementResultArrayStatus(const char* name)
609 {
610 return this->GetObjectArrayStatus(ELEM_BLOCK, name);
611 }
612 void SetElementResultArrayStatus(const char* name, int flag)
613 {
614 this->SetObjectArrayStatus(ELEM_BLOCK, name, flag);
615 }
616
618 const char* GetNodeMapArrayName(int index) { return this->GetObjectName(NODE_MAP, index); }
619 int GetNodeMapArrayStatus(const char* name) { return this->GetObjectStatus(NODE_MAP, name); }
620 void SetNodeMapArrayStatus(const char* name, int flag)
621 {
622 this->SetObjectStatus(NODE_MAP, name, flag);
623 }
624
626 const char* GetEdgeMapArrayName(int index) { return this->GetObjectName(EDGE_MAP, index); }
627 int GetEdgeMapArrayStatus(const char* name) { return this->GetObjectStatus(EDGE_MAP, name); }
628 void SetEdgeMapArrayStatus(const char* name, int flag)
629 {
630 this->SetObjectStatus(EDGE_MAP, name, flag);
631 }
632
634 const char* GetFaceMapArrayName(int index) { return this->GetObjectName(FACE_MAP, index); }
635 int GetFaceMapArrayStatus(const char* name) { return this->GetObjectStatus(FACE_MAP, name); }
636 void SetFaceMapArrayStatus(const char* name, int flag)
637 {
638 this->SetObjectStatus(FACE_MAP, name, flag);
639 }
640
642 const char* GetElementMapArrayName(int index) { return this->GetObjectName(ELEM_MAP, index); }
643 int GetElementMapArrayStatus(const char* name) { return this->GetObjectStatus(ELEM_MAP, name); }
644 void SetElementMapArrayStatus(const char* name, int flag)
645 {
646 this->SetObjectStatus(ELEM_MAP, name, flag);
647 }
648
650 const char* GetNodeSetArrayName(int index) { return this->GetObjectName(NODE_SET, index); }
651 int GetNodeSetArrayStatus(const char* name) { return this->GetObjectStatus(NODE_SET, name); }
652 void SetNodeSetArrayStatus(const char* name, int flag)
653 {
654 this->SetObjectStatus(NODE_SET, name, flag);
655 }
656
658 const char* GetSideSetArrayName(int index) { return this->GetObjectName(SIDE_SET, index); }
659 int GetSideSetArrayStatus(const char* name) { return this->GetObjectStatus(SIDE_SET, name); }
660 void SetSideSetArrayStatus(const char* name, int flag)
661 {
662 this->SetObjectStatus(SIDE_SET, name, flag);
663 }
664
666 const char* GetEdgeSetArrayName(int index) { return this->GetObjectName(EDGE_SET, index); }
667 int GetEdgeSetArrayStatus(const char* name) { return this->GetObjectStatus(EDGE_SET, name); }
668 void SetEdgeSetArrayStatus(const char* name, int flag)
669 {
670 this->SetObjectStatus(EDGE_SET, name, flag);
671 }
672
674 const char* GetFaceSetArrayName(int index) { return this->GetObjectName(FACE_SET, index); }
675 int GetFaceSetArrayStatus(const char* name) { return this->GetObjectStatus(FACE_SET, name); }
676 void SetFaceSetArrayStatus(const char* name, int flag)
677 {
678 this->SetObjectStatus(FACE_SET, name, flag);
679 }
680
682 const char* GetElementSetArrayName(int index) { return this->GetObjectName(ELEM_SET, index); }
683 int GetElementSetArrayStatus(const char* name) { return this->GetObjectStatus(ELEM_SET, name); }
684 void SetElementSetArrayStatus(const char* name, int flag)
685 {
686 this->SetObjectStatus(ELEM_SET, name, flag);
687 }
688
690 const char* GetNodeSetResultArrayName(int index)
691 {
692 return this->GetObjectArrayName(NODE_SET, index);
693 }
694 int GetNodeSetResultArrayStatus(const char* name)
695 {
696 return this->GetObjectArrayStatus(NODE_SET, name);
697 }
698 void SetNodeSetResultArrayStatus(const char* name, int flag)
699 {
700 this->SetObjectArrayStatus(NODE_SET, name, flag);
701 }
702
704 const char* GetSideSetResultArrayName(int index)
705 {
706 return this->GetObjectArrayName(SIDE_SET, index);
707 }
708 int GetSideSetResultArrayStatus(const char* name)
709 {
710 return this->GetObjectArrayStatus(SIDE_SET, name);
711 }
712 void SetSideSetResultArrayStatus(const char* name, int flag)
713 {
714 this->SetObjectArrayStatus(SIDE_SET, name, flag);
715 }
716
718 const char* GetEdgeSetResultArrayName(int index)
719 {
720 return this->GetObjectArrayName(EDGE_SET, index);
721 }
722 int GetEdgeSetResultArrayStatus(const char* name)
723 {
724 return this->GetObjectArrayStatus(EDGE_SET, name);
725 }
726 void SetEdgeSetResultArrayStatus(const char* name, int flag)
727 {
728 this->SetObjectArrayStatus(EDGE_SET, name, flag);
729 }
730
732 const char* GetFaceSetResultArrayName(int index)
733 {
734 return this->GetObjectArrayName(FACE_SET, index);
735 }
736 int GetFaceSetResultArrayStatus(const char* name)
737 {
738 return this->GetObjectArrayStatus(FACE_SET, name);
739 }
740 void SetFaceSetResultArrayStatus(const char* name, int flag)
741 {
742 this->SetObjectArrayStatus(FACE_SET, name, flag);
743 }
744
746 const char* GetElementSetResultArrayName(int index)
747 {
748 return this->GetObjectArrayName(ELEM_SET, index);
749 }
750 int GetElementSetResultArrayStatus(const char* name)
751 {
752 return this->GetObjectArrayStatus(ELEM_SET, name);
753 }
754 void SetElementSetResultArrayStatus(const char* name, int flag)
755 {
756 this->SetObjectArrayStatus(ELEM_SET, name, flag);
757 }
758
767 void Reset();
768
778
783
787 void SetCacheSize(double CacheSize);
788
792 double GetCacheSize();
793
795
807 void SetSqueezePoints(bool sp);
810
811 virtual void Dump();
812
818
820
823 vtkGetMacro(SILUpdateStamp, int);
825
827
833
835
846
848
855 vtkSetMacro(UseLegacyBlockNames, bool);
856 vtkGetMacro(UseLegacyBlockNames, bool);
857 vtkBooleanMacro(UseLegacyBlockNames, bool);
859protected:
862
863 // helper for finding IDs
864 static int GetIDHelper(const char* arrayName, vtkDataSet* data, int localID, int searchType);
865 static int GetGlobalID(const char* arrayName, vtkDataSet* data, int localID, int searchType);
866
869
875
876 // Time query function. Called by ExecuteInformation().
877 // Fills the TimestepValues array.
879
884
889 // int RequestDataOverTime( vtkInformation *, vtkInformationVector **, vtkInformationVector *);
890
891 // Parameters for controlling what is read in.
892 char* FileName;
898
899 // Information specific for exodus files.
900
901 // 1=display Block names
902 // 2=display Part names
903 // 3=display Material names
905
906 // Metadata containing a description of the currently open file.
908
910
911 friend class vtkPExodusIIReader;
912
913private:
914 vtkExodusIIReader(const vtkExodusIIReader&) = delete;
915 void operator=(const vtkExodusIIReader&) = delete;
916
917 void AddDisplacements(vtkUnstructuredGrid* output);
918 int ModeShapesRange[2];
919
920 bool UseLegacyBlockNames;
921};
922
923#endif
abstract class to specify dataset behavior
Definition vtkDataSet.h:57
This class holds metadata for an Exodus file.
virtual void SetGenerateGlobalNodeIdArray(vtkTypeBool g)
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...
int GetNumberOfElementsInFile()
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
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkTypeBool GetAnimateModeShapes()
If this flag is on (the default) and HasModeShapes is also on, then this reader will report a continu...
virtual void SetFileName(VTK_FILEPATH const char *fname)
Specify file name of the Exodus file.
const char * GetObjectTypeName(int)
const char * GetNodeSetArrayName(int index)
int GetEdgeBlockArrayStatus(const char *name)
int GetFaceResultArrayStatus(const char *name)
virtual void SetFileId(int f)
void SetEdgeBlockArrayStatus(const char *name, int flag)
int GetNumberOfFacesInFile()
static int GetGlobalNodeID(vtkDataSet *data, int localID, int searchType)
Extra point data array that can be generated.
vtkTypeBool GetGenerateImplicitNodeIdArray()
static int GetGlobalFaceID(vtkDataSet *data, int localID)
int GetObjectArrayStatus(int objectType, int arrayIndex)
By default arrays are not loaded.
static const char * GetImplicitNodeIdArrayName()
Extra point data array that can be generated.
int GetObjectIndex(int objectType, const char *objectName)
void SetElementResultArrayStatus(const char *name, int flag)
int GetNumberOfObjectArrays(int objectType)
By default arrays are not loaded.
int GetEdgeSetResultArrayStatus(const char *name)
static const char * GetImplicitFaceIdArrayName()
void SetElementMapArrayStatus(const char *name, int flag)
void SetElementSetArrayStatus(const char *name, int flag)
const char * GetFaceResultArrayName(int index)
void SetSideSetResultArrayStatus(const char *name, int flag)
int GetMaterialArrayStatus(const char *)
By default all materials are loaded.
static vtkInformationIntegerKey * GLOBAL_VARIABLE()
Exodus reader outputs global variables and global temporal variables, together with some other variab...
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)
static const char * GetGlobalEdgeIdArrayName()
int GetNumberOfPartArrays()
By default all parts are loaded.
int GetHierarchyArrayStatus(const char *)
By default all hierarchy entries are loaded.
int GetNumberOfTimeSteps()
Access to meta data generated by UpdateInformation.
vtkTypeBool GetGenerateFileIdArray()
int GetNumberOfNodesInFile()
virtual void Dump()
const char * GetEdgeBlockArrayName(int index)
void SetFaceBlockArrayStatus(const char *name, int flag)
virtual void SetTimeStep(int)
Which TimeStep to read.
int GetPointResultArrayStatus(const char *name)
int GetPartArrayStatus(int index)
By default all parts are loaded.
const char * GetFaceMapArrayName(int index)
void SetPartArrayStatus(int index, int flag)
By default all parts are loaded.
virtual void SetHasModeShapes(vtkTypeBool ms)
Set/Get whether the Exodus sequence number corresponds to time steps or mode shapes.
static const char * GetPedigreeFaceIdArrayName()
static int GetGlobalID(const char *arrayName, vtkDataSet *data, int localID, int searchType)
vtkTypeBool GetGenerateGlobalElementIdArray()
virtual void SetGenerateImplicitNodeIdArray(vtkTypeBool g)
const char * GetSideSetArrayName(int index)
int GetPartArrayID(const char *name)
By default all parts are loaded.
~vtkExodusIIReader() override
bool GetSqueezePoints()
Should the reader output only points used by elements in the output mesh, or all the points.
const char * GetObjectAttributeName(int objectType, int objectIndex, int attribIndex)
By default attributes are not loaded.
int GetEdgeMapArrayStatus(const char *name)
void SetPartArrayStatus(const char *, int flag)
By default all parts are loaded.
vtkExodusIIReaderPrivate * Metadata
int GetMaterialArrayStatus(int index)
By default all materials are loaded.
int GetElementResultArrayStatus(const char *name)
int GetNumberOfAssemblyArrays()
By default all assemblies are loaded.
void SetAssemblyArrayStatus(const char *, int flag)
By default all assemblies are loaded.
int GetEdgeSetArrayStatus(const char *name)
void SetNodeSetResultArrayStatus(const char *name, int flag)
void SetMaterialArrayStatus(int index, int flag)
By default all materials are loaded.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
const char * GetFaceSetArrayName(int index)
const char * GetGlobalResultArrayName(int index)
int GetNodeSetResultArrayStatus(const char *name)
virtual void SetGenerateGlobalElementIdArray(vtkTypeBool g)
void SetAllArrayStatus(int otype, int status)
int GetHierarchyArrayStatus(int index)
By default all hierarchy entries are loaded.
vtkTypeBool GetGenerateObjectIdCellArray()
Extra cell data array that can be generated.
int GetNumberOfMaterialArrays()
By default all materials are loaded.
vtkTypeBool GetGenerateImplicitElementIdArray()
const char * GetEdgeMapArrayName(int index)
void ResetCache()
Clears out the cache entries.
virtual void SetMetadata(vtkExodusIIReaderPrivate *)
void SetMaterialArrayStatus(const char *, int flag)
By default all materials are loaded.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static const char * GetGlobalFaceIdArrayName()
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)
int GetNumberOfEntriesInObject(int objectType, int objectIndex)
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)
By default attributes are not loaded.
vtkTimeStamp FileNameMTime
int GetAssemblyArrayStatus(const char *)
By default all assemblies are loaded.
const char * GetFaceSetResultArrayName(int index)
void SetModeShape(int val)
Convenience method to set the mode-shape which is same as this->SetTimeStep(val-1);.
static const char * GetPedigreeEdgeIdArrayName()
int GetAssemblyArrayID(const char *name)
By default all assemblies are loaded.
static int GetGlobalEdgeID(vtkDataSet *data, int localID)
void SetObjectArrayStatus(int objectType, int arrayIndex, int status)
By default arrays are not loaded.
void SetFaceMapArrayStatus(const char *name, int flag)
bool GetIgnoreFileTime()
When on, this option ignores the time values assigned to each time step in the file.
int GetSideSetArrayStatus(const char *name)
void ResetSettings()
Reset the user-specified parameters to their default values.
int GetMaterialArrayID(const char *name)
By default all materials are loaded.
const char * GetHierarchyArrayName(int arrayIdx)
By default all hierarchy entries are loaded.
void SetFaceResultArrayStatus(const char *name, int flag)
int GetObjectIndex(int objectType, int id)
int GetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName)
By default attributes are not loaded.
static int GetGlobalFaceID(vtkDataSet *data, int localID, int searchType)
void SetObjectStatus(int objectType, int objectIndex, int status)
const char * GetElementMapArrayName(int index)
void SetElementSetResultArrayStatus(const char *name, int flag)
int GetDimensionality()
Access to meta data generated by UpdateInformation.
void SetAssemblyArrayStatus(int index, int flag)
By default all assemblies are loaded.
int GetObjectArrayIndex(int objectType, const char *arrayName)
By default arrays are not loaded.
static const char * GetPedigreeElementIdArrayName()
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)
By default all hierarchy entries are loaded.
int GetMaxNameLength()
Get the max_name_length in the file.
static const char * GetPedigreeNodeIdArrayName()
Extra point data array that can be generated.
static const char * GetImplicitElementIdArrayName()
double GetModeShapeTime()
Set/Get the time used to animate mode shapes.
vtkTimeStamp XMLFileNameMTime
int GetEdgeResultArrayStatus(const char *name)
float GetDisplacementMagnitude()
Geometric locations can include displacements.
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)
virtual int CanReadFile(VTK_FILEPATH const char *fname)
Determine if the file can be read with this reader.
void SetObjectStatus(int objectType, const char *objectName, int status)
void SetObjectAttributeStatus(int objectType, int objectIndex, const char *attribName, int status)
By default attributes are not loaded.
static int GetGlobalNodeID(vtkDataSet *data, int localID)
Extra point data array that can be generated.
int GetFaceMapArrayStatus(const char *name)
int GetFaceBlockArrayStatus(const char *name)
const char * GetSideSetResultArrayName(int index)
virtual vtkIdType GetTotalNumberOfEdges()
virtual vtkMTimeType GetMetadataMTime()
Return the MTime of the internal data structure.
virtual void SetXMLFileName(VTK_FILEPATH const char *fname)
Specify file name of the xml file.
bool FindXMLFile()
Returns true if the file given by XMLFileName exists.
void AdvertiseTimeSteps(vtkInformation *outputInfo)
Populates the TIME_STEPS and TIME_RANGE keys based on file metadata.
const char * GetNodeMapArrayName(int index)
const char * GetMaterialArrayName(int arrayIdx)
By default all materials are loaded.
vtkTypeBool GetHasModeShapes()
Set/Get whether the Exodus sequence number corresponds to time steps or mode shapes.
void SetEdgeSetArrayStatus(const char *name, int flag)
virtual vtkIdType GetTotalNumberOfFaces()
vtkGraph * GetSIL()
SIL describes organization of/relationships between classifications eg.
int GetObjectId(int objectType, int objectIndex)
int GetNumberOfElementSetResultArrays()
const char * GetTitle()
Access to meta data generated by UpdateInformation.
int GetNumberOfEdgesInFile()
void SetElementBlockArrayStatus(const char *name, int flag)
static const char * GetGlobalElementIdArrayName()
virtual void SetModeShapeTime(double phase)
Set/Get the time used to animate mode shapes.
const char * GetPartBlockInfo(int arrayIdx)
By default all parts are loaded.
void SetFaceSetArrayStatus(const char *name, int flag)
void SetGlobalResultArrayStatus(const char *name, int flag)
vtkTypeBool GetGenerateGlobalNodeIdArray()
const char * GetPartArrayName(int arrayIdx)
By default all parts are loaded.
vtkGetFilePathMacro(XMLFileName)
Specify file name of the xml file.
virtual void SetApplyDisplacements(vtkTypeBool d)
Geometric locations can include displacements.
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...
virtual vtkIdType GetTotalNumberOfElements()
const char * GetNodeSetResultArrayName(int index)
vtkMTimeType GetMTime() override
Return the object's MTime.
void SetHierarchyArrayStatus(const char *, int flag)
By default all hierarchy entries are loaded.
static const char * GetGlobalNodeIdArrayName()
Extra point data array that can be generated.
int GetNumberOfObjects(int objectType)
virtual void SetIgnoreFileTime(bool flag)
When on, this option ignores the time values assigned to each time step in the file.
int GetAssemblyArrayStatus(int index)
By default all assemblies are loaded.
int GetObjectTypeFromName(const char *name)
int GetElementBlockArrayStatus(const char *name)
const char * GetEdgeResultArrayName(int index)
int GetElementSetResultArrayStatus(const char *name)
int GetObjectAttributeIndex(int objectType, int objectIndex, const char *attribName)
By default attributes are not loaded.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetElementResultArrayName(int index)
virtual void SetDisplacementMagnitude(float s)
Geometric locations can include displacements.
int GetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex)
By default attributes are not loaded.
int GetGlobalResultArrayStatus(const char *name)
virtual vtkIdType GetTotalNumberOfNodes()
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 * GetEdgeSetArrayName(int index)
void SetPointResultArrayStatus(const char *name, int flag)
const char * GetFaceBlockArrayName(int index)
static const char * GetImplicitEdgeIdArrayName()
int GetVariableID(const char *type, const char *name)
Return the id of the type,name variable.
void SetNodeSetArrayStatus(const char *name, int flag)
int GetSideSetResultArrayStatus(const char *name)
void SetSqueezePoints(bool sp)
Should the reader output only points used by elements in the output mesh, or all the points.
virtual void SetGenerateFileIdArray(vtkTypeBool f)
void SetFaceSetResultArrayStatus(const char *name, int flag)
const char * GetObjectName(int objectType, int objectIndex)
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)
vtkGetFilePathMacro(FileName)
Specify file name of the Exodus file.
const char * GetObjectArrayName(int objectType, int arrayIndex)
By default arrays are not loaded.
ObjectType
Extra cell data array that can be generated.
@ NODE_SET_CONN
node set connectivity
@ EDGE_BLOCK_CONN
raw edge block connectivity (references nodes)
@ SIDE_SET_CONN
side set connectivity
@ GLOBAL_ELEMENT_ID
element id array extracted for a particular block (yes, this is a bad name)
@ FACE_SET_CONN
face set connectivity
@ ENTITY_COUNTS
polyhedra per-entity count ex_get_block returns the sum for polyhedra
@ GLOBAL_TEMPORAL
global data across timesteps
@ INFO_RECORDS
Exodus II Information Records string metadata.
@ OBJECT_ID
object id (old BlockId) array
@ EDGE_BLOCK_ATTRIB
an edge block attribute array (time-constant scalar per element)
@ NODAL_SQUEEZEMAP
the integer map use to "squeeze" coordinates and nodal arrays/maps
@ GLOBAL_CONN
connectivity assembled from all blocks+sets to be loaded
@ ELEM_BLOCK_TEMPORAL
element data across timesteps
@ EDGE_SET_CONN
edge set connectivity
@ QA_RECORDS
Exodus II Quality Assurance (QA) string metadata.
@ ELEMENT_ID
element id map (old-style elem_num_map or first new-style elem map) array
@ NODAL_COORDS
raw nodal coordinates (not the "squeezed" version)
@ GLOBAL_NODE_ID
nodal id array extracted for a particular block (yes, this is a bad name)
@ IMPLICIT_ELEMENT_ID
the implicit global index of each element given by exodus
@ EDGE_ID
edge id map (old-style edge_num_map or first new-style edge map) array
@ IMPLICIT_NODE_ID
the implicit global index of each node given by exodus
@ ELEM_SET_CONN
element set connectivity
@ ELEM_BLOCK_ELEM_CONN
raw element block connectivity for elements (not edges/faces)
@ NODE_ID
nodal id map (old-style node_num_map or first new-style node map) array
@ FACE_ID
face id map (old-style face_num_map or first new-style face map) array
@ FACE_BLOCK_ATTRIB
a face block attribute array (time-constant scalar per element)
@ NODAL_TEMPORAL
nodal data across timesteps
@ ELEM_BLOCK_ATTRIB
an element block attribute array (time-constant scalar per element)
@ FACE_BLOCK_CONN
raw face block connectivity (references nodes)
@ ELEM_BLOCK_EDGE_CONN
raw element block connectivity for edges (references edge blocks)
@ ELEM_BLOCK_FACE_CONN
raw element block connectivity for faces (references face blocks)
int GetNumberOfObjectArrayComponents(int objectType, int arrayIndex)
By default arrays are not loaded.
static const char * GetObjectIdArrayName()
Extra cell data array that can be generated.
vtkTypeBool GetApplyDisplacements()
Geometric locations can include displacements.
int GetObjectStatus(int objectType, const char *objectName)
const char * GetPointResultArrayName(int index)
int GetObjectArrayStatus(int objectType, const char *arrayName)
By default arrays are not loaded.
void SetEdgeSetResultArrayStatus(const char *name, int flag)
static int GetGlobalElementID(vtkDataSet *data, int localID)
friend class vtkPExodusIIReader
static vtkExodusIIReader * New()
int GetNodeSetArrayStatus(const char *name)
const char * GetElementSetResultArrayName(int index)
const char * GetEdgeSetResultArrayName(int index)
int GetFaceSetResultArrayStatus(const char *name)
const char * GetAssemblyArrayName(int arrayIdx)
By default all assemblies are loaded.
const char * GetElementSetArrayName(int index)
int GetPartArrayStatus(const char *)
By default all parts are loaded.
static vtkInformationIntegerKey * GLOBAL_TEMPORAL_VARIABLE()
Exodus reader outputs global variables and global temporal variables, together with some other variab...
void SetObjectArrayStatus(int objectType, const char *arrayName, int status)
By default arrays are not loaded.
const char * GetElementBlockArrayName(int index)
dynamic, self-adjusting array of float
Base class for graph data types.
Definition vtkGraph.h:290
a simple class to control print indentation
Definition vtkIndent.h:34
Key for integer values in vtkInformation.
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition vtkIntArray.h:40
virtual std::string GetObjectName() const
Set/get the name of this object for reporting purposes.
represent and manipulate 3D points
Definition vtkPoints.h:34
record modification and/or execution time
dataset represents arbitrary combinations of all possible cell types
int vtkTypeBool
Definition vtkABI.h:69
#define vtkDataArray
int vtkIdType
Definition vtkType.h:332
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_FILEPATH