Skip to main content

1D shocktube caculator to provide analytic solutions

Project description

PRs Welcome Code style: black

1D shocktube caculator

This tool provdes 1D Shock Tube analytic solutions.

Getting Started

Prerequisites

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)

Uploaded Source

Built Distribution

shocktube1dcalc-0.0.4-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

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