84#ifndef vtkIOSSWriter_h
85#define vtkIOSSWriter_h
87#include "vtkIOIOSSModule.h"
96VTK_ABI_NAMESPACE_BEGIN
112 vtkSetStringMacro(FileName);
113 vtkGetStringMacro(FileName);
124 vtkSetStringMacro(AssemblyName);
125 vtkGetStringMacro(AssemblyName);
138 vtkSetMacro(ChooseFieldsToWrite,
bool);
139 vtkGetMacro(ChooseFieldsToWrite,
bool);
140 vtkBooleanMacro(ChooseFieldsToWrite,
bool);
191 return this->GetFieldSelection(EntityType::NODEBLOCK);
204 return this->AddSelector(EntityType::EDGEBLOCK, selector);
209 this->SetSelector(EntityType::EDGEBLOCK, selector);
213 return this->GetNumberOfSelectors(EntityType::EDGEBLOCK);
217 return this->GetSelector(EntityType::EDGEBLOCK, index);
221 return this->GetSelectors(EntityType::EDGEBLOCK);
230 return this->GetFieldSelection(EntityType::EDGEBLOCK);
243 return this->AddSelector(EntityType::FACEBLOCK, selector);
248 this->SetSelector(EntityType::FACEBLOCK, selector);
252 return this->GetNumberOfSelectors(EntityType::FACEBLOCK);
256 return this->GetSelector(EntityType::FACEBLOCK, index);
260 return this->GetSelectors(EntityType::FACEBLOCK);
269 return this->GetFieldSelection(EntityType::FACEBLOCK);
282 return this->AddSelector(EntityType::ELEMENTBLOCK, selector);
287 this->SetSelector(EntityType::ELEMENTBLOCK, selector);
291 return this->GetNumberOfSelectors(EntityType::ELEMENTBLOCK);
295 return this->GetSelector(EntityType::ELEMENTBLOCK, index);
299 return this->GetSelectors(EntityType::ELEMENTBLOCK);
308 return this->GetFieldSelection(EntityType::ELEMENTBLOCK);
321 return this->AddSelector(EntityType::NODESET, selector);
326 this->SetSelector(EntityType::NODESET, selector);
330 return this->GetNumberOfSelectors(EntityType::NODESET);
334 return this->GetSelector(EntityType::NODESET, index);
338 return this->GetSelectors(EntityType::NODESET);
347 return this->GetFieldSelection(EntityType::NODESET);
360 return this->AddSelector(EntityType::SIDESET, selector);
365 this->SetSelector(EntityType::SIDESET, selector);
369 return this->GetNumberOfSelectors(EntityType::SIDESET);
373 return this->GetSelector(EntityType::SIDESET, index);
377 return this->GetSelectors(EntityType::SIDESET);
386 return this->GetFieldSelection(EntityType::SIDESET);
399 return this->AddSelector(EntityType::SIDESET, selector);
404 this->SetSelector(EntityType::SIDESET, selector);
408 return this->GetNumberOfSelectors(EntityType::SIDESET);
412 return this->GetSelector(EntityType::SIDESET, index);
416 return this->GetSelectors(EntityType::SIDESET);
425 return this->GetFieldSelection(EntityType::SIDESET);
438 return this->AddSelector(EntityType::SIDESET, selector);
443 this->SetSelector(EntityType::SIDESET, selector);
447 return this->GetNumberOfSelectors(EntityType::SIDESET);
451 return this->GetSelector(EntityType::SIDESET, index);
455 return this->GetSelectors(EntityType::SIDESET);
464 return this->GetFieldSelection(EntityType::SIDESET);
477 return this->AddSelector(EntityType::SIDESET, selector);
482 this->SetSelector(EntityType::SIDESET, selector);
486 return this->GetNumberOfSelectors(EntityType::SIDESET);
490 return this->GetSelector(EntityType::SIDESET, index);
494 return this->GetSelectors(EntityType::SIDESET);
503 return this->GetFieldSelection(EntityType::SIDESET);
513 vtkSetMacro(RemoveGhosts,
bool);
514 vtkGetMacro(RemoveGhosts,
bool);
524 vtkSetMacro(OffsetGlobalIds,
bool);
525 vtkGetMacro(OffsetGlobalIds,
bool);
526 vtkBooleanMacro(OffsetGlobalIds,
bool);
536 vtkSetMacro(PreserveOriginalIds,
bool);
537 vtkGetMacro(PreserveOriginalIds,
bool);
538 vtkBooleanMacro(PreserveOriginalIds,
bool);
552 vtkSetMacro(WriteQAAndInformationRecords,
bool);
553 vtkGetMacro(WriteQAAndInformationRecords,
bool);
554 vtkBooleanMacro(WriteQAAndInformationRecords,
bool);
567 vtkGetMacro(DisplacementMagnitude,
double);
579 vtkSetVector2Macro(TimeStepRange,
int);
580 vtkGetVector2Macro(TimeStepRange,
int);
582 vtkGetMacro(TimeStepStride,
int);
618 std::unique_ptr<vtkInternals> Internals;
623 bool ChooseFieldsToWrite;
625 bool OffsetGlobalIds;
626 bool PreserveOriginalIds;
627 bool WriteQAAndInformationRecords;
628 double DisplacementMagnitude;
629 int TimeStepRange[2];
632 std::set<std::string> Selectors[EntityType::NUMBER_OF_ENTITY_TYPES];
Store on/off settings for data arrays, etc.
Writer for IOSS (Sierra IO System)
void ClearEdgeBlockSelectors()
Add/Clear/Set/Get edge block selectors.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetSideSetSelector(const char *selector)
Add/Clear/Set/Get side set selectors.
~vtkIOSSWriter() override
bool AddElementSetSelector(const char *selector)
Add/Clear/Set/Get element set selectors.
void ClearNodeSetSelectors()
Add/Clear/Set/Get node set selectors.
void ClearFaceBlockSelectors()
Add/Clear/Set/Get face block selectors.
void SetController(vtkMultiProcessController *controller)
Get/Set the controller to use when working in parallel.
bool AddNodeSetSelector(const char *selector)
Add/Clear/Set/Get node set selectors.
static vtkIOSSWriter * New()
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
void SetSelector(EntityType entity, const char *selector)
Convenience method to set a single entity selector.
vtkDataArraySelection * GetEdgeSetFieldSelection()
Returns the field selection object for the edge set arrays.
int GetNumberOfElementBlockSelectors() const
Add/Clear/Set/Get element block selectors.
void ClearFaceSetSelectors()
Add/Clear/Set/Get edge set selectors.
vtkDataArraySelection * GetElementSetFieldSelection()
Returns the field selection object for the element set arrays.
int GetNumberOfEdgeSetSelectors() const
Add/Clear/Set/Get edge set selectors.
void ClearSelectors(EntityType entity)
API to set entity selectors.
const char * GetEdgeSetSelector(int index) const
Add/Clear/Set/Get edge set selectors.
vtkDataArraySelection * GetNodeSetFieldSelection()
Returns the field selection object for the node set arrays.
bool AddEdgeBlockSelector(const char *selector)
Add/Clear/Set/Get edge block selectors.
bool AddElementBlockSelector(const char *selector)
Add/Clear/Set/Get element block selectors.
void ClearEdgeSetSelectors()
Add/Clear/Set/Get edge set selectors.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
std::set< std::string > GetEdgeSetSelectors() const
Add/Clear/Set/Get edge set selectors.
bool AddEdgeSetSelector(const char *selector)
Add/Clear/Set/Get edge set selectors.
bool AddSideSetSelector(const char *selector)
Add/Clear/Set/Get side set selectors.
int GetNumberOfSideSetSelectors() const
Add/Clear/Set/Get side set selectors.
void SetEdgeBlockSelector(const char *selector)
Add/Clear/Set/Get edge block selectors.
std::set< std::string > GetElementBlockSelectors() const
Add/Clear/Set/Get element block selectors.
void SetFaceSetSelector(const char *selector)
Add/Clear/Set/Get edge set selectors.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
std::set< std::string > GetNodeSetSelectors() const
Add/Clear/Set/Get node set selectors.
vtkDataArraySelection * GetFaceBlockFieldSelection()
Returns the field selection object for the face block arrays.
void ClearSideSetSelectors()
Add/Clear/Set/Get side set selectors.
bool AddSelector(EntityType entity, const char *selector)
API to set entity selectors.
int GetNumberOfFaceSetSelectors() const
Add/Clear/Set/Get edge set selectors.
std::set< std::string > GetFaceBlockSelectors() const
Add/Clear/Set/Get face block selectors.
vtkDataArraySelection * GetSideSetFieldSelection()
Returns the field selection object for the side set arrays.
void SetElementBlockSelector(const char *selector)
Add/Clear/Set/Get element block selectors.
const char * GetFaceBlockSelector(int index) const
Add/Clear/Set/Get face block selectors.
int GetNumberOfNodeSetSelectors() const
Add/Clear/Set/Get node set selectors.
const char * GetElementSetSelector(int index) const
Add/Clear/Set/Get element set selectors.
void SetElementSetSelector(const char *selector)
Add/Clear/Set/Get element set selectors.
vtkDataArraySelection * GetFaceSetFieldSelection()
Returns the field selection object for the edge set arrays.
int GetNumberOfFaceBlockSelectors() const
Add/Clear/Set/Get face block selectors.
int GetNumberOfEdgeBlockSelectors() const
Add/Clear/Set/Get edge block selectors.
void SetEdgeSetSelector(const char *selector)
Add/Clear/Set/Get edge set selectors.
const char * GetSelector(EntityType entity, int index) const
API to access entity selectors.
const char * GetNodeSetSelector(int index) const
Add/Clear/Set/Get node set selectors.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
std::set< std::string > GetSelectors(EntityType entity) const
API to access entity selectors.
std::set< std::string > GetElementSetSelectors() const
Add/Clear/Set/Get element set selectors.
bool AddFaceSetSelector(const char *selector)
Add/Clear/Set/Get edge set selectors.
const char * GetEdgeBlockSelector(int index) const
Add/Clear/Set/Get edge block selectors.
void ClearElementSetSelectors()
Add/Clear/Set/Get element set selectors.
void WriteData() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetElementBlockSelector(int index) const
Add/Clear/Set/Get element block selectors.
std::set< std::string > GetFaceSetSelectors() const
Add/Clear/Set/Get edge set selectors.
std::set< std::string > GetEdgeBlockSelectors() const
Add/Clear/Set/Get edge block selectors.
vtkDataArraySelection * GetElementBlockFieldSelection()
Returns the field selection object for the element block arrays.
void ClearElementBlockSelectors()
Add/Clear/Set/Get element block selectors.
vtkDataArraySelection * GetFieldSelection(EntityType type)
Get the selection object for the given entity type.
const char * GetSideSetSelector(int index) const
Add/Clear/Set/Get side set selectors.
bool AddFaceBlockSelector(const char *selector)
Add/Clear/Set/Get face block selectors.
std::set< std::string > GetSideSetSelectors() const
Add/Clear/Set/Get side set selectors.
void SetFaceBlockSelector(const char *selector)
Add/Clear/Set/Get face block selectors.
vtkDataArraySelection * GetNodeBlockFieldSelection()
Returns the field selection object for the element block arrays.
const char * GetFaceSetSelector(int index) const
Add/Clear/Set/Get edge set selectors.
void SetNodeSetSelector(const char *selector)
Add/Clear/Set/Get node set selectors.
int GetNumberOfSelectors(EntityType entity) const
API to access entity selectors.
int GetNumberOfElementSetSelectors() const
Add/Clear/Set/Get element set selectors.
vtkDataArraySelection * GetEdgeBlockFieldSelection()
Returns the field selection object for the edge block arrays.
a simple class to control print indentation
Multiprocessing communication superclass.
Allocate and hold a VTK object.
abstract class to write data to file(s)