68 #ifndef vtkExodusIIWriter_h 69 #define vtkExodusIIWriter_h 71 #include "vtkIOExodusModule.h" 111 vtkSetStringMacro(FileName);
112 vtkGetStringMacro(FileName);
121 vtkSetMacro(StoreDoubles,
int);
122 vtkGetMacro(StoreDoubles,
int);
129 vtkSetMacro(GhostLevel,
int);
130 vtkGetMacro(GhostLevel,
int);
140 vtkBooleanMacro(WriteOutBlockIdArray,
vtkTypeBool);
148 vtkSetMacro(WriteOutGlobalNodeIdArray,
vtkTypeBool);
149 vtkGetMacro(WriteOutGlobalNodeIdArray,
vtkTypeBool);
150 vtkBooleanMacro(WriteOutGlobalNodeIdArray,
vtkTypeBool);
158 vtkSetMacro(WriteOutGlobalElementIdArray,
vtkTypeBool);
159 vtkGetMacro(WriteOutGlobalElementIdArray,
vtkTypeBool);
160 vtkBooleanMacro(WriteOutGlobalElementIdArray,
vtkTypeBool);
171 vtkSetStringMacro(BlockIdArrayName);
172 vtkGetStringMacro(BlockIdArrayName);
179 vtkSetMacro(IgnoreMetaDataWarning,
bool);
180 vtkGetMacro(IgnoreMetaDataWarning,
bool);
181 vtkBooleanMacro(IgnoreMetaDataWarning,
bool);
225 this->Name =
nullptr;
227 this->NumElements = 0;
228 this->ElementStartIndex = -1;
229 this->NodesPerElement = 0;
230 this->EntityCounts = std::vector<int>();
231 this->EntityNodeOffsets = std::vector<int>();
233 this->OutputIndex = -1;
234 this->NumAttributes = 0;
235 this->BlockAttributes =
nullptr;
281 int BlockVariableTruthValue(
int blockIdx,
int varIdx);
283 char* StrDupWithNew(
const char* s);
304 int CreateNewExodusFile();
305 void CloseExodusFile();
308 void RemoveGhostCells();
309 int CheckParametersInternal(
int NumberOfProcesses,
int MyRank);
310 virtual int CheckParameters();
314 virtual int GlobalContinueExecuting(
int localContinueExecution);
315 int CheckInputArrays();
316 virtual void CheckBlockInfoMap();
317 int ConstructBlockInfoMap();
318 int ConstructVariableInfoMaps();
320 int CreateDefaultMetadata();
321 char* GetCellTypeName(
int t);
327 void ConvertVariableNames(std::map<std::string, VariableInfo>& variableMap);
328 char** FlattenOutVariableNames(
329 int nScalarArrays,
const std::map<std::string, VariableInfo>& variableMap);
339 int WriteInitializationParameters();
340 int WriteInformationRecords();
342 int WriteCoordinateNames();
343 int WriteGlobalPointIds();
344 int WriteBlockInformation();
345 int WriteGlobalElementIds();
346 int WriteVariableArrayNames();
347 int WriteNodeSetInformation();
348 int WriteSideSetInformation();
349 int WriteProperties();
350 int WriteNextTimeStep();
354 double ExtractGlobalData(
const char*
name,
int comp,
int ts);
355 int WriteGlobalData(
int timestep,
vtkDataArray* buffer);
365 virtual unsigned int GetMaxNameLength();
vtkTypeBool WriteOutBlockIdArray
std::map< std::string, VariableInfo > BlockVariableMap
std::map< std::string, VariableInfo > NodeVariableMap
int * BlockElementVariableTruthTable
std::map< vtkIdType, vtkIdType > * LocalElementIdMap
int AtLeastOneGlobalNodeIdList
vtkTypeBool WriteAllTimeSteps
std::vector< vtkIdType * > GlobalNodeIdList
vtkDataObject * OriginalInput
std::vector< vtkIntArray * > BlockIdList
int NumberOfScalarGlobalArrays
dynamic, self-adjusting array of double
abstract class to write data to file(s)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of int
a simple class to control print indentation
vtkTypeBool WriteOutGlobalNodeIdArray
std::vector< vtkSmartPointer< vtkUnstructuredGrid > > NewFlattenedInput
std::vector< std::vector< int > > CellToElementOffset
int AtLeastOneGlobalElementIdList
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
std::vector< int > EntityCounts
std::vector< int > EntityNodeOffsets
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
std::vector< vtkSmartPointer< vtkUnstructuredGrid > > FlattenedInput
std::vector< std::string > OutNames
int NumberOfScalarElementArrays
std::map< int, Block > BlockInfoMap
std::vector< vtkIdType * > GlobalElementIdList
std::vector< vtkStdString > NewFlattenedNames
int AllVariablesDefinedInAllBlocks
bool IgnoreMetaDataWarning
static vtkAlgorithm * New()
std::vector< vtkStdString > FlattenedNames
virtual void WriteData()=0
std::map< std::string, VariableInfo > GlobalVariableMap
general representation of visualization data
std::map< vtkIdType, vtkIdType > * LocalNodeIdMap
vtkTypeBool WriteOutGlobalElementIdArray
vtkModelMetadata * ModelMetadata
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
int NumberOfScalarNodeArrays