Relativistic Reactive Riemann problem solver for Deflagrations and Detonations
Project description
Relativistic Reactive Riemann problem solver for Deflagrations and Detonations
This extends standard solutions of the relativistic Riemann Problem to include a reaction term.
Installation
A standard:
python setup.py install
or:
pip install r3d2
should work.
Usage
Import the equations of state, State class, and Riemann Problem class:
>>> from r3d2 import eos_defns, State, RiemannProblem
Set up an equation of state:
>>> eos = eos_defn.eos_gamma_law(5.0/3.0)
Set up the left and right states:
>>> U_L = State(rho=1.0, v=0.0, vt=0.0, eps=1.5, eos=eos) >>> U_R = State(rho=0.125, v=0.0, vt=0.0, eps=1.2, eos=eos)
Solve the Riemann Problem:
>>> rp = RiemannProblem(U_L, U_R)
The output can be examined for details of the solution and its wave structure. However, the classes are optimized for display in a Jupyter notebook. See the documentation for more detail.
Documentation
The documentation is available at http://r3d2.readthedocs.org .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file r3d2-1.0.tar.gz
.
File metadata
- Download URL: r3d2-1.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a089aefb4c806440662e136535b6f0708ef17d84ed637b956cc1c668be170c |
|
MD5 | 0d4f8d024e3de51aedf6436a11af4656 |
|
BLAKE2b-256 | 501c4176765eed31f74d5708174f4508c5f9c667be80a69fb4c13e757586d9d5 |
File details
Details for the file r3d2-1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: r3d2-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4608ec3969cade7f02ef51b3ced7c2d9ffd6a53647f2563eb5e18b6d5d383504 |
|
MD5 | 4537064dbc4812996081ed41ef1f8b29 |
|
BLAKE2b-256 | 155513557410a594bbe6fc63964e484d3a8794c11f65455a782d9414c15f2aa9 |