Skip to main content

Utilities to work on 2D and 3D structured grids

Project description

ms_thermo

logo_msthermo

This is a small package from Cerfacs dedicated to multispecies thermodynamics operations.

It is available on PyPI, documentation is on readtthedocs, sources are mirrored on gitlab.com

Installation

Install from Python Package index:

pip install ms_thermo

Features

Command line tools

Once the package is installed, you have access in your terminal to a CLI from the command ms_thermo:

Usage: ms_thermo [OPTIONS] COMMAND [ARGS]...

  ---------------    MS-THERMO  --------------------

  You are now using the Command line interface of MS-Thermo, a Python3
  helper for reactive multispecies computation, created at CERFACS
  (https://cerfacs.fr).

  This is a python package currently installed in your python environement.
  See the full documentation at : https://ms-
  thermo.readthedocs.io/en/latest/.

Options:
  --help  Show this message and exit.

Commands:
  fresh-gas       (Deprecated) Renamed as kero-prim2cons
  gasout          Apply GASOUT actions to a mixture.
  hp-equil        HP equilibrium using Cantera.
  kero-prim2cons  Primitive to conservative variable conversion...
  kero-tadia      Adiabatic flame temperature for a kerosene-air...
  tadia           (Deprecated) Renamed as kero-tadia
  yk-from-phi     Mass fractions of a fuel-air mixture.

Details on the commands are available in the documentation.

The State class

The State class describes the full thermodynamic state of a gas mixture. As an example, the following script creates an initial mixture of fresh gases, then changes a subset of the field into hot gases.

>>> from ms_thermo.state import State
>>> case = State()
>>> print(case)

Current primitive state of the mixture

		        | Most Common |    Min    |    Max
----------------------------------------------------
             rho| 1.17192e+00 | 1.172e+00 | 1.172e+00
          energy| 2.16038e+05 | 2.160e+05 | 2.160e+05
     temperature| 3.00000e+02 | 3.000e+02 | 3.000e+02
        pressure| 1.01325e+05 | 1.013e+05 | 1.013e+05
            Y_O2| 2.32500e-01 | 2.325e-01 | 2.325e-01
            Y_N2| 7.67500e-01 | 7.675e-01 | 7.675e-01

>>> case.temperature = 1200
>>> print(case)

Current primitive state of the mixture
			   	| Most Common |    Min    |    Max
----------------------------------------------------
             rho| 2.92980e-01 | 2.930e-01 | 2.930e-01
          energy| 9.41143e+05 | 9.411e+05 | 9.411e+05
     temperature| 1.20000e+03 | 1.200e+03 | 1.200e+03
        pressure| 1.01325e+05 | 1.013e+05 | 1.013e+05
            Y_O2| 2.32500e-01 | 2.325e-01 | 2.325e-01
            Y_N2| 7.67500e-01 | 7.675e-01 | 7.675e-01

Additional details on the commands are provided in the documentation.

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

ms_thermo-0.3.9.tar.gz (164.5 kB view details)

Uploaded Source

Built Distribution

ms_thermo-0.3.9-py3-none-any.whl (165.6 kB view details)

Uploaded Python 3

File details

Details for the file ms_thermo-0.3.9.tar.gz.

File metadata

  • Download URL: ms_thermo-0.3.9.tar.gz
  • Upload date:
  • Size: 164.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ms_thermo-0.3.9.tar.gz
Algorithm Hash digest
SHA256 41b1c0c6de2969c215994e53956e1c7f6ff2df8a4cd63e5cab0818852db858c0
MD5 d634535178d44df143c100cb5ff98bac
BLAKE2b-256 86ec2a2620a6b256ca9a88e0cfd25e1f73da4fc20ddb0934ac42c1b5c8485176

See more details on using hashes here.

File details

Details for the file ms_thermo-0.3.9-py3-none-any.whl.

File metadata

  • Download URL: ms_thermo-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 165.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ms_thermo-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2d0de4316de8420fc0535c1669aa1ba670c98e2a4e09fc3df75e0c106ef46ea6
MD5 cddba4b38d75f01716ba8667bfdad913
BLAKE2b-256 bbfd23de8cf70ccaaefcf94029233e7f33012c29faa7c89cb55aa1cdb8095c2f

See more details on using hashes here.

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