Metadata-Version: 2.1
Name: ddr_mfc
Version: 0.0.1
Summary: Package to control alict MFC
Home-page: https://github.com/ddrathod121294/ddr_mfc
Author: Darshan Rathod
Author-email: darshan.rathod1994@gmail.com
Keywords: ddr,ddr_mfc
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.6, <4
Description-Content-Type: text/markdown

# 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.

```py
import ddr_cantera
```

### Air properties calculation

```py
density = ddr_cantera.get_density(pressure=10, temperature=120)
```
returns air density at 10 bars(~ atm) pressure and 120 degree celcius temperature.

```py
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.

```py
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.

```py
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.
