You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jf1uids - differentiable (magneto)hydrodynamics for astrophysics in JAX
Features
1D, 2D and 3D hydrodynamics and magnetohydrodynamics simulations
provably divergence free magnetic fields based on the approach of Pang and Wu (2024) (different from their approach not yet provably positivity preserving)
novel (possibly) conservative self gravity scheme, stable at strong discontinuities
backwards and forwards differentiable with adaptive timestepping
easily extensible, all code is open source
Installation
jf1uids can be installed via pip
pip install jf1uids
Note that if JAX is not yet installed, only the CPU version of JAX will be installed
as a dependency. For a GPU-compatible installation of JAX, please refer to the
JAX installation guide.