Skip to main content

Package to calculate air properties using cantera

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddr_cantera-0.0.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

ddr_cantera-0.0.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file ddr_cantera-0.0.3.tar.gz.

File metadata

  • Download URL: ddr_cantera-0.0.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for ddr_cantera-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f319eb8174109ac54fbc233f7b55e5e49a1b42fff855df726085371e94524d68
MD5 a4239c0c192a66ef52f36b9f3aebe2a3
BLAKE2b-256 95f265dda960a91dbe1a618ef3424a9ac92268509ddce8711e288e0bebfa6352

See more details on using hashes here.

Provenance

File details

Details for the file ddr_cantera-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ddr_cantera-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for ddr_cantera-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5057ecc5802d3dfe5edd97600c8bcb0c526d1970567ea8327c153e9071759e93
MD5 83d4dad6156ccaf45f210c3d1845a4e9
BLAKE2b-256 e14567f3f41ac45ce718354f1272c4cd0bfbf40c517a662c0427db03d183ffaf

See more details on using hashes here.

Provenance

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