Grids

Create Even Rectilinear Grid

class PVGeo.model_build.grids.CreateEvenRectilinearGrid(extent=[10, 10, 10], xrng=[-1.0, 1.0], yrng=[-1.0, 1.0], zrng=[-1.0, 1.0])[source]

Bases: PVGeo.base.AlgorithmBase

This creates a vtkRectilinearGrid where the discretization along a given axis is uniformly distributed.

RequestData(request, inInfo, outInfo)[source]

Overwritten by subclass to execute the algorithm.

RequestInformation(request, inInfo, outInfo)[source]

Overwritten by subclass to provide meta-data to downstream pipeline.

SetExtent(nx, ny, nz)[source]

Set the extent of the output grid.

SetXRange(start, stop)[source]

Set range (min, max) for the grid in the X-direction.

SetYRange(start, stop)[source]

Set range (min, max) for the grid in the Y-direction

SetZRange(start, stop)[source]

Set range (min, max) for the grid in the Z-direction

Create Tensor Mesh

class PVGeo.model_build.grids.CreateTensorMesh(origin=[-350.0, -400.0, 0.0], dataname='Data')[source]

Bases: PVGeo.base.AlgorithmBase

This creates a vtkRectilinearGrid where the discretization along a given axis is uniformly distributed.

GetExtent()[source]
RequestData(request, inInfo, outInfo)[source]

Used by pipeline to generate output data object

RequestInformation(request, inInfo, outInfo)[source]

Used by pipeline to set output whole extent

SetOrigin(x0, y0, z0)[source]

Set the origin of the output

SetXCells(xcells)[source]

Set the spacings for the cells in the X direction

Parameters:xcells (list or np.array(floats)) – the spacings along the X-axis
SetXCellsStr(xcellstr)[source]

Set the spacings for the cells in the X direction

Parameters:xcellstr (str) – the spacings along the X-axis in the UBC style
SetYCells(ycells)[source]

Set the spacings for the cells in the Y direction

Parameters:ycells (list or np.array(floats)) – the spacings along the Y-axis
SetYCellsStr(ycellstr)[source]

Set the spacings for the cells in the Y direction

Parameters:ycellstr (str) – the spacings along the Y-axis in the UBC style
SetZCells(zcells)[source]

Set the spacings for the cells in the Z direction

Parameters:zcells (list or np.array(floats)) – the spacings along the Z-axis
SetZCellsStr(zcellstr)[source]

Set the spacings for the cells in the Z direction

Parameters:zcellstr (str) – the spacings along the Z-axis in the UBC style
_AddModelData(pdo, data)[source]
_MakeModel(pdo)[source]
static _ReadCellLine(line)[source]

Read cell sizes for each line in the UBC mesh line strings

Create Uniform Grid

class PVGeo.model_build.grids.CreateUniformGrid(extent=[10, 10, 10], spacing=[1.0, 1.0, 1.0], origin=[0.0, 0.0, 0.0])[source]

Bases: PVGeo.base.AlgorithmBase

Create uniform grid (vtkImageData)

RequestData(request, inInfo, outInfo)[source]

Overwritten by subclass to execute the algorithm.

RequestInformation(request, inInfo, outInfo)[source]

Overwritten by subclass to provide meta-data to downstream pipeline.

SetExtent(nx, ny, nz)[source]

Set the extent of the output grid.

SetOrigin(x0, y0, z0)[source]

Set the origin of the output grid.

SetSpacing(dx, dy, dz)[source]

Set the spacing for the points along each axial direction.