An example: Step by Step.

Generate a random lattice.

Label the clusters in the lattice.

Pick up the infinite cluster.

Identify the internal structure.

Pores 20x20 (p=0.69)