Skip to main content

Useful functions to work with basic chemistry and stochiemetry

Project description

The Chemyst library

Note: As of now this library is in development

To install chemyst run pip install chemyst
Currently there are two functions available

  • P_total()
  • partial_pressure()

Function #1 finds the total pressure of a mixture of gases Function #2 finds the partial pressure of a single gas in a mixture of gases

Usage For P_total

# PVnRT stands for Pressure, Volume, Number of Moles, R is the ideal gas law constant, T is temperature
from chemyst.PVnRT import P_total
# Mixture of 3 gases lets say
total_pressure = P_total([9.987, 2.33, 123.9])
print(total_pressure)
# OUTPUT: 136.217

Usage For partial_pressure

from chemyst.PVnRT import partial_pressure
# Args: num_moles, ideal_gas_law, temp, volume, is_temp_kelvin=True
pressureO2 = partial_pressure(2, 'atm', 31, 15.0, False)
print(pressureO2)
# OUTPUT: 13.2

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

chemyst-1.1.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

chemyst-1.1.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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