1D shocktube caculator to provide analytic solutions
Project description
1D shocktube caculator
This tool provdes 1D Shock Tube analytic solutions.
Getting Started
Prerequisites
- Python
- numpy
- scipy
Usage
from shocktube1dcalc import solver_analytic
# by default it will create a the shock tube based on Sod's classic condition.
shocktube = solver_analytic.ShockTube()
import numpy as np
mesh = np.linspace(-0.5, 0.5, 50)
analytic_solution = shocktube.get_analytic_solution(
mesh, t=0.4
)
You may customize the physical status of the shocktube via:
shocktube = solver_analytic.ShockTube(rho_left=1.0, u_left=0.0, p_left=1.0, rho_right=0.125, u_right=0.0, p_right=0.1)
Contributing
See Contributing
Authors
Taihsiang Ho (tai271828) tai271828@gmail.com
Created from Lee-W/cookiecutter-python-template version 0.7.1
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
shocktube1dcalc-0.0.4.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for shocktube1dcalc-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7817864f48221a7f04e8164a1ee3d20cc007a6d909f68f703aae73cf8f5a28fe |
|
MD5 | 100e331e85a0934d12dda01e2d024ffb |
|
BLAKE2b-256 | d9f9a3adc2d5a2045dcaaba98d82124a26e308a399e21d9e701835fba1bf4d0f |