Skip to the content.
Logo

HidroUFF Density Calculator
Versão 1.3.0

DOI

Developer's Guide

This application's main feature is the calculation of the density of gas mixtures, through the resolution of Peng Robinson's cubic equation of state. Currently, there are 20 substances already registered in the tool and support for adding new substances by the user. In addition, the tool has an interface in English, Portuguese and Spanish.

Getting startedTechnologyDirectory and file structureDevelopmentQuoting

Technology

Python

Directory and file structure

/bin

The /bin directory stores the application's executable files.

/data

The /data directory stores CSV files that contain the properties of the substances registered in the application, such as molar mass (g/mol), critical pressure (KPa), critical temperature (K) and acentric factor. Furthermore, it contains the values of the kij parameters that represent the interaction between each pair of substances.

/utility

The /utility directory contains the utility responsible for adding new substances to the application by transforming the files contained in /data into a single file called "constant.py" in /src for use by the application. To add new substances just follow the instructions in Getting started.

/src

Directory that stores the application's source code, composed of six modules:

main.py

Used to launch the application.

constant.py

They contain constants that store the values of the properties of substances that can be used by the program. This file is generated by the csvToPy utility from the files in /data. At each generation the file is overwritten.

imagesAndFonts.py

Stores the images and fonts used by the application in binary format. It is recommended not to make any changes to this file in order not to render it unusable.

gui.py

Module responsible for building the user interface through the PyQt5 library.

Class Ui_MainWindoow and your methods

verificacaoDeEntrada.py

Contains the methods used to perform file and data entry verification.

Functions

calculadora.py

Contém os métodos utilizados para realização dos cálculos e processamento dos dados. Nos cálculos utiliza as propriedades das substâncias armazenadas em constant.py.

Functions

Development

Quoting

If the HidroUFF Specific Mass Calculator contributed to any project or research that resulted in a publication, please cite it.

DOI