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/e190a19be02859a3fdc7c55abb8a92f946547ccf6e811222d596e83fb3bb83f5.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/be5cb7d0180e197a945b3d9612a4f6b44efe97be35525c7ebfdbe1abdc5251d6.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/c1d744ac15f0ef0f7983a87859252db42eacb6ddcb4838b3829f359629a1cbe9.png