darsia.Grid#
- class Grid(shape, voxel_size=1.0)[source]#
Bases:
objectTensor grid.
The current implmentation does not take into accout true boundary faces assuming the boundary values are not of interest.
Initialize grid.
Methods
Attributes
int: Number of dimensions.
tuple: Shape of grid, using matrix/tensor indexing.
np.ndarray: Size of voxels in each dimension.
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.