SIMULATION & EXPERIMENTAL DATA

From Microstructure
to Fabric Descriptors.

Visualize, analyze, and compute scalar and tensorial fabric descriptors from the microstructure.

PYTHON + MATLABREAL SAMPLE DATAOFFLINE READY
Conceptual illustration of a dense spherical granular packing transitioning through contact normals and Voronoi cells into a 3D spherical histogram and an ellipsoidal approximation.
MICROSTRUCTURE TO FABRICAI-GENERATED CONCEPT
06analysis & visualization tools
10,000particles in the force example
XY · XZ · YZexplorable projection planes
648equal-solid-angle 3D bins

THE VISUALIZATION COLLECTION

From labeled particles to directional fabric.

Explore contact networks and force transmission, or start with particle positions and radii to compute particle-void fabric.

01 / FORCE TRANSMISSION

Follow the
force chains.

Turn particle positions and contact forces into a network. Line width and color reveal the strongest paths through the assembly.

USE IT FOR

Inspecting load paths, locating strong contacts, and comparing contact networks across simulation states or experimental observations.

MATPLOTLIB2D NETWORK
SUPPLIED CONTACT NETWORKSave PNG ↓
Force network with an input-unit force color scale.
Generated from the supplied particle positions and contact forces.
02 / PROJECTED CONTACT FABRIC

Find the
preferred direction.

A polar histogram reveals how contact normals align in a selected plane. Compare the Iso and Aniso datasets, with mean force encoded in color.

USE IT FOR

Exploring directional bias, comparing projections, and summarizing planar fabric with a second harmonic fit.

NUMPY + PLOTLYINTERACTIVE 2D
Open plot ↗

Radius: antipodal contact count · Color: mean force

Download bin data CSV ↓
03 / SPATIAL CONTACT FABRIC

See the
whole orientation.

Explore contact directions on a sphere. Equal-solid-angle bins make counts comparable across directions; wedge length and color reveal concentration.

USE IT FOR

Examining full 3D fabric, identifying spatial alignment, and finding patterns that a planar projection can hide.

NUMPY + PLOTLYROTATABLE 3D
DRAG TO ROTATE · PINCH TO ZOOMOpen plot ↗

36 azimuth × 18 latitude bands · Equal solid angle

04 / MINKOWSKI PARTICLE-VOID FABRIC

From particle-void geometry
to fabric tensors.

Start with positions and radii. Build weighted Voronoi cells, measure their shape with Minkowski moment tensors, and quantify how their principal axes align across the packing.

Based on the master's thesis by Srinivas Vivek Bokkisa, Fabric evolution in 3D discrete element modelling of soil liquefaction (2019).

  1. Particle geometry
  2. Weighted Voronoi
  3. Minkowski moments
  4. Assembly fabric
NO CONTACT DATA REQUIRED

Measure local elongation and collective alignment from a spherical-particle packing, including configurations with sparse contacts.

Particles
10,000
Mean elongation Ed
0.2896
Alignment Ad
0.3298
VORO++ + PYTHONPERIODIC 3D CELLSREAL SAMPLE INPUT
Open view
A computed weighted Voronoi cell enclosing its spherical particle, with a moment-equivalent ellipsoid and principal axis.

Actual sample cell: gold shows the particle, teal shows its Voronoi boundary and moment-equivalent ellipsoid, and red marks the principal axis. Coordinates are offsets from the cell centroid.

10,000 polydisperse spheres · sheared periodic domain · centroid moments. Ed measures local shape; Ad measures collective alignment (aligned limit 7.5). The normalized cell describes the particle environment, including the particle.

Save PNGCell data CSVFabric tensor & metadata
05 / IMAGE-BASED CONTACT DETECTION

From the labelled 3D image
to contact fabric.

Turn a labelled 3D image into a picture of how particles connect and how their contacts are oriented. The tool identifies neighboring particles, estimates contact locations and directions, and measures coordination and contact fabric to reveal preferred alignment within the material.

REAL PARTICLES, REAL SHAPES

Designed for segmented 3D X-ray micro-CT images, including irregular particle shapes. Spheres are shown here for simplicity and validation. The results describe geometric contacts and orientation; they do not measure contact forces.

SCIPY + TIFFFILE3D X-RAY MICRO-CTREAL PARTICLE SHAPES
Open view

Original segmented TIFF: colors distinguish particle labels. Drag to rotate and zoom. Surface display samples every third voxel; contact detection uses the full image.

125 particles; 300 contacts; mean coordination 4.80.

All views come from the supplied labeled TIFF. Use calibrated voxel spacing for physical distances; geometric proximity does not measure force.

Save PNGContact table CSVValidation slides (PDF)
06 / PORE-SPACE SEGMENTATION

Resolve the
void architecture.

Resolve pore space from segmented 3D images of real granular packings by partitioning it into pore bodies and throats. Characterize the void architecture through scalar measures such as volumes and equivalent-sphere sizes, directional measures such as principal orientations, and tensorial measures derived from voxel-center second moments.

FROM VALIDATION TO REAL GRANULAR PACKINGS

SCP and VEP are reference examples for establishing validation. Apply the same workflow to a binary pore-space volume segmented from a real granular packing 3D image to resolve its pore space and corresponding scalar, directional, and tensorial measures.

Adapted from Nimisha Roy's Pore Space Architecture and the framework of Roy, Frost & Roozbahani (2023). Revised geometric refinement by Srinivas Vivek Bokkisa, Multiscale Assessment of fabric in granular soils, submitted thesis, unpublished (Chapter 8 and Appendix 8B).

REFINEMENT DEVELOPED IN THIS THESIS

Local plane transforms, adaptive concave boundaries, periodic spatial smoothing, curvature and bulge-based feature selection, and two-pass voxel relabeling.

Read the modification map and validation limits ?
MATLABBINARY 3D VOLUMESREAL GRANULAR PACKINGSSCP + VEP VALIDATION EXAMPLES
Open PDF
Prescribed ellipsoidal void lattice used to examine pore-body and throat segmentation.

Prescribed ellipsoidal void lattice with short and long connections.

Supplied thesis figures. These selected illustrations accompany the two example inputs; the consolidated segmentation has not been rerun. MATLAB is required to compute new results.

Example input: 289 × 289 × 289 binary voxels.

Save PNGExample details

READ THE PLOTS WITH CONTEXT

A contact has two directions.

Orientation plots include each normal and its opposite, so the total bin count is twice the number of valid contacts. The raw input files are unchanged.

Units come from your data.

Force values keep their input units. Dataset names are inherited labels. Compare counts with sample size in mind, and use the supplied CSV files for further analysis.

Filters affect the picture.

The force example retains the original 0.1 component-gap cutoff. This does not reconstruct periodic contacts. Configure or disable the filter for your own geometry.

FROM EXPLORATION TO YOUR OWN DATA

Download. Run.
Make it yours.

Python tools include their entry scripts and sample data. The MATLAB pore-space module includes one shared implementation and two examples. The full toolkit also includes this gallery, generated figures, and CSV outputs.

Download the full toolkit ↓
QUICK START
python -m pip install -r requirements.txt
python build_gallery.py

# Detect contacts in the sample labeled TIFF
python ContactDetection3D/main.py

# Compute particle-void fabric
python Minkowski3D/run_example.py

# Try a different projection
python PolarHistogram2D/PolarHistogram.py \
  --plane xz --output outputs/my-polar.html

Python 3.10+ · NumPy · Matplotlib · Plotly

Windows PowerShell: put the last command on one line.

ABOUT THE DEVELOPER

Srinivas Vivek Bokkisa

Developer of Microstructure & Fabric Explorer. Explore the source code, sample inputs, and reproducible computations in the toolkit repository.

View my GitHub repository