Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

2D Liquid Bridge Dynamics

Direct numerical simulation code infrastructure for the two-dimensional computational model of a liquid bridge created between two cylinders held at a fixed distance between them, and subsequently allowed to fall under gravity. This repository provides a compact and reproducible computational companion to the associated study available on arXiv:2608.18291, bringing together a comprehensive experimental campaign, mathematical modelling, asymptotic analysis and associated reduced-dimensional modelling calculations.

The key challenge is including contact angle dynamics over embedded solid geometries, as only recently (2024) implemented in Basilisk and expanded upon in the associated publication. The code supports the active collaboration on this topic with the Department of Mathematical Sciences and Department of Chemical Engineering at Loughborough University.

LiquidBridge

📌 Highlights

  • 2D Basilisk-based solver for liquid bridge dynamics between cylinders
  • Includes contact angle dynamics on embedded solids (contact-embed implementation)
  • Useful for parameter sweeps in geometry, spacing and fluid properties
  • Lightweight driver scripts to run example cases and organize outputs

🛠️ Installation

1. Requirements

  • Basilisk (compiled with qcc)
  • C compiler (gcc/clang)
  • Visualization tools for post-processing (e.g., ffmpeg, imagemagick, gnuplot) — recommended:
    sudo apt install ffmpeg imagemagick gnuplot

2. Clone the repository

git clone https://github.com/rcsc-group/LiquidBridge2D
cd LiquidBridge2D

3. Install Basilisk

Follow Basilisk’s installation instructions: http://basilisk.fr/src/INSTALL

4. Running the example case

A convenient shell script is provided to run example cases and collect outputs:

sh DriverCode/run_bridge_Fr.sh

The script invokes the driver code and places outputs into organized folders for analysis and visualization.


⚙️ Key Simulation Options

Edit parameters in the driver/source to control:

  • Effective nondimensional numbers (e.g., Froude or other scalings) via the driver code
  • Cylinder spacing and radii (in the driver/source)
  • Resolution / grid refinement (in the driver/source)
  • Output frequency and visualization options (inside the driver code)

Key implementation notes:

  • DriverCode/contact-embed.h contains the embedded-solid / contact-angle routines used by the solver.
  • The main driver is DriverCode/liquid_bridge_Fr.c.
  • run_bridge_Fr.sh wraps execution and output organization.

📁 Folder Structure

.
├── DriverCode/                  # Main driver scripts and code for simulations
│   ├── contact-embed.h          # Embedded-solid & contact-angle implementation
│   ├── liquid_bridge_Fr.c       # Main simulation driver/source (Basilisk)
│   ├── run_bridge_Fr.sh         # Shell script to run example cases and manage outputs
│
├── LICENSE                      # License information
└── README.md                    # Project documentation

📊 Outputs

Typical outputs produced by the driver/script:

  • Interface snapshots and data files for post-processing
  • Time series / summary files with diagnostic quantities
  • Optional animations (if visualization routines are enabled)

Output layout and file naming are managed by the run script; inspect DriverCode/run_bridge_Fr.sh for details.


🧑 Contributing

Contributions and reproducibility feedback are welcome. Please feel free to:

  • Fork the repo
  • Open issues to report bugs or request features
  • Submit pull requests with improvements, tests, or documentation updates

For numerical changes, please document any modifications to solver tolerances, mesh-adaptation criteria, physical parameters, compiler settings, or stopping conditions that may affect reproducibility.

About

Open-source software repository (based on Basilisk C) for the simulation of liquid film flow dynamics and bridge formation around two cylindrical rods, supporting collaborative work with colleagues at Loughborough University. Complements the preprint available at https://arxiv.org/abs/2608.18291.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages