cubic¶
- openpnm.topotools.generators.cubic(shape, spacing=1, connectivity=6)[source]¶
Generate a simple cubic lattice
- Parameters
shape (array_like) – The number of unit cells in each direction. A unit cell has 1 vertex at its center.
spacing (array_like or float) – The size of a unit cell in each direction. If an scalar is given it is applied in all 3 directions.
- Returns
network – A dictionary containing ‘vert.coords’ and ‘edge.conns’
- Return type
dict