38 #ifndef vtkPVblockMesh_H
39 #define vtkPVblockMesh_H
42 #ifndef VTK_EXCLUDE_STRSTREAM_HEADERS
43 #define VTK_EXCLUDE_STRSTREAM_HEADERS
56 class vtkDataArraySelection;
59 class vtkPVblockMeshReader;
62 class vtkMultiBlockDataSet;
64 class vtkUnstructuredGrid;
77 template<
class Type>
class List;
97 arrayRange(
const char *
name,
const int blockNo=0)
112 int block(
int blockNo)
120 const char*
name()
const
134 return start_ + size_;
149 void reset(
const int startAt = 0)
166 vtkPVblockMeshReader* reader_;
188 arrayRange arrayRangeBlocks_;
191 arrayRange arrayRangeEdges_;
194 arrayRange arrayRangeCorners_;
204 static void AddToBlock
206 vtkMultiBlockDataSet* output,
209 const label datasetNo,
210 const std::string& datasetName
215 static vtkDataSet* GetDataSetFromBlock
217 vtkMultiBlockDataSet* output,
219 const label datasetNo
224 static label GetNumberOfDataSets
226 vtkMultiBlockDataSet* output,
231 static void updateBoolListStatus
234 vtkDataArraySelection*
238 void resetCounters();
244 void updateInfoBlocks(vtkDataArraySelection*);
247 void updateInfoEdges(vtkDataArraySelection*);
253 void updateFoamMesh();
259 void convertMeshBlocks(vtkMultiBlockDataSet*,
int& blockNo);
262 void convertMeshEdges(vtkMultiBlockDataSet*,
int& blockNo);
265 void convertMeshCorners(vtkMultiBlockDataSet*,
int& blockNo);
271 static wordHashSet getSelected(vtkDataArraySelection*);
276 vtkDataArraySelection*,
283 vtkDataArraySelection*,
284 const bool debug = vtkPVblockMesh::debug
290 vtkDataArraySelection*,
292 const bool debug = vtkPVblockMesh::debug
296 static void setSelectedArrayEntries
298 vtkDataArraySelection*,
315 const char*
const FileName,
316 vtkPVblockMeshReader* reader
333 void Update(vtkMultiBlockDataSet* output);
345 void PrintSelf(ostream&, vtkIndent)
const;
A HashTable with keys but without contents.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
A class for handling file names.
Motion of the mesh specified as a list of pointMeshMovers.
Provides a reader interface for OpenFOAM blockMesh to VTK interaction.
~vtkPVblockMesh()
Destructor.
ClassName("vtkPVblockMesh")
Static data members.
void Update(vtkMultiBlockDataSet *output)
Update.
void PrintSelf(ostream &, vtkIndent) const
Debug information.
void CleanUp()
Clean any storage.
void renderPointNumbers(vtkRenderer *, const bool show)
Add/remove point numbers to/from the view.
vtkPVblockMesh(const char *const FileName, vtkPVblockMeshReader *reader)
Construct from components.
void operator=(const vtkPVblockMesh &)=delete
Disallow default bitwise assignment.
void updateInfo()
Update information.
A class for handling words, derived from string.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void operator+=(fvMatrix< Type > &fvEqn, const CarrierEqn< Type > &cEqn)
Add to a finite-volume equation.