Go to the documentation of this file.
48 #ifndef vtkOpenFOAMReader_h
49 #define vtkOpenFOAMReader_h
51 #include "vtkIOGeometryModule.h"
61 class vtkOpenFOAMReaderPrivate;
79 vtkSetStringMacro(FileName);
80 vtkGetStringMacro(FileName);
87 {
return this->GetNumberOfSelectionArrays(this->CellDataArraySelection); }
94 {
return this->GetSelectionArrayStatus(this->CellDataArraySelection,
name); }
96 { this->SetSelectionArrayStatus(this->CellDataArraySelection,
name, status); }
103 {
return this->GetSelectionArrayName(this->CellDataArraySelection,
index); }
109 { this->DisableAllSelectionArrays(this->CellDataArraySelection); }
111 { this->EnableAllSelectionArrays(this->CellDataArraySelection); }
117 {
return this->GetNumberOfSelectionArrays(this->PointDataArraySelection); }
124 {
return this->GetSelectionArrayStatus(this->PointDataArraySelection,
name); }
126 { this->SetSelectionArrayStatus(this->PointDataArraySelection,
134 {
return this->GetSelectionArrayName(this->PointDataArraySelection,
index); }
140 { this->DisableAllSelectionArrays(this->PointDataArraySelection); }
142 { this->EnableAllSelectionArrays(this->PointDataArraySelection); }
148 {
return this->GetNumberOfSelectionArrays(
149 this->LagrangianDataArraySelection); }
156 {
return this->GetSelectionArrayStatus(this->LagrangianDataArraySelection,
159 { this->SetSelectionArrayStatus(this->LagrangianDataArraySelection,
name,
167 {
return this->GetSelectionArrayName(this->LagrangianDataArraySelection,
174 { this->DisableAllSelectionArrays(this->LagrangianDataArraySelection); }
176 { this->EnableAllSelectionArrays(this->LagrangianDataArraySelection); }
182 {
return this->GetNumberOfSelectionArrays(this->PatchDataArraySelection); }
189 {
return this->GetSelectionArrayStatus(this->PatchDataArraySelection,
name); }
191 { this->SetSelectionArrayStatus(this->PatchDataArraySelection,
name,
199 {
return this->GetSelectionArrayName(this->PatchDataArraySelection,
index); }
205 { this->DisableAllSelectionArrays(this->PatchDataArraySelection); }
207 { this->EnableAllSelectionArrays(this->PatchDataArraySelection); }
254 vtkSetMacro(SkipZeroTime,
bool);
255 vtkGetMacro(SkipZeroTime,
bool);
256 vtkBooleanMacro(SkipZeroTime,
bool);
291 vtkGetMacro(Use64BitLabels,
bool)
292 vtkBooleanMacro(Use64BitLabels,
bool)
300 vtkGetMacro(CopyDataToCellZones,
bool)
301 vtkSetMacro(CopyDataToCellZones,
bool)
302 vtkBooleanMacro(CopyDataToCellZones,
bool)
311 virtual
void SetUse64BitFloats(
bool val);
312 vtkGetMacro(Use64BitFloats,
bool)
313 vtkBooleanMacro(Use64BitFloats,
bool)
316 void SetRefresh() { this->Refresh =
true; this->
Modified(); }
324 friend class vtkOpenFOAMReaderPrivate;
int MakeInformationVector(vtkInformationVector *, const vtkStdString &)
vtkStringArray * LagrangianPaths
int MakeMetaDataAtTimeStep(const bool)
const char * GetPatchArrayName(int index)
Get the name of the Patch with the given index in the input.
int GetCellArrayStatus(const char *name)
Get/Set whether the cell array with the given name is to be read.
void SetCellArrayStatus(const char *name, int status)
int GetNumberOfLagrangianArrays(void)
Get the number of Lagrangian arrays available in the input.
virtual void Modified()
Update the modification time for this object.
vtkTypeBool CreateCellToPoint
void SetParent(vtkOpenFOAMReader *parent)
void EnableAllPatchArrays()
vtkStdString * FileNameOld
void CreateCasePath(vtkStdString &, vtkStdString &)
vtkMTimeType LagrangianSelectionMTimeOld
void SetLagrangianArrayStatus(const char *name, int status)
int GetPatchArrayStatus(const char *name)
Get/Set whether the Patch with the given name is to be read.
void CreateCharArrayFromString(vtkCharArray *, const char *, vtkStdString &)
Store on/off settings for data arrays for a vtkSource.
void EnableAllPointArrays()
dynamic, self-adjusting array of char
vtkMTimeType PatchSelectionMTimeOld
int GetPointArrayStatus(const char *name)
Get/Set whether the point array with the given name is to be read.
vtkDataArraySelection * PointDataArraySelection
vtkMTimeType CellSelectionMTimeOld
create and manipulate ordered lists of objects
void EnableAllCellArrays()
vtkTypeBool ListTimeStepsByControlDict
const char * GetPointArrayName(int index)
Get the name of the point array with the given index in the input.
int PositionsIsIn13FormatOld
vtkDataArraySelection * CellDataArraySelection
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool PositionsIsIn13Format
void SetPatchArrayStatus(const char *name, int status)
void PrintSelf(ostream &, vtkIndent) override
Methods invoked by print to print information about the object including superclasses.
~vtkOpenFOAMReader() override
a simple class to control print indentation
static vtkOpenFOAMReader * New()
void DisableAllCellArrays()
Turn on/off all cell arrays.
vtkMTimeType PointSelectionMTimeOld
vtkTypeBool AddDimensionsToArrayNames
const char * GetLagrangianArrayName(int index)
Get the name of the Lagrangian array with the given index in the input.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void EnableAllLagrangianArrays()
reads a dataset in OpenFOAM format
int CanReadFile(const char *)
Determine if the file can be read with this reader.
vtkDoubleArray * GetTimeValues()
int GetNumberOfPatchArrays(void)
Get the number of Patches (including Internal Mesh) available in the input.
vtkTypeBool DecomposePolyhedra
vtkDataArraySelection * PatchDataArraySelection
int ListTimeStepsByControlDictOld
void UpdateProgress(double)
virtual void SetUse64BitLabels(bool val)
If true, labels are expected to be 64-bit, rather than 32.
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of double
void SetPointArrayStatus(const char *name, int status)
int DecomposePolyhedraOld
Wrapper around std::string to keep symbols short.
int GetNumberOfPointArrays(void)
Get the number of point arrays available in the input.
int GetNumberOfCellArrays(void)
Get the number of cell arrays available in the input.
vtkDataArraySelection * LagrangianDataArraySelection
bool SetTimeValue(const double)
void SetTimeInformation(vtkInformationVector *, vtkDoubleArray *)
void DisableAllPointArrays()
Turn on/off all point arrays.
int AddDimensionsToArrayNamesOld
const char * GetCellArrayName(int index)
Get the name of the cell array with the given index in the input.
void DisableAllPatchArrays()
Turn on/off all Patches including the Internal Mesh.
int GetLagrangianArrayStatus(const char *name)
Get/Set whether the Lagrangian array with the given name is to be read.
void DisableAllLagrangianArrays()
Turn on/off all Lagrangian arrays.
vtkTypeUInt32 vtkMTimeType
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.