1#ifndef vtkExodusIIReaderPrivate_h
2#define vtkExodusIIReaderPrivate_h
4#ifndef VTK_WRAPPING_CXX
14#include "vtksys/RegularExpression.hxx"
19#include "vtkIOExodusModule.h"
20#include "vtk_exodusII.h"
26class vtkTypeInt64Array;
89 vtkGetMacro(CacheSize,
double);
99 vtkGetMacro(SqueezePoints,
int);
107 vtkBooleanMacro(SqueezePoints,
int);
241 vtkSetMacro(FileId,
int);
242 vtkGetMacro(FileId,
int);
251 vtkGetMacro(DisplacementMagnitude,
double);
253 vtkSetMacro(HasModeShapes,
int);
254 vtkGetMacro(HasModeShapes,
int);
256 vtkSetMacro(ModeShapeTime,
double);
257 vtkGetMacro(ModeShapeTime,
double);
259 vtkSetMacro(AnimateModeShapes,
int);
260 vtkGetMacro(AnimateModeShapes,
int);
262 vtkSetMacro(IgnoreFileTime,
bool);
263 vtkGetMacro(IgnoreFileTime,
bool);
267 const struct ex_init_params*
GetModelParams()
const {
return &this->ModelParameters; }
433 this->SkipUpdateTimeInformation =
true;
464 this->FastPathObjectType =
type;
467 vtkSetStringMacro(FastPathIdType);
521 void GlomArrayNames(
int i,
int num_obj,
int num_vars,
char** var_names,
int* truth_tab);
745 std::map<int, std::vector<SetInfoType>>
SetInfo;
751 std::map<int, std::vector<MapInfoType>>
MapInfo;
791 struct ex_init_params ModelParameters;
abstract superclass for arrays of numeric data
internal parser used by vtkExodusIIReader.
This class holds metadata for an Exodus file.
int AssembleOutputPointMaps(vtkIdType timeStep, BlockSetInfoType *bsinfop, vtkUnstructuredGrid *output)
Add maps to an output mesh.
vtkTypeBool AnimateModeShapes
bool IsXMLMetadataValid()
static const char * GetImplicitNodeIdArrayName()
vtkTypeBool GenerateGlobalIdArray
void SetFastPathObjectId(vtkIdType id)
void SetAssemblyStatus(const vtkStdString &name, int flag)
vtkTimeStamp InformationTimeStamp
Time stamp from last time we were in RequestInformation.
vtkExodusIIReader::ObjectType FastPathObjectType
void Reset()
Reset the class so that another file may be read.
virtual void SetDisplacementMagnitude(double s)
void InsertSetCellCopies(vtkIdTypeArray *refs, int otyp, int obj, SetInfoType *sinfo)
Insert cells referenced by an edge, face, or element set.
void ResetCache()
Clears out any data in the cache and restores it to its initial state.
int GetNumberOfMaterials()
int IsObjectTypeSet(int otyp)
int CloseFile()
Close any ExodusII file currently open for reading. Returns 0 on success.
void SetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex, int status)
void AddPointArray(vtkDataArray *src, BlockSetInfoType *bsinfop, vtkUnstructuredGrid *output)
Add a point array to an output grid's point data, squeezing if necessary.
ArraySourceTypes
Tags to indicate the source of values for an array.
std::vector< double > Times
A list of time steps for which results variables are stored.
int GetObjectArrayStatus(int otype, int i)
For a given object type, returns the status of the i-th array.
int OpenFile(const char *filename)
Open an ExodusII file for reading. Returns 0 on success.
int GetAssemblyStatus(int idx)
vtkTypeBool GenerateGlobalElementIdArray
vtkTypeBool GenerateGlobalNodeIdArray
int GetMaterialStatus(const vtkStdString &name)
int AssembleOutputPoints(vtkIdType timeStep, BlockSetInfoType *bsinfop, vtkUnstructuredGrid *output)
Fill the output grid's point coordinates array.
std::map< int, std::vector< SetInfoType > > SetInfo
Maps a set type (EX_ELEM_SET, ..., EX_NODE_SET) to a list of sets of that type.
static const char * GetGlobalNodeIdArrayName()
void PrepareGeneratedArrayInfo()
Add generated array information to array info lists.
void SetCacheSize(double size)
Set the size of the cache in MiB.
void SetMaterialStatus(const vtkStdString &name, int flag)
vtkTypeBool GenerateObjectIdArray
vtkExodusIIReader * Parent
Pointer to owning reader... this is not registered in order to avoid circular references.
std::map< int, std::vector< ObjectInfoType > > InitialObjectInfo
Maps an object type (EX_ELEM_BLOCK, EX_NODE_SET, ...) to a list of objects defined on that type.
int RequestData(vtkIdType timeStep, vtkMultiBlockDataSet *output)
Read requested data and store in unstructured grid.
int GetObjectTypeIndexFromObjectType(int otyp)
Return the index of an object type (in a private list of all object types).
int GetBlockConnTypeFromBlockType(int btyp)
Given a block type (EDGE_BLOCK, ...), return the associated block connectivity type (EDGE_BLOCK_CONN,...
vtkExodusIIReaderPrivate()
int GetUnsortedObjectStatus(int otype, int i)
For a given object type, returns the status of the i-th object, where i is an index into the unsorted...
int GetObjectTypeFromMapType(int mtyp)
Given a map type (NODE_MAP, EDGE_MAP, ...) return the associated object type (NODAL,...
void SetPartStatus(int idx, int on)
const char * GetAssemblyName(int idx)
vtkIdType GetPolyhedronFaceConnectivity(vtkIdType fileLocalFaceId, vtkIdType *&facePtIds)
Fetch the face-connectivity for one face of one polyhedron.
int GetBlockIndexFromFileGlobalId(int otyp, int refId)
Get the index of the block containing the entity referenced by the specified file-global ID.
int IsObjectTypeBlock(int otyp)
Does the specified object type match? Avoid using these... they aren't robust against new types being...
void FreePolyhedronFaceArrays()
Free any arrays held by PolyhedralFaceConnArrays (for polyhedral-face-connectivity lookup).
const struct ex_init_params * GetModelParams() const
int GetNumberOfObjectAttributes(int objectType, int objectIndex)
Unlike object arrays, attributes are only defined over blocks (not sets) and are defined on a per-blo...
int GetNumberOfObjectArrayComponents(int otype, int i)
For a given object type, returns the number of components of the i-th array.
int UpdateTimeInformation()
void GetInitialObjectArrayStatus(int otype, ArrayInfoType *info)
For a given array type, looks for an object in the collection of initial objects of the same name,...
int GetMapTypeFromObjectType(int otyp)
void SetAssemblyStatus(int idx, int on)
float DisplacementMagnitude
int GetObjectAttributeIndex(int objectType, int objectIndex, const char *attribName)
int AssembleOutputGlobalArrays(vtkIdType timeStep, int otyp, int oidx, BlockSetInfoType *bsinfop, vtkUnstructuredGrid *output)
Add mesh-global field data such as QA records to the output mesh.
void InsertBlockCells(int otyp, int obj, int conn_type, int timeStep, BlockInfoType *binfop)
Insert cells from a specified block into a mesh.
int GetObjectStatus(int otype, int i)
For a given object type, returns the status of the i-th object.
const char * GetPartBlockInfo(int idx)
std::map< int, std::vector< BlockInfoType > > BlockInfo
Maps a block type (EX_ELEM_BLOCK, EX_FACE_BLOCK, ...) to a list of blocks of that type.
double ModeShapeTime
The time value.
static vtkExodusIIReaderPrivate * New()
void DetermineVtkCellType(BlockInfoType &binfo)
Determine the VTK cell type for a given edge/face/element block.
int AssembleArraysOverTime(vtkMultiBlockDataSet *output)
Add fast-path time-varying data to field data of an output block or set.
void SetInitialObjectArrayStatus(int otype, const char *name, int stat)
For a given array type, creates and stores an ArrayInfoType object using the given name and status.
std::vector< AssemblyInfoType > AssemblyInfo
int GetObjectId(int otype, int i)
For a given object type, return the user-assigned ID of the i-th object.
void BuildSIL()
Build SIL. This must be called only after RequestInformation().
void InsertSetCells(int otyp, int obj, int conn_type, int timeStep, SetInfoType *sinfop)
Insert cells from a specified set into a mesh.
int IsObjectTypeMap(int otyp)
void SetSqueezePoints(int sp)
Set whether subsequent RequestData() calls will produce the minimal point set required to represent t...
static const char * GetObjectIdArrayName()
int AssembleOutputPointArrays(vtkIdType timeStep, BlockSetInfoType *bsinfop, vtkUnstructuredGrid *output)
Add the requested arrays to the output grid's point data.
int GetNumberOfNodes()
Return the number of nodes in the output (depends on SqueezePoints)
vtkMutableDirectedGraph * GetSIL()
Returns the SIL. This valid only after BuildSIL() has been called.
int AssembleOutputConnectivity(vtkIdType timeStep, int otyp, int oidx, int conntypidx, BlockSetInfoType *bsinfop, vtkUnstructuredGrid *output)
Read connectivity information and populate an unstructured grid with cells corresponding to a single ...
float ExodusVersion
The version of Exodus that wrote the currently open file (or a negative number otherwise).
int GetConnTypeIndexFromConnType(int ctyp)
Return the index of an object type (in a private list of all object types).
void GetInitialObjectStatus(int otype, ObjectInfoType *info)
For a given object type, looks for an object in the collection of initial objects of the same name,...
void SetFastPathObjectType(vtkExodusIIReader::ObjectType type)
bool SkipUpdateTimeInformation
int GetTemporalTypeFromObjectType(int otyp)
void SetInitialObjectStatus(int otype, const char *name, int stat)
For a given object type, creates and stores an ObjectInfoType object using the given name and status.
int GetAssemblyStatus(const vtkStdString &name)
BlockInfoType * GetBlockFromFileGlobalId(int otyp, int refId)
Get the block containing the entity referenced by the specified file-global ID.
std::map< int, std::vector< std::vector< vtkIdType > > > PolyhedralFaceConnArrays
Face connectivity for polyhedra.
vtkIdType FastPathObjectId
ObjectInfoType * GetUnsortedObjectInfo(int objectType, int objectIndex)
Return a pointer to the ObjectInfo of the specified type and index, but using indices sorted by objec...
vtkMutableDirectedGraph * SIL
std::map< int, std::vector< int > > SortedObjectIndices
Maps an object type to vector of indices that reorder objects of that type by their IDs.
void RemoveBeginningAndTrailingSpaces(int len, char **names, int maxNameLength)
Function to trim space from names retrieved with ex_get_var_names.
std::vector< MaterialInfoType > MaterialInfo
int GetNumberOfObjectsOfType(int otype)
Returns the number of objects of a given type (e.g., EX_ELEM_BLOCK, EX_NODE_SET, ....
vtkTypeBool HasModeShapes
vtkTypeBool ApplyDisplacements
int GetObjectSize(int otype, int i)
For a given object type, return the size of the i-th object.
int VerifyIntegrationPointGlom(int nn, char **np, vtksys::RegularExpression &re, vtkStdString &field, vtkStdString &ele)
Returns true when order and text of names are consistent with integration points.
std::map< int, std::vector< ArrayInfoType > > ArrayInfo
Maps an object type (EX_ELEM_BLOCK, EX_NODE_SET, ...) to a list of arrays.
void SetPartStatus(const vtkStdString &name, int flag)
void SetObjectArrayStatus(int otype, int i, int stat)
For a given object type, sets the status of the i-th array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetPartStatus(const vtkStdString &name)
~vtkExodusIIReaderPrivate() override
int RequestInformation()
Get metadata for an open file with handle exoid.
void ClearConnectivityCaches()
Delete any cached connectivity information (for all blocks and sets)
static const char * GetFileIdArrayName()
int AppWordSize
These aren't the variables you're looking for.
void ResetSettings()
Return user-specified variables to their default values.
const char * GetObjectArrayName(int otype, int i)
For a given object type, returns the name of the i-th array.
void InsertSetSides(vtkIdTypeArray *refs, int otyp, int obj, SetInfoType *sinfo)
Insert cells referenced by a side set.
int GetObjectAttributeStatus(int objectType, int objectIndex, int attribIndex)
void SetUnsortedObjectStatus(int otype, int i, int stat)
For a given object type, sets the status of the i-th object, where i is an index into the unsorted ob...
const char * GetObjectName(int otype, int i)
For a given object type, returns the name of the i-th object.
int GetNumberOfObjectArraysOfType(int otype)
Returns the number of arrays defined over objects of a given type (e.g., EX_ELEM_BLOCK,...
ObjectInfoType * GetObjectInfo(int typeIndex, int objectIndex)
Return a pointer to the ObjectInfo of the specified type and index.
int SqueezePoints
Should the reader output only points used by elements in the output mesh, or all the points.
static const char * GetGlobalVariableNamesArrayName()
int AssembleOutputCellMaps(vtkIdType timeStep, int otyp, int oidx, BlockSetInfoType *bsinfop, vtkUnstructuredGrid *output)
int AssembleOutputCellArrays(vtkIdType timeStep, int otyp, int oidx, BlockSetInfoType *bsinfop, vtkUnstructuredGrid *output)
Add the requested arrays to the output grid's cell data.
void InsertBlockPolyhedra(BlockInfoType *binfo, vtkIntArray *facesPerCell, vtkIdTypeArray *exoCellConn)
Insert polyhedral cells (called from InsertBlockCells when a block is polyhedral).
static const char * GetGlobalElementIdArrayName()
bool ProducedFastPathOutput
ObjectInfoType * GetSortedObjectInfo(int objectType, int objectIndex)
Return a pointer to the ObjectInfo of the specified type and index, but using indices sorted by objec...
vtkExodusIIReaderParser * Parser
static const char * GetImplicitElementIdArrayName()
vtkTypeBool GenerateImplicitNodeIdArray
vtkTypeBool GenerateImplicitElementIdArray
int GetPartStatus(int idx)
const char * GetPartName(int idx)
std::map< int, std::vector< MapInfoType > > MapInfo
Maps a map type (EX_ELEM_MAP, ..., EX_NODE_MAP) to a list of maps of that type.
double CacheSize
The size of the cache in MiB.
vtkTypeBool GenerateFileIdArray
int AssembleOutputProceduralArrays(vtkIdType timeStep, int otyp, int oidx, vtkUnstructuredGrid *output)
Add procedurally generated arrays to an output mesh.
void SetMaterialStatus(int idx, int on)
static const char * GetGlobalVariableValuesArrayName()
virtual void SetParser(vtkExodusIIReaderParser *)
void InsertSetNodeCopies(vtkIdTypeArray *refs, int otyp, int obj, SetInfoType *sinfo)
Insert cells referenced by a node set.
int GetNumberOfTimeSteps()
Return the number of time steps in the open file.
int SetUpEmptyGrid(vtkMultiBlockDataSet *output)
Description: Prepare a data set with the proper structure and arrays but no cells.
int GetMaterialStatus(int idx)
std::map< int, std::vector< ArrayInfoType > > InitialArrayInfo
Maps an object type (EX_ELEM_BLOCK, EX_NODE_SET, ...) to a list of arrays defined on that type.
vtkDataArray * FindDisplacementVectors(int timeStep)
vtkIdType GetSqueezePointId(BlockSetInfoType *bsinfop, int i)
Find or create a new SqueezePoint ID (unique sequential list of points referenced by cells in blocks/...
int GetNumberOfAssemblies()
std::vector< PartInfoType > PartInfo
ArrayInfoType * FindArrayInfoByName(int otyp, const char *name)
Find an ArrayInfo object for a specific object type using the name as a key.
virtual void SetApplyDisplacements(vtkTypeBool d)
vtkDataArray * GetCacheOrRead(vtkExodusIICacheKey)
Return an array for the specified cache key.
vtkExodusIICache * Cache
A least-recently-used cache to hold raw arrays.
void SetTimesOverrides(const std::vector< double > ×)
GlomTypes
Tags to indicate how single-component Exodus arrays are glommed (aggregated) into multi-component VTK...
int GetSetTypeFromSetConnType(int sctyp)
Given a set connectivity type (NODE_SET_CONN, ...), return the associated object type (NODE_SET,...
int Exoid
The handle of the currently open file.
void GlomArrayNames(int i, int num_obj, int num_vars, char **var_names, int *truth_tab)
Aggregate Exodus array names into VTK arrays with multiple components.
int GetNumberOfObjectsAtTypeIndex(int typeIndex)
Return the number of objects of the given type.
const char * GetObjectAttributeName(int objectType, int objectIndex, int attributeIndex)
void SetObjectStatus(int otype, int i, int stat)
For a given object type, sets the status of the i-th object.
const char * GetMaterialName(int idx)
Read exodus 2 files .ex2.
ObjectType
Extra cell data array that can be generated.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
dynamic, self-adjusting array of int
Composite dataset that organizes datasets into blocks.
An editable directed graph.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Read Exodus II files (.exii)
Wrapper around std::string to keep symbols short.
record modification and/or execution time
dataset represents arbitrary combinations of all possible cell types
A struct to hold information about time-varying arrays.
int StorageType
Storage type of array (a type that can be passed to vtkDataArray::Create())
void Reset()
Clear all the structure members.
int GlomType
The type of "glomming" performed.
std::vector< int > ObjectTruth
A map describing which objects the variable is defined on.
vtkStdString Name
The name of the array.
int Source
The source of the array (Result or Attribute)
std::vector< int > OriginalIndices
The index of each component of the array as ordered by the Exodus file.
int Status
Whether or not the array should be loaded by RequestData.
std::vector< vtkStdString > OriginalNames
The name of each component of the array as defined by the Exodus file.
int Components
The number of components in the array.
std::vector< int > BlockIndices
A struct to hold information about Exodus blocks.
vtkIdType AttributesPerEntry
std::vector< int > AttributeStatus
vtkStdString OriginalName
std::vector< vtkStdString > AttributeNames
A struct to hold information about Exodus blocks or sets (they have some members in common)
std::map< vtkIdType, vtkIdType > PointMap
A map from nodal IDs in an Exodus file to nodal IDs in the output mesh.
vtkIdType FileOffset
Id (1-based) of first entry in file-local list across all blocks in file.
std::map< vtkIdType, vtkIdType > ReversePointMap
A map from nodal ids in the output mesh to those in an Exodus file.
vtkUnstructuredGrid * CachedConnectivity
Cached cell connectivity arrays for mesh.
BlockSetInfoType(const BlockSetInfoType &block)
vtkIdType NextSqueezePoint
The next vtk ID to use for a connectivity entry when point squeezing is on and no point ID exists.
BlockSetInfoType & operator=(const BlockSetInfoType &block)
A struct to hold information about Exodus maps.
std::vector< int > BlockIndices
A struct to hold information about Exodus objects (blocks, sets, maps)
int Size
Number of entries in this block.
int Id
User-assigned identification number.
int Status
Should the reader load this block?
vtkStdString Name
User-assigned name.
A struct to hold information about Exodus blocks.
std::vector< int > BlockIndices
A struct to hold information about Exodus sets.
#define VTK_DEPRECATED_IN_9_1_0(reason)