Package to control alict MFC
Project description
ddr_cantera
To use this project Cantera should be installed in the environment otherwise module not found error will arise. Cantera is not installed by uinstalling this package. This project includes some basic functionalities with cantera. Most of them includes density calculations using cantera but not all. Most functions calculates properties of air unless otherwise specified.
import ddr_cantera
Air properties calculation
density = ddr_cantera.get_density(pressure=10, temperature=120)
returns air density at 10 bars(~ atm) pressure and 120 degree celcius temperature.
mdot = ddr_cantera.LPM_to_kg_per_sec(LPM=100, pressure=10, temperature=120)
returns mass flow rate of air in kg/s from LPM.
mdot = ddr_cantera.SLPM_to_kg_per_sec(SLPM=100)
returns mass flow rate of air in kg/s from SLPM. standard temperature is taken as 25 degree celcius and standard pressure is 1 atmosphere.
a = ddr_cantera.sound_speed(pressure=2, temperature=25)
returns speed of sound in air. the sound speed is calculated by $\sqrt{\frac{\partial P}{\partial \rho}}$. wherein the gas is first equilibrium at initial TP and then pressure is perturbed and gas is again taken to another equilibrium at constant entropy. Hence from these two states $\partial P$ and $\partial \rho$ can be calculated.
This code is built upon the code from official cantera tutorials.
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 ddr_mfc-0.0.1.tar.gz
.
File metadata
- Download URL: ddr_mfc-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a7b40bd2b5f221c5af7298bc4e05a241991434bedcf14726b37179743672c01 |
|
MD5 | a893e8abaa2d71107fd6634c2dc252f7 |
|
BLAKE2b-256 | 9a719af2f1bea018a732f2cea76d67adf728a134b09b701d45c428235a7213f3 |
Provenance
File details
Details for the file ddr_mfc-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ddr_mfc-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38d9379ab1102784c2e417a1d55ef430f046d66cec558fdfc2fef89a685592d |
|
MD5 | b910f8cca6bca3f075d40f83c47218b2 |
|
BLAKE2b-256 | 8270dc42b9913cef761e4f4b879f4f5b70405507bcf1feb5d85c7fe1435d609c |