Skip to main content

conservative, differentiable, radial 1d fluid solver with astrophysical modules

Project description

jf1uids - Differentiable Conservative Radially Symmetric Fluid Simulations and Stellar Winds

Welcome to the repository of jf1uids, a 1d radial fluid solver written in JAX.

jf1uid is written in a way such that mass and energy are conserved based on the approach of Crittenden and Balachandar (2018) with a MUSCL-Hancock fluid solver. Note that for any general pupose (non-radial) problem consider using JAX-Fluids.

The solver's code can be found in the jf1uis folder. You can find a simple example for getting started under simple_example.ipynb.

Installation

jf1uids can be installed via pip:

pip install jf1uids

For running the notebooks you will also need to install matplotlib (and jupyter).

Reproducing the results from the paper

All the results from the paper can easily be reproduced via the notebooks provided

Roadmap

  • Implement a conservative 1d radial fluid solver with simple to implement yet powerful numerical schemes.
  • Implement a simple stellar wind model, first analyses on the gradients of the final fluid state with respect to the wind parameters.
  • Implementation of higher-order reconstruction methods like WENO-Z+, etc.
  • Implementation of different Riemann solvers
  • Implementation of a shock finder
  • Implementation of a simple cosmic ray model based on the energy dissipation in shocks
  • Two-fluid cosmic-ray model
  • Full-spectrum cosmic ray modeling

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jf1uids-0.1.7.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

jf1uids-0.1.7-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file jf1uids-0.1.7.tar.gz.

File metadata

  • Download URL: jf1uids-0.1.7.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/5.15.0-119-generic

File hashes

Hashes for jf1uids-0.1.7.tar.gz
Algorithm Hash digest
SHA256 afe5c471db2d337794713841f5d158a2c7a1b55b20734b381913e98cf232ab05
MD5 38aa262907167633d5c6b90afaae6576
BLAKE2b-256 47d8eb955c6c33ce14617616dfc2413270345b8e9b92676b9c1056c5e0e511d7

See more details on using hashes here.

File details

Details for the file jf1uids-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: jf1uids-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/5.15.0-119-generic

File hashes

Hashes for jf1uids-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 09c050f39b89b5cd7ff217a67e687766ccad59829d13a740d50ca2808a877705
MD5 e8e52f4c2a10eb2cb1a0bddf9e2440d0
BLAKE2b-256 da7033b0de86e681b1a8db87508b80e4e42e4078b1b045f8fa42b2b10a4b4027

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page