Loading...
Loading...
Contributors:
Dataset URI:
10.5281/zenodo.21836007Overview This repository accompanies the manuscript “Transparent 3D-printed flow cells for porous media studies with proof of concept on two-phase flow-reversal asymmetry” by Yann Dumay et al. (2026). It contains the supporting flow-cell designs, setup and accessory designs, a materials list, representative experimental data, processed datasets, LabKit classifiers, and analysis scripts used for the pressure- and image-based characterisation of flow-reversal asymmetry. The repository documents the fabrication, experimental and analysis workflows and provides the files needed to reproduce the principal processing steps and analyses from the supplied datasets. The DOI of the associated publication will be added once available. Repository contents Materials and equipment Materials_List.txt provides an inventory of the chemicals, working fluids, fluidic components, consumables, experimental hardware, and software used in the study, including product references where applicable. Flow-cell, setup, and accessory designs The Design/ directory contains the CAD and manufacturing files associated with the experimental setup. The T85/ and C85/ folders contain the designs of the transparent porous flow cells used in the study, with triangular and cylindrical obstacles, respectively. CAD (.FCStd, .step, .stl, .dxf) and print-preparation (.form) files are provided where applicable. The experimental dataset also includes measurements obtained using a blank reference cell, BL. The Accessories/ folder contains designs for several custom components used to mount or connect the experimental hardware, including: A pressure-sensor-to-barb adapter. A holder for the pressure-sensor USB carrier boards. A holder for the pressure sensors. A holder for the USB hub. Each accessory folder contains a dedicated .txt file documenting the corresponding part, including its purpose, manufacturing or printing method, mounting details, associated hardware, and any necessary scaling or post-processing. The Setup/ folder contains a FreeCAD model of the fluidic setup, documenting the arrangement of the main experimental components. A dedicated notebook, Scripts/FreeCAD_obstacles_generator.ipynb, documents the generation of regular and random obstacle arrangements. It explains the GRID, RP (Random Position), and RPO (Random Position and Orientation) placement methods, the treatment of overlapping obstacles and porosity, and the use of random seeds and saved layouts for reproducible geometry generation. The notebook contains a complete Python script that can be copied into the FreeCAD Python console. Image data Representative raw camera TIFF stacks, LabKit-segmented binary TIFF stacks, and static geometry/background images are provided in Data/Videos/. The background images are used to distinguish the porous matrix from the pore space during image analysis. LabKit classifiers The trained classifiers used to segment the experimental videos are included in Data/Classifiers/. Separate classifiers are provided for the corresponding experimental conditions. Processed saturation data Data/BubbleSaturation_Yprofiles_ALL.json contains processed transverse gas-saturation profiles and associated experimental metadata for the T85, C85 and BL configurations. This intermediate dataset includes the repetition-level time-averaged profiles used to calculate the active gas-flow widths and the image-based flow-reversal asymmetry metric. It allows the downstream spatial analysis to be reproduced without reprocessing the complete collection of raw video stacks. Custom scripts and notebooks The repository includes the following custom scripts and notebooks. Flow-cell design FreeCAD_obstacles_generator.ipynb — generation, saving and reuse of regular and random obstacle arrangements in FreeCAD. Experimental acquisition Acquisition_Pump_Camera_Prs-Sensors.ipynb — syringe-pump control, pressure-sensor recording and camera acquisition. Image segmentation Labkit_batch_segmentation.py — automated application of trained LabKit classifiers to experimental image stacks. Image analysis Complete_Image_to_IS_pipeline.ipynb — three-colour image reconstruction, pore-normalised gas-saturation maps, transverse saturation profiles, time averaging, active-width calculation, and evaluation of the image-based flow-reversal asymmetry metric. Pressure and dimensionless analysis Plot_Pressure_Metric.ipynb — pressure averaging, uncertainty estimation, and calculation of the pressure-based flow-reversal asymmetry metrics. Plot_Re_Ca.ipynb — calculation of Reynolds and capillary numbers. Image-analysis workflow The image-processing workflow follows this sequence: Raw camera TIFF → LabKit segmentation → Binary segmented TIFF → Three-colour image stack → Pore-normalised gas saturation → Transverse saturation profiles → Time-averaged transverse saturation profiles → Processed JSON dataset → Active gas-flow width → Image-based flow-reversal asymmetry. The segmentation step can be reproduced using Scripts/Labkit_batch_segmentation.py, which applies the trained LabKit classifiers stored in Data/Classifiers/ to the corresponding experimental image stacks. The subsequent analysis is implemented in Scripts/Complete_Image_to_IS_pipeline.ipynb. This notebook combines the binary segmented images with the static matrix masks, generates the three-colour representation, calculates pore-normalised gas saturation and transverse profiles, saves the processed JSON dataset, and evaluates the active-width and spatial asymmetry metrics. The three-colour image convention is: Air/bubble = 0 Porous matrix = 125 Liquid-filled pore space = 255 Matrix pixels are excluded from the gas-saturation denominator. For each frame and transverse position y, pore-normalised transverse gas saturation is calculated as: S_y(t,y) = N_air(t,y) / N_pore(y) The profiles are averaged over the selected video frames to obtain the time-averaged transverse saturation profile. For each experimental repetition, the active gas-flow width is defined as the lateral span between the first and last positions at which the time-averaged transverse gas saturation reaches the nominal threshold S_th = 0.10. The image-based flow-reversal asymmetry metric is defined as: I_S(Q) = [W_BA(Q) − W_AB(Q)] / W_cell Here, W_AB and W_BA are the mean active gas-flow widths measured in the two opposite flow directions, and W_cell is the analysed transverse cell width. Positive values of I_S indicate a larger active width in the BA direction, whereas negative values indicate a larger active width in the AB direction. The uncertainty in I_S combines three contributions: Experimental repeatability: independent bootstrap resampling of the repetition-level AB and BA active widths, using a central 68% bootstrap interval. Threshold sensitivity: recalculation of the active widths using saturation thresholds of 0.09, 0.10 and 0.11, retaining the largest upward and downward deviations from the nominal result. Residual background asymmetry: estimated from the root-mean-square deviation of the lowest-flow BL and C85 measurements from zero: sigma_bg = sqrt{[I_S,BL(Q_min)² + I_S,C85(Q_min)²] / 2} These contributions are combined in quadrature to obtain separate lower and upper uncertainties. The central I_S values are not shifted or background-corrected. The complete calculation is provided in Scripts/Complete_Image_to_IS_pipeline.ipynb. Pressure analysis Pressure measurements are analysed independently for the two flow directions, AB and BA. For each experimental condition, the mean pressure drop is calculated over the selected steady-state time interval and combined across repeated measurements. The pressure-based flow-reversal asymmetry metric is defined as: I_P(Q) = [<ΔP>_BA − <ΔP>_AB] / P0 Here, P0 is the largest mean steady-state pressure drop measured across the complete two-phase dataset. The same normalisation is applied to all geometries and flow rates, allowing direct comparison between the different flow-cell configurations. Positive values of I_P indicate a larger pressure drop in the BA direction. To account for the residual directional mismatch at the lowest investigated flow rate, a corrected pressure-based metric is introduced: I_P*(Q) = I_P(Q) − I_P(Q_min) Here, Q_min is the lowest investigated flow rate for the corresponding geometry. The uncertainty calculation combines experimental repeatability estimated by independently bootstrapping the repetition-averaged AB and BA pressure measurements, using a central 68% bootstrap interval, with the stated pressure-sensor accuracy of ±1.35%. The uncertainty in the corrected metric additionally accounts for the low-flow reference. These contributions are combined in quadrature. The corresponding notebook, Scripts/Plot_Pressure_Metric.ipynb, contains the pressure averaging, repetition handling, uncertainty calculations and evaluation of both pressure-based metrics. Representative raw pressure recordings are included in Data/Pressures/. Flow-rate convention Important: The flow-rate value encoded in the two-phase experimental filenames corresponds to the imposed flow rate per phase, not the total two-phase flow rate. For equal silicone-oil/air co-injection: Q_total = 2 × Q_filename For example, a filename containing 60_MH corresponds to: Silicone-oil flow rate: 60 mL/h Air flow rate: 60 mL/h Total flow rate: 120 mL/h For single-phase experiments, the filename value already corresponds to the total flow rate. The pressure- and image-based asymmetry metrics are reported as functions of the total imposed flow rate. Software and dependencies The repository primarily uses Python 3, Jupyter Notebook, NumPy, pandas, Matplotlib, tifffile, Fiji/ImageJ, LabKit and FreeCAD. Flow-cell geometries were developed using FreeCAD 0.20.2, and print preparation was performed using Formlabs PreForm 3.46.0.497. The complete obstacle-generation code contained in FreeCAD_obstacles_generator.ipynb is intended to be copied into the FreeCAD Python console rather than executed directly in a standard Jupyter environment. Users should install the dependencies required by each script and adjust local file paths, experimental hardware connections and software locations as necessary. Reproducing the analyses The repository supports several independent workflows. Flow-cell design: The supplied CAD files can be inspected and modified in FreeCAD. New regular or random porous structures can be generated using FreeCAD_obstacles_generator.ipynb. Experimental acquisition: Acquisition_Pump_Camera_Prs-Sensors.ipynb documents the automated acquisition procedure used to control the syringe pump, record pressure measurements and acquire camera images. Image segmentation: The supplied LabKit classifiers can be applied to the corresponding raw TIFF stacks using Labkit_batch_segmentation.py. Image-based analysis: The segmented stacks can be processed using Complete_Image_to_IS_pipeline.ipynb to generate saturation maps, transverse saturation profiles, active widths and the image-based flow-reversal asymmetry metric. Alternatively, the image-based analysis can start directly from BubbleSaturation_Yprofiles_ALL.json, avoiding the need to process the complete raw image stacks. Pressure-based analysis: The supplied pressure recordings can be processed independently using Plot_Pressure_Metric.ipynb. Flow-regime characterisation: The Reynolds and capillary number calculations are provided in Plot_Re_Ca.ipynb. The supplied datasets allow users to reproduce the corresponding processing steps and analyses. Because only a subset of the complete experimental recordings is included, reproducing every reported experimental result directly from raw data may require additional files. Data availability Because of repository storage limitations, this Zenodo record contains only a selected subset of the complete experimental dataset. The included files document the manufacturing, experimental and analysis workflows and support reproduction of the corresponding processing steps and analyses. Additional raw and processed data associated with the study that are not included in this Zenodo record are available from the authors upon reasonable request. Reuse and documentation Detailed information on the repository structure, filename conventions, dependencies, processing parameters, design files and analysis workflows is provided in README.md. Python scripts and Jupyter notebooks are licensed under the MIT License. Experimental data, processed datasets, CAD/design files, LabKit classifiers, images, JSON files and other non-code materials are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). See LICENSE.txt for details.
Keyword(s):
3D printing; flow reversal; FreeCad; image processing; irrerversibility.
MeSH Term(s):
Grants and Funding:
Associated Publication(s):
No Associated Publication Data Available
Supplementary Data:
No Supplementary Data Available
Related Dataset(s):
No Related Dataset Data Available
The National Library of Medicine (NLM) provides information about biomedical datasets. Inclusion on an NLM Web page does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: NLM Web Policies (nih.gov)