This repository contains a High-Performance LFM fluid simulator. The code for AMGPCG Poisson Solver is in another repo AMGPCG_Pybind_Torch, which is imported as a submodule.
Please consider citing our paper if this repository helps you:
@article{sun2025lfm,
title={Leapfrog Flow Maps for Real-Time Fluid Simulation},
author={Sun, Yuchen and Li, Junlin and Wang, Ruicheng and Wang, Sinan and Li, Zhiqi and van Bloemen Waanders, Bart G. and Zhu, Bo},
journal={ACM Transactions on Graphics (TOG)},
volume={44},
number={4},
pages={1--12},
year={2025},
publisher={ACM New York, NY, USA}
}
The paper and video results can be found at the Project Page.
We use xmake for cross-platform compilation. We successfully compiled the code on machines with Windows 11 / Ubuntu 22.04 and Nvidia RTX 4090.
git clone https://github.com/yuchen-sun-cg/lfm.git
git submodule update --init --recursive
- xmake
- C++ 20
- Cuda 12.6
- Vulkan
- sed, gnuutils (for Windows users)
At proj/sim_render
xmake build
At proj/sim_render, run the executable file in proj/sim_render/build
In proj/sim_render/config