This repo is a Color Gradient Lattice Boltzmann Method Simulator for immiscible fluids.
Based on Subhedar, A. (2022). Color-gradient lattice Boltzmann model for immiscible fluids with density contrast. Physical review. E, 106 4-2, 045308 .
This project uses jax, installing jax is a prerequisite. Instruction to install jax is available here
git clone https://github.com/dic-case-studies/cg-lbm.git
pip install -e .
Planned for the future
First we need to install developer dependencies present in setup.py
From the root directory run
pytest
# Run with -s to capture the time from the performance benchmarks
pytest -s
Examples of running the simulation are present in notebooks folder
CG-LBM was created from the collaboration between the Engineering for Research (e4r) group, Thoughtworks and Dr. Amol Subhedar, Department of Chemical Engineering, Indian Institute of Technology, Bombay.