EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

WaterLily.jl: A differentiable and backend-agnostic Julia solver for incompressible viscous flow around dynamic bodies

Gabriel D. Weymouth, Bernat Font

Computer Physics Communications · 2025-10 · 315 · 109748

DOI: 10.1016/j.cpc.2025.109748 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Computer Physics Communications, 2025-10. Verfasst von Gabriel D. Weymouth und 1 weiteren Autor:innen. Die Arbeit wurde bisher 14-mal zitiert (Crossref) und nennt 43 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Integrating computational fluid dynamics (CFD) solvers into optimization and machine-learning frameworks is hampered by the rigidity of classic computational languages and the slow performance of more flexible high-level languages. In this work, we introduce WaterLily.jl: an open-source incompressible viscous flow solver written in the Julia language. An immersed boundary method is used to enforce the effect of solid boundaries on flow past complex geometries with arbitrary motions. The small code base is multidimensional, multiplatform and backend-agnostic, ie. it supports serial and multithreaded CPU execution, and GPUs of different vendors. Additionally, the pure-Julia implementation allows the solver to be fully differentiable using automatic differentiation. The computational cost per time step and grid point remains constant with increasing grid size on CPU backends, and we measure up to two orders of magnitude speed-up on a supercomputer GPU compared to serial CPU execution. This leads to comparable performance with low-level CFD solvers written in C and Fortran on research-scale problems, opening up exciting possible future applications on the cutting edge of machine-learning research.

Zitieren

APA

Weymouth, G. D., & Font, B. (2025). WaterLily.jl: A differentiable and backend-agnostic Julia solver for incompressible viscous flow around dynamic bodies. Computer Physics Communications, 315, 109748. https://doi.org/10.1016/j.cpc.2025.109748

Vancouver

Weymouth GD, Font B. WaterLily.jl: A differentiable and backend-agnostic Julia solver for incompressible viscous flow around dynamic bodies. Computer Physics Communications. 2025;315:109748. doi:10.1016/j.cpc.2025.109748

BibTeX
@article{Weymouth2025,
  author = {Weymouth, Gabriel D. and Font, Bernat},
  title = {WaterLily.jl: A differentiable and backend-agnostic Julia solver for incompressible viscous flow around dynamic bodies},
  journal = {Computer Physics Communications},
  year = {2025},
  volume = {315},
  pages = {109748},
  doi = {10.1016/j.cpc.2025.109748}
}
Kostenlos starten →