LoopStructural.datatypes.StructuredGrid#

class LoopStructural.datatypes.StructuredGrid(origin: numpy.ndarray, step_vector: numpy.ndarray, nsteps: numpy.ndarray, cell_properties: Dict[str, numpy.ndarray], properties: Dict[str, numpy.ndarray], name: str)#

Bases: object

__init__(origin: ndarray, step_vector: ndarray, nsteps: ndarray, cell_properties: Dict[str, ndarray], properties: Dict[str, ndarray], name: str) None#

Methods

__init__(origin, step_vector, nsteps, ...)

merge(other)

plot([pyvista_kwargs])

Calls pyvista plot on the vtk object

save(filename)

to_dict()

vtk()

Attributes

maximum

origin

step_vector

nsteps

cell_properties

properties

name

plot(pyvista_kwargs={})#

Calls pyvista plot on the vtk object

Parameters:

pyvista_kwargs (dict, optional) – kwargs passed to pyvista.DataSet.plot(), by default {}