Skip to content

Propulsion - Symbolic and Numerical implementations for (rocket) propulsion; Cantera implementations for combustion thermochemistry; LaTeX notes and solutions

License

Notifications You must be signed in to change notification settings

ernestyalumni/Propulsion

Repository files navigation

Propulsion

Propulsion - Numerical recipes for (rocket) propulsion, including notes and solutions in LaTeX; Cantera implementations in Python

Python virtual environment setup

Ubuntu Linux

e.g. 22.04 LTS

On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.

sudo apt install python3.10-venv

Then

Propulsion$ python3 -m venv ./venv

Liquid-Vapor Equilibrium:

Clausius-Clapeyron Equation and Antoine Equation from NIST Chemistry Webbook

Web-scrape directly the National Institute of Standards and Technology (NIST) Chemistry Webbook for the Phase change data, and "clean" or format the data into the Antoine Equation and Clausius-Clapeyron relation.

  • Uses only the packages Requests, BeautifulSoup,sympy

You'll be able to make plots of the Antoine Equation and Clausius-Clapeyron relation like this, in this case for methane, CH_4: Clausius-Clapeyon relation vs. Antoine Equation for methane (CH_4), p (bar) vs. T(K)

Cantera

PRF_171.cti added in cantera_stuff directory: .cti Cantera file for n-heptane, along with its Chemical Kinetics (!!!)

cf. Oku Nyong posted this file in his question on Autoignition of Heptane in RCM. I added it to the subdirectory cantera_stuff of this same repository.

cantera_stuff - examples (of usage) and implementations of Cantera

First, the folder cantera_stuff contains an implementation in Python of the (useful) Matlab tutorial .m files/examples/ and (some of the) Matlab examples on the Index of Examples of Cantera Matlab Toolbox (but it's now in Python). See the Cantera Matlab Toolbox examples page http://www.cantera.org/docs/sphinx/html/matlab/examples.html and compare it with the files in cantera_stuff.

(cantera) Tutorials

Of note are the tutorial files for Cantera (which I recommend that one works through):

  • tut1.py
  • tut2.py
  • tut3.py
  • tut4.py
  • tut5.py
  • tut6.py
  • tut7.py and

(cantera) Examples

  • equil.py

My own (EY's) Examples

  • LOXmeth_eq.py

LOXmeth_eq.py calculates, as a function of oxidizer/fuel O/F mass ratio, the adiabatic flame temperature, equilibrium molecular composition, mean molecular weight, ratio of specific heats, and characteristic velocity, of the combustion of oxidizer oxygen (O2) and methane (CH3). This function is further generalized (called equil_general) to make other species be the oxidizer and fuel, such as dinitrogen tetraoxide (N2O4) and hydrazine (N2H4).

Physique

Physique is a (small) Python package for web scraping physical constants data and "data wrangling" or "cleaning" the data to use for Python pandas, as a pandas DataFrame object.

About

Propulsion - Symbolic and Numerical implementations for (rocket) propulsion; Cantera implementations for combustion thermochemistry; LaTeX notes and solutions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published