VTK
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkExodusIIWriter Class Reference

Write Exodus II files. More...

#include <vtkExodusIIWriter.h>

Inheritance diagram for vtkExodusIIWriter:
[legend]
Collaboration diagram for vtkExodusIIWriter:
[legend]

Classes

struct  Block
 
struct  VariableInfo
 

Public Types

typedef vtkWriter Superclass
 
- Public Types inherited from vtkWriter
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkExodusIIWriterNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetModelMetadata (vtkModelMetadata *)
 
virtual vtkModelMetadataGetModelMetadata ()
 
virtual void SetFileName (const char *)
 
virtual char * GetFileName ()
 
virtual void SetStoreDoubles (int)
 
virtual int GetStoreDoubles ()
 
virtual void SetGhostLevel (int)
 
virtual int GetGhostLevel ()
 
virtual void SetWriteOutBlockIdArray (int)
 
virtual int GetWriteOutBlockIdArray ()
 
virtual void WriteOutBlockIdArrayOn ()
 
virtual void WriteOutBlockIdArrayOff ()
 
virtual void SetWriteOutGlobalNodeIdArray (int)
 
virtual int GetWriteOutGlobalNodeIdArray ()
 
virtual void WriteOutGlobalNodeIdArrayOn ()
 
virtual void WriteOutGlobalNodeIdArrayOff ()
 
virtual void SetWriteOutGlobalElementIdArray (int)
 
virtual int GetWriteOutGlobalElementIdArray ()
 
virtual void WriteOutGlobalElementIdArrayOn ()
 
virtual void WriteOutGlobalElementIdArrayOff ()
 
virtual void SetWriteAllTimeSteps (int)
 
virtual int GetWriteAllTimeSteps ()
 
virtual void WriteAllTimeStepsOn ()
 
virtual void WriteAllTimeStepsOff ()
 
virtual void SetBlockIdArrayName (const char *)
 
virtual char * GetBlockIdArrayName ()
 
- Public Member Functions inherited from vtkWriter
vtkWriterNewInstance () const
 
virtual int Write ()
 
void EncodeString (char *resname, const char *name, bool doublePercent)
 
void EncodeWriteString (ostream *out, const char *name, bool doublePercent)
 
void SetInputData (vtkDataObject *input)
 
void SetInputData (int index, vtkDataObject *input)
 
vtkDataObjectGetInput ()
 
vtkDataObjectGetInput (int port)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkExodusIIWriterNew ()
 
static int IsTypeOf (const char *type)
 
static vtkExodusIIWriterSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkWriter
static int IsTypeOf (const char *type)
 
static vtkWriterSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkExodusIIWriter ()
 
 ~vtkExodusIIWriter ()
 
int BlockVariableTruthValue (int blockIdx, int varIdx)
 
char * StrDupWithNew (const char *s)
 
void StringUppercase (std::string &str)
 
int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
int FillInputPortInformation (int port, vtkInformation *info)
 
int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
void WriteData ()
 
int FlattenHierarchy (vtkDataObject *input, bool &changed)
 
int CreateNewExodusFile ()
 
void CloseExodusFile ()
 
int IsDouble ()
 
void RemoveGhostCells ()
 
int CheckParametersInternal (int NumberOfProcesses, int MyRank)
 
virtual int CheckParameters ()
 
virtual int GlobalContinueExecuting (int localContinueExecution)
 
int CheckInputArrays ()
 
virtual void CheckBlockInfoMap ()
 
int ConstructBlockInfoMap ()
 
int ConstructVariableInfoMaps ()
 
int ParseMetadata ()
 
int CreateDefaultMetadata ()
 
char * GetCellTypeName (int t)
 
int CreateBlockIdMetadata (vtkModelMetadata *em)
 
int CreateBlockVariableMetadata (vtkModelMetadata *em)
 
int CreateSetsMetadata (vtkModelMetadata *em)
 
void ConvertVariableNames (std::map< std::string, VariableInfo > &variableMap)
 
char ** FlattenOutVariableNames (int nScalarArrays, const std::map< std::string, VariableInfo > &variableMap)
 
std::string CreateNameForScalarArray (const char *root, int component, int numComponents)
 
vtkIdType GetNodeLocalId (vtkIdType id)
 
vtkIdType GetElementLocalId (vtkIdType id)
 
int GetElementType (vtkIdType id)
 
int WriteInitializationParameters ()
 
int WriteInformationRecords ()
 
int WritePoints ()
 
int WriteCoordinateNames ()
 
int WriteGlobalPointIds ()
 
int WriteBlockInformation ()
 
int WriteGlobalElementIds ()
 
int WriteVariableArrayNames ()
 
int WriteNodeSetInformation ()
 
int WriteSideSetInformation ()
 
int WriteProperties ()
 
int WriteNextTimeStep ()
 
vtkIntArrayGetBlockIdArray (const char *BlockIdArrayName, vtkUnstructuredGrid *input)
 
double ExtractGlobalData (const char *name, int comp, int ts)
 
int WriteGlobalData (int timestep, vtkDataArray *buffer)
 
void ExtractCellData (const char *name, int comp, vtkDataArray *buffer)
 
int WriteCellData (int timestep, vtkDataArray *buffer)
 
void ExtractPointData (const char *name, int comp, vtkDataArray *buffer)
 
int WritePointData (int timestep, vtkDataArray *buffer)
 
- Protected Member Functions inherited from vtkWriter
 vtkWriter ()
 
 ~vtkWriter ()
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Static Protected Member Functions

static bool SameTypeOfCells (vtkIntArray *cellToBlockId, vtkUnstructuredGrid *input)
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 

Protected Attributes

vtkModelMetadataModelMetadata
 
char * BlockIdArrayName
 
char * FileName
 
int fid
 
int NumberOfProcesses
 
int MyRank
 
int PassDoubles
 
int StoreDoubles
 
int GhostLevel
 
int WriteOutBlockIdArray
 
int WriteOutGlobalNodeIdArray
 
int WriteOutGlobalElementIdArray
 
int WriteAllTimeSteps
 
int NumberOfTimeSteps
 
vtkDoubleArrayTimeValues
 
int CurrentTimeIndex
 
int FileTimeOffset
 
bool TopologyChanged
 
vtkDataObjectOriginalInput
 
std::vector< vtkSmartPointer< vtkUnstructuredGrid > > FlattenedInput
 
std::vector< vtkSmartPointer< vtkUnstructuredGrid > > NewFlattenedInput
 
std::vector< vtkIntArray * > BlockIdList
 
std::map< int, BlockBlockInfoMap
 
int NumCells
 
int NumPoints
 
int MaxId
 
std::vector< vtkIdType * > GlobalElementIdList
 
std::vector< vtkIdType * > GlobalNodeIdList
 
int AtLeastOneGlobalElementIdList
 
int AtLeastOneGlobalNodeIdList
 
std::map< std::string, VariableInfoGlobalVariableMap
 
std::map< std::string, VariableInfoBlockVariableMap
 
std::map< std::string, VariableInfoNodeVariableMap
 
int NumberOfScalarGlobalArrays
 
int NumberOfScalarElementArrays
 
int NumberOfScalarNodeArrays
 
std::vector< std::vector< int > > CellToElementOffset
 
intBlockElementVariableTruthTable
 
int AllVariablesDefinedInAllBlocks
 
std::map< vtkIdType, vtkIdType > * LocalNodeIdMap
 
std::map< vtkIdType, vtkIdType > * LocalElementIdMap
 
- Protected Attributes inherited from vtkWriter
vtkTimeStamp WriteTime
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

Write Exodus II files.

This is a vtkWriter that writes it's vtkUnstructuredGrid input out to an Exodus II file. Go to http://endo.sandia.gov/SEACAS/ for more information about the Exodus II format.

Exodus files contain much information that is not captured in a vtkUnstructuredGrid, such as time steps, information lines, node sets, and side sets. This information can be stored in a vtkModelMetadata object.

The vtkExodusReader and vtkPExodusReader can create a vtkModelMetadata object and embed it in a vtkUnstructuredGrid in a series of field arrays. This writer searches for these field arrays and will use the metadata contained in them when creating the new Exodus II file.

You can also explicitly give the vtkExodusIIWriter a vtkModelMetadata object to use when writing the file.

In the absence of the information provided by vtkModelMetadata, if this writer is not part of a parallel application, we will use reasonable defaults for all the values in the output Exodus file. If you don't provide a block ID element array, we'll create a block for each cell type that appears in the unstructured grid.

However if this writer is part of a parallel application (hence writing out a distributed Exodus file), then we need at the very least a list of all the block IDs that appear in the file. And we need the element array of block IDs for the input unstructured grid.

In the absence of a vtkModelMetadata object, you can also provide time step information which we will include in the output Exodus file.

Warning
If the input floating point field arrays and point locations are all floats or all doubles, this class will operate more efficiently. Mixing floats and doubles will slow you down, because Exodus II requires that we write only floats or only doubles.
We use the terms "point" and "node" interchangeably. Also, we use the terms "element" and "cell" interchangeably.
Tests:
vtkExodusIIWriter (Tests)

Definition at line 86 of file vtkExodusIIWriter.h.

Member Typedef Documentation

Definition at line 90 of file vtkExodusIIWriter.h.

Constructor & Destructor Documentation

vtkExodusIIWriter::vtkExodusIIWriter ( )
protected
vtkExodusIIWriter::~vtkExodusIIWriter ( )
protected

Member Function Documentation

static vtkExodusIIWriter* vtkExodusIIWriter::New ( )
static
static int vtkExodusIIWriter::IsTypeOf ( const char *  type)
static
virtual int vtkExodusIIWriter::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkWriter.

Reimplemented in vtkPExodusIIWriter.

static vtkExodusIIWriter* vtkExodusIIWriter::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkExodusIIWriter::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkWriter.

Reimplemented in vtkPExodusIIWriter.

vtkExodusIIWriter* vtkExodusIIWriter::NewInstance ( ) const
void vtkExodusIIWriter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkWriter.

Reimplemented in vtkPExodusIIWriter.

void vtkExodusIIWriter::SetModelMetadata ( vtkModelMetadata )

Specify the vtkModelMetadata object which contains the Exodus file model information (metadata) absent in the vtkUnstructuredGrid. If you have this object, you don't need to set any other values before writing. (Just the FileName and the Input.) Note that the vtkExodusReader can create and attach a vtkModelMetadata object to it's output. If this has happened, the ExodusIIWriter will find it and use it.

virtual vtkModelMetadata* vtkExodusIIWriter::GetModelMetadata ( )
virtual
virtual void vtkExodusIIWriter::SetFileName ( const char *  )
virtual

Name for the output file. If writing in parallel, the number of processes and the process rank will be appended to the name, so each process is writing out a separate file. If not set, this class will make up a file name.

virtual char* vtkExodusIIWriter::GetFileName ( )
virtual
virtual void vtkExodusIIWriter::SetStoreDoubles ( int  )
virtual

If StoreDoubles is ON, the floating point fields in the Exodus file will be double precision fields. The default is determined by the max precision of the input. If the field data appears to be doubles, then StoreDoubles will be ON, otherwise StoreDoubles will be OFF.

virtual int vtkExodusIIWriter::GetStoreDoubles ( )
virtual
virtual void vtkExodusIIWriter::SetGhostLevel ( int  )
virtual

We never write out ghost cells. This variable is here to satisfy the behavior of ParaView on invoking a parallel writer.

virtual int vtkExodusIIWriter::GetGhostLevel ( )
virtual
virtual void vtkExodusIIWriter::SetWriteOutBlockIdArray ( int  )
virtual

By default, the integer array containing the global Block Ids of the cells is not included when the new Exodus II file is written out. If you do want to include this array, set WriteOutBlockIdArray to ON.

virtual int vtkExodusIIWriter::GetWriteOutBlockIdArray ( )
virtual
virtual void vtkExodusIIWriter::WriteOutBlockIdArrayOn ( )
virtual
virtual void vtkExodusIIWriter::WriteOutBlockIdArrayOff ( )
virtual
virtual void vtkExodusIIWriter::SetWriteOutGlobalNodeIdArray ( int  )
virtual

By default, the integer array containing the global Node Ids is not included when the new Exodus II file is written out. If you do want to include this array, set WriteOutGlobalNodeIdArray to ON.

virtual int vtkExodusIIWriter::GetWriteOutGlobalNodeIdArray ( )
virtual
virtual void vtkExodusIIWriter::WriteOutGlobalNodeIdArrayOn ( )
virtual
virtual void vtkExodusIIWriter::WriteOutGlobalNodeIdArrayOff ( )
virtual
virtual void vtkExodusIIWriter::SetWriteOutGlobalElementIdArray ( int  )
virtual

By default, the integer array containing the global Element Ids is not included when the new Exodus II file is written out. If you do want to include this array, set WriteOutGlobalElementIdArray to ON.

virtual int vtkExodusIIWriter::GetWriteOutGlobalElementIdArray ( )
virtual
virtual void vtkExodusIIWriter::WriteOutGlobalElementIdArrayOn ( )
virtual
virtual void vtkExodusIIWriter::WriteOutGlobalElementIdArrayOff ( )
virtual
virtual void vtkExodusIIWriter::SetWriteAllTimeSteps ( int  )
virtual

When WriteAllTimeSteps is turned ON, the writer is executed once for each timestep available from the reader.

virtual int vtkExodusIIWriter::GetWriteAllTimeSteps ( )
virtual
virtual void vtkExodusIIWriter::WriteAllTimeStepsOn ( )
virtual
virtual void vtkExodusIIWriter::WriteAllTimeStepsOff ( )
virtual
virtual void vtkExodusIIWriter::SetBlockIdArrayName ( const char *  )
virtual
virtual char* vtkExodusIIWriter::GetBlockIdArrayName ( )
virtual
int vtkExodusIIWriter::BlockVariableTruthValue ( int  blockIdx,
int  varIdx 
)
protected
char* vtkExodusIIWriter::StrDupWithNew ( const char *  s)
protected
void vtkExodusIIWriter::StringUppercase ( std::string &  str)
protected
int vtkExodusIIWriter::ProcessRequest ( vtkInformation request,
vtkInformationVector **  inInfo,
vtkInformationVector outInfo 
)
protectedvirtual

Upstream/Downstream requests form the generalized interface through which executives invoke a algorithm's functionality. Upstream requests correspond to information flow from the algorithm's outputs to its inputs. Downstream requests correspond to information flow from the algorithm's inputs to its outputs. A downstream request is defined by the contents of the request information object. The input to the request is stored in the input information vector passed to ProcessRequest. The results of an downstream request are stored in the output information vector passed to ProcessRequest. An upstream request is defined by the contents of the request information object. The input to the request is stored in the output information vector passed to ProcessRequest. The results of an upstream request are stored in the input information vector passed to ProcessRequest. It returns the boolean status of the pipeline (false means failure).

Reimplemented from vtkWriter.

int vtkExodusIIWriter::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
protected
virtual int vtkExodusIIWriter::RequestUpdateExtent ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
protectedvirtual

Reimplemented in vtkPExodusIIWriter.

int vtkExodusIIWriter::FillInputPortInformation ( int  port,
vtkInformation info 
)
protectedvirtual

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkAlgorithm.

int vtkExodusIIWriter::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
protectedvirtual

Reimplemented from vtkWriter.

void vtkExodusIIWriter::WriteData ( )
protectedvirtual

Implements vtkWriter.

int vtkExodusIIWriter::FlattenHierarchy ( vtkDataObject input,
bool &  changed 
)
protected
int vtkExodusIIWriter::CreateNewExodusFile ( )
protected
void vtkExodusIIWriter::CloseExodusFile ( )
protected
int vtkExodusIIWriter::IsDouble ( )
protected
void vtkExodusIIWriter::RemoveGhostCells ( )
protected
int vtkExodusIIWriter::CheckParametersInternal ( int  NumberOfProcesses,
int  MyRank 
)
protected
virtual int vtkExodusIIWriter::CheckParameters ( )
protectedvirtual

Reimplemented in vtkPExodusIIWriter.

virtual int vtkExodusIIWriter::GlobalContinueExecuting ( int  localContinueExecution)
protectedvirtual

Reimplemented in vtkPExodusIIWriter.

int vtkExodusIIWriter::CheckInputArrays ( )
protected
virtual void vtkExodusIIWriter::CheckBlockInfoMap ( )
protectedvirtual

Reimplemented in vtkPExodusIIWriter.

int vtkExodusIIWriter::ConstructBlockInfoMap ( )
protected
int vtkExodusIIWriter::ConstructVariableInfoMaps ( )
protected
int vtkExodusIIWriter::ParseMetadata ( )
protected
int vtkExodusIIWriter::CreateDefaultMetadata ( )
protected
char* vtkExodusIIWriter::GetCellTypeName ( int  t)
protected
int vtkExodusIIWriter::CreateBlockIdMetadata ( vtkModelMetadata em)
protected
int vtkExodusIIWriter::CreateBlockVariableMetadata ( vtkModelMetadata em)
protected
int vtkExodusIIWriter::CreateSetsMetadata ( vtkModelMetadata em)
protected
void vtkExodusIIWriter::ConvertVariableNames ( std::map< std::string, VariableInfo > &  variableMap)
protected
char** vtkExodusIIWriter::FlattenOutVariableNames ( int  nScalarArrays,
const std::map< std::string, VariableInfo > &  variableMap 
)
protected
std::string vtkExodusIIWriter::CreateNameForScalarArray ( const char *  root,
int  component,
int  numComponents 
)
protected
vtkIdType vtkExodusIIWriter::GetNodeLocalId ( vtkIdType  id)
protected
vtkIdType vtkExodusIIWriter::GetElementLocalId ( vtkIdType  id)
protected
int vtkExodusIIWriter::GetElementType ( vtkIdType  id)
protected
int vtkExodusIIWriter::WriteInitializationParameters ( )
protected
int vtkExodusIIWriter::WriteInformationRecords ( )
protected
int vtkExodusIIWriter::WritePoints ( )
protected
int vtkExodusIIWriter::WriteCoordinateNames ( )
protected
int vtkExodusIIWriter::WriteGlobalPointIds ( )
protected
int vtkExodusIIWriter::WriteBlockInformation ( )
protected
int vtkExodusIIWriter::WriteGlobalElementIds ( )
protected
int vtkExodusIIWriter::WriteVariableArrayNames ( )
protected
int vtkExodusIIWriter::WriteNodeSetInformation ( )
protected
int vtkExodusIIWriter::WriteSideSetInformation ( )
protected
int vtkExodusIIWriter::WriteProperties ( )
protected
int vtkExodusIIWriter::WriteNextTimeStep ( )
protected
vtkIntArray* vtkExodusIIWriter::GetBlockIdArray ( const char *  BlockIdArrayName,
vtkUnstructuredGrid input 
)
protected
static bool vtkExodusIIWriter::SameTypeOfCells ( vtkIntArray cellToBlockId,
vtkUnstructuredGrid input 
)
staticprotected
double vtkExodusIIWriter::ExtractGlobalData ( const char *  name,
int  comp,
int  ts 
)
protected
int vtkExodusIIWriter::WriteGlobalData ( int  timestep,
vtkDataArray buffer 
)
protected
void vtkExodusIIWriter::ExtractCellData ( const char *  name,
int  comp,
vtkDataArray buffer 
)
protected
int vtkExodusIIWriter::WriteCellData ( int  timestep,
vtkDataArray buffer 
)
protected
void vtkExodusIIWriter::ExtractPointData ( const char *  name,
int  comp,
vtkDataArray buffer 
)
protected
int vtkExodusIIWriter::WritePointData ( int  timestep,
vtkDataArray buffer 
)
protected

Member Data Documentation

vtkModelMetadata* vtkExodusIIWriter::ModelMetadata
protected

Definition at line 165 of file vtkExodusIIWriter.h.

char* vtkExodusIIWriter::BlockIdArrayName
protected

Definition at line 167 of file vtkExodusIIWriter.h.

char* vtkExodusIIWriter::FileName
protected

Definition at line 169 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::fid
protected

Definition at line 170 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::NumberOfProcesses
protected

Definition at line 172 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::MyRank
protected

Definition at line 173 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::PassDoubles
protected

Definition at line 175 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::StoreDoubles
protected

Definition at line 177 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::GhostLevel
protected

Definition at line 178 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::WriteOutBlockIdArray
protected

Definition at line 179 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::WriteOutGlobalNodeIdArray
protected

Definition at line 180 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::WriteOutGlobalElementIdArray
protected

Definition at line 181 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::WriteAllTimeSteps
protected

Definition at line 182 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::NumberOfTimeSteps
protected

Definition at line 183 of file vtkExodusIIWriter.h.

vtkDoubleArray* vtkExodusIIWriter::TimeValues
protected

Definition at line 185 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::CurrentTimeIndex
protected

Definition at line 186 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::FileTimeOffset
protected

Definition at line 187 of file vtkExodusIIWriter.h.

bool vtkExodusIIWriter::TopologyChanged
protected

Definition at line 188 of file vtkExodusIIWriter.h.

vtkDataObject* vtkExodusIIWriter::OriginalInput
protected

Definition at line 191 of file vtkExodusIIWriter.h.

std::vector< vtkSmartPointer<vtkUnstructuredGrid> > vtkExodusIIWriter::FlattenedInput
protected

Definition at line 192 of file vtkExodusIIWriter.h.

std::vector< vtkSmartPointer<vtkUnstructuredGrid> > vtkExodusIIWriter::NewFlattenedInput
protected

Definition at line 193 of file vtkExodusIIWriter.h.

std::vector< vtkIntArray* > vtkExodusIIWriter::BlockIdList
protected

Definition at line 195 of file vtkExodusIIWriter.h.

std::map<int, Block> vtkExodusIIWriter::BlockInfoMap
protected

Definition at line 224 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::NumCells
protected

Definition at line 225 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::NumPoints
protected

Definition at line 225 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::MaxId
protected

Definition at line 225 of file vtkExodusIIWriter.h.

std::vector<vtkIdType*> vtkExodusIIWriter::GlobalElementIdList
protected

Definition at line 227 of file vtkExodusIIWriter.h.

std::vector<vtkIdType*> vtkExodusIIWriter::GlobalNodeIdList
protected

Definition at line 228 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::AtLeastOneGlobalElementIdList
protected

Definition at line 230 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::AtLeastOneGlobalNodeIdList
protected

Definition at line 231 of file vtkExodusIIWriter.h.

std::map<std::string, VariableInfo> vtkExodusIIWriter::GlobalVariableMap
protected

Definition at line 241 of file vtkExodusIIWriter.h.

std::map<std::string, VariableInfo> vtkExodusIIWriter::BlockVariableMap
protected

Definition at line 242 of file vtkExodusIIWriter.h.

std::map<std::string, VariableInfo> vtkExodusIIWriter::NodeVariableMap
protected

Definition at line 243 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::NumberOfScalarGlobalArrays
protected

Definition at line 244 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::NumberOfScalarElementArrays
protected

Definition at line 245 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::NumberOfScalarNodeArrays
protected

Definition at line 246 of file vtkExodusIIWriter.h.

std::vector< std::vector<int> > vtkExodusIIWriter::CellToElementOffset
protected

Definition at line 250 of file vtkExodusIIWriter.h.

int* vtkExodusIIWriter::BlockElementVariableTruthTable
protected

Definition at line 255 of file vtkExodusIIWriter.h.

int vtkExodusIIWriter::AllVariablesDefinedInAllBlocks
protected

Definition at line 256 of file vtkExodusIIWriter.h.

std::map<vtkIdType, vtkIdType>* vtkExodusIIWriter::LocalNodeIdMap
protected

Definition at line 319 of file vtkExodusIIWriter.h.

std::map<vtkIdType, vtkIdType>* vtkExodusIIWriter::LocalElementIdMap
protected

Definition at line 320 of file vtkExodusIIWriter.h.


The documentation for this class was generated from the following file: