bundle_of_tubes

Create a 3D image of a bundle of tubes, in the form of a rectangular plate with randomly sized holes through it.

Import packages

[1]:
import matplotlib.pyplot as plt
import numpy as np
import porespy as ps

ps.visualization.set_mpl_style()
np.random.seed(10)

Generate image for testing

[2]:
im = ps.generators.bundle_of_tubes(shape=[500, 500], spacing=12)
plt.figure(figsize=[4, 4])
plt.axis(False)
plt.imshow(im);
../../../_images/examples_generators_howtos_bundle_of_tubes_5_0.svg