$\bf{\Phi}_\textrm{Flow}$: Differentiable Simulations for Machine Learning
Abstract
We present $\Phi_\textrm{Flow}$, a Python toolkit that seamlessly integrates with PyTorch, TensorFlow, Jax and NumPy, simplifying the process of writing differentiable simulation code at every step. $\Phi_\textrm{Flow}$ provides many essential features that go beyond the capabilities of the base ML libraries, such as differential operators, boundary conditions, the ability to write dimensionality-agnostic code, floating-point precision management, fully differentiable preconditioned (sparse) linear solves, automatic matrix generation via function tracing, integration of SciPy optimizers, simulation vectorization, and visualization tools. At the same time, $\Phi_\textrm{Flow}$ inherits all important traits of the base ML libraries, such as GPU / TPU support, just-in-time compilation, and automatic differentiation. Put together, these features drastically simplify scientific code like PDE or ODE solvers on grids or unstructured meshes, and $\Phi_\textrm{Flow}$ even includes out-of-the-box support for fluid simulations. $\Phi_\textrm{Flow}$ is available at https://github.com/tum-pbs/PhiFlow.
Cite
Text
Holl and Thuerey. "$\bf{\Phi}_\textrm{Flow}$: Differentiable Simulations for Machine Learning." ICML 2024 Workshops: Differentiable_Almost_Everything, 2024.Markdown
[Holl and Thuerey. "$\bf{\Phi}_\textrm{Flow}$: Differentiable Simulations for Machine Learning." ICML 2024 Workshops: Differentiable_Almost_Everything, 2024.](https://mlanthology.org/icmlw/2024/holl2024icmlw-flow/)BibTeX
@inproceedings{holl2024icmlw-flow,
title = {{$\bf{\Phi}_\textrm{Flow}$: Differentiable Simulations for Machine Learning}},
author = {Holl, Philipp and Thuerey, Nils},
booktitle = {ICML 2024 Workshops: Differentiable_Almost_Everything},
year = {2024},
url = {https://mlanthology.org/icmlw/2024/holl2024icmlw-flow/}
}