ddr-cantera


Nameddr-cantera JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/ddrathod121294/ddr_davis_data
SummaryPackage to calculate air properties using cantera
upload_time2022-12-05 13:49:59
maintainer
docs_urlNone
authorDarshan Rathod
requires_python>=3.6, <4
license
keywords ddr ddr_cantera
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ddrathod121294/ddr_davis_data",
    "name": "ddr-cantera",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6, <4",
    "maintainer_email": "",
    "keywords": "ddr,ddr_cantera",
    "author": "Darshan Rathod",
    "author_email": "darshan.rathod1994@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/95/f2/65dda960a91dbe1a618ef3424a9ac92268509ddce8711e288e0bebfa6352/ddr_cantera-0.0.3.tar.gz",
    "platform": null,
    "description": "# ddr_cantera\n\nTo 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.\nThis 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.\n\n```py\nimport ddr_cantera\n```\n\n### Air properties calculation\n\n```py\ndensity = ddr_cantera.get_density(pressure=10, temperature=120)\n```\nreturns air density at 10 bars(~ atm) pressure and 120 degree celcius temperature.\n\n```py\nmdot = ddr_cantera.LPM_to_kg_per_sec(LPM=100, pressure=10, temperature=120)\n```\nreturns mass flow rate of air in kg/s from LPM.\n\n```py\nmdot = ddr_cantera.SLPM_to_kg_per_sec(SLPM=100)\n```\nreturns mass flow rate of air in kg/s from SLPM. standard temperature is taken as 25 degree celcius and standard pressure is 1 atmosphere.\n\n```py\na = ddr_cantera.sound_speed(pressure=2, temperature=25)\n```\nreturns 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.\n\nThis code is built upon the code from official cantera tutorials.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Package to calculate air properties using cantera",
    "version": "0.0.3",
    "split_keywords": [
        "ddr",
        "ddr_cantera"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "83d4dad6156ccaf45f210c3d1845a4e9",
                "sha256": "5057ecc5802d3dfe5edd97600c8bcb0c526d1970567ea8327c153e9071759e93"
            },
            "downloads": -1,
            "filename": "ddr_cantera-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "83d4dad6156ccaf45f210c3d1845a4e9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6, <4",
            "size": 6582,
            "upload_time": "2022-12-05T13:49:58",
            "upload_time_iso_8601": "2022-12-05T13:49:58.065976Z",
            "url": "https://files.pythonhosted.org/packages/e1/45/67f3f41ac45ce718354f1272c4cd0bfbf40c517a662c0427db03d183ffaf/ddr_cantera-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "a4239c0c192a66ef52f36b9f3aebe2a3",
                "sha256": "f319eb8174109ac54fbc233f7b55e5e49a1b42fff855df726085371e94524d68"
            },
            "downloads": -1,
            "filename": "ddr_cantera-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "a4239c0c192a66ef52f36b9f3aebe2a3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6, <4",
            "size": 6129,
            "upload_time": "2022-12-05T13:49:59",
            "upload_time_iso_8601": "2022-12-05T13:49:59.805627Z",
            "url": "https://files.pythonhosted.org/packages/95/f2/65dda960a91dbe1a618ef3424a9ac92268509ddce8711e288e0bebfa6352/ddr_cantera-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-05 13:49:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ddrathod121294",
    "github_project": "ddr_davis_data",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ddr-cantera"
}
        
Elapsed time: 0.01423s