FARGO3D
A multi-fluid magnetohydrodynamic CPU/GPU parallel code
FARGO3D is a multi-fluid (magneto)hydrodynamic CPU/GPU parallel code. Its development started during my PhD under the supervision of Frédéric Masset and has continued since then.
FARGO3D Lab Git repository (GitHub) Documentation Paper overview
Download & documentation
- Git repository: github.com/FARGO3D/fargo3d
- Documentation: fargo3d.github.io/documentation
Main features
- Cartesian, cylindrical, or spherical geometry MHD solver.
- 1-, 2-, or 3-dimensional calculations.
- Fast orbital advection implemented for HD and MHD.
- N-body integrator to describe orbital dynamics of point masses.
- Asymptotically stable multi-species drag solver (general \(N\) fully coupled fluids and analytical \(O(N)\) gas–dust update).
- Arbitrary-mesh rapid advection (RAM) and a comoving reference frame for long-range planet migration.
- No need to know CUDA to develop it — C code is translated into CUDA code automatically at compilation time.
- Runs indistinctly on clusters of CPUs or GPUs.
- Open source and freely available.
Code papers & overviews
- FARGO3D: A new GPU-oriented MHD code — Benítez-Llambay, P., Masset, F., 2016, ApJS, 223, 1, 11 — Overview · ADS
- Asymptotically stable numerical method for multispecies momentum transfer: gas and multifluid dust test suite and implementation in FARGO3D — Benítez-Llambay, P., Krapp, L., Pessah, M., 2019, ApJS, 241, 25 — Overview · Blog note · ADS
- RAM: Rapid Advection Algorithm on Arbitrary Meshes — Benítez-Llambay, P., Krapp, L., Ramos, X., Kratter, K., 2023, ApJ, 952, 2, 106 — Overview · Blog note · ADS
- A Comoving Framework for Planet Migration — Ramos, X., Benítez-Llambay, P., 2026, ApJ, 998, 2, 346 — Overview · Blog note · ADS
Citation
If you use FARGO3D in your research, please cite Benítez-Llambay & Masset (2016):
@article{BenitezLlambay2016FARGO3D,
author = {{Ben{\'\i}tez-Llambay}, Pablo and {Masset}, Fr{\'e}d{\'e}ric S.},
title = "{FARGO3D: A New GPU-oriented MHD Code}",
journal = {The Astrophysical Journal Supplement Series},
year = {2016},
volume = {223},
number = {1},
pages = {11}
}