This repository demonstrates the application of the Peng-Robinson equation of state for calculating molar volume and provides chemical data retrieval functionalities using Streamlit.
The Peng-Robinson equation of state is a widely used thermodynamic model for describing the behavior of pure fluids and mixtures. It provides a relationship between pressure, temperature, and molar volume, offering insights into the phase behavior of substances.
The acentric factor
The Peng-Robinson equation of state predicts the molar volume of a substance at given pressure and temperature conditions. It considers the critical properties of the substance, such as critical temperature
Where:
-
$P$ is the pressure (bar) -
$T$ is the temperature (K) -
$v$ is the molar volume (m³/mol) -
$R$ is the universal gas constant (J/(mol·K)) -
$a$ and$b$ are parameters derived from critical properties and acentric factor
The Streamlit application provided in this repository allows users to:
- Retrieve chemical data from the National Institute of Standards and Technology (NIST) database.
- Perform Peng-Robinson calculations to determine the molar volume of a substance at specified pressure and temperature conditions.
The repository contains the following main components:
- Data Retrieval: Utilizes the NIST API to fetch chemical data based on the selected chemical compound.
- Acentric Factor Calculation: Implements the Joback method to calculate the acentric factor of a substance.
- Peng-Robinson Calculation: Implements the Peng-Robinson equation of state to determine the molar volume of a substance.
- Streamlit Application: Provides a user-friendly interface for chemical data retrieval and Peng-Robinson calculations.
- requests
- numpy
- streamlit
- pandas
- beautifulsoup4
- pillow
- Clone the repository to your local machine.
- Install the dependencies listed in the
requirements.txt
file. - Run the Streamlit application using the command
streamlit run main.py
. - Navigate through the sidebar to access the desired functionality.
- Abu Huzaifah Bidin
This project is licensed under the MIT License.