darsia.Grid#

class Grid(shape, voxel_size=1.0)[source]#

Bases: object

Tensor grid.

The current implmentation does not take into accout true boundary faces assuming the boundary values are not of interest.

Initialize grid.

Methods

Attributes

dim

int: Number of dimensions.

shape

tuple: Shape of grid, using matrix/tensor indexing.

voxel_size

np.ndarray: Size of voxels in each dimension.

face_vol

list: Volume of faces in each dimension.

dim#

int: Number of dimensions.

face_vol#

list: Volume of faces in each dimension.

shape#

tuple: Shape of grid, using matrix/tensor indexing.

voxel_size#

np.ndarray: Size of voxels in each dimension.