elevation#

import porespy as ps
import matplotlib.pyplot as plt

shape#

x = ps.generators.elevation(shape=[50, 50], voxel_size=1e-5)

fig, ax = plt.subplots()
ax.imshow(x)
ax.axis(False);
../../../_images/ce286e701fdeeddf4a4afd18890a25270e72a1946a7ec82144c4db6c15b2c8f2.png

axis#

x = ps.generators.elevation(shape=[50, 20], axis=0, voxel_size=1e-5)
y = ps.generators.elevation(shape=[50, 20], axis=1, voxel_size=1e-5)

fig, ax = plt.subplots(1, 2, figsize=[4, 4])
ax[0].imshow(x)
ax[0].axis(False)
ax[1].imshow(y)
ax[1].axis(False);
../../../_images/e30c549ffeb61062ef7c7b7c4ad65cfa68f139955ffd5f38f4f19c320bd967ff.png

voxel_size#

x = ps.generators.elevation(shape=[50, 20], axis=0, voxel_size=1e-4)
y = ps.generators.elevation(shape=[50, 20], axis=1, voxel_size=3e-4)

fig, ax = plt.subplots(1, 2, figsize=[4, 4])
ax[0].imshow(x, vmax=5 * 1e-3)
ax[0].axis(False)
ax[1].imshow(y, vmax=10 * 1e-3)
ax[1].axis(False);
../../../_images/354fd785504a0b733cbc2fe3f970f60580a625a06d4bc6e5f48c41de13a1bb1c.png