utilities.vtk#

Functions#

writeParallelVTKUnstructuredGrid(path, ...)

Writes a parallel vtk file from grid-like data: VTKStructuredGrid or VTKRectilinearGrid

Details#

writeParallelVTKUnstructuredGrid(path, coordsdtype, sources, ghostlevel=0, cellData=None, pointData=None)[source]#

Writes a parallel vtk file from grid-like data: VTKStructuredGrid or VTKRectilinearGrid

Parameters:
pathstr

name of the file without extension.

coordsdtypenp.dtype

dtype of the coordinates.

startslist

list of 3-tuple representing where each source file starts in each dimension

sourcelist

list of the relative paths of the source files where the actual data is found

ghostlevelint, optional

Number of ghost-levels by which the extents in the individual source files overlap.

pointDatadict

dictionary containing the information about the arrays with node centered data. Keys shoud be the names of the arrays. Values are (dtype, number of components)

cellData

dictionary containing the information about the arrays with cell centered data. Keys shoud be the names of the arrays. Values are (dtype, number of components)