Skip to main content

The PC-SAFT equation of state, including dipole, association and ion terms.

Project description

PC-SAFT

These functions implement the PC-SAFT equation of state. In addition to the hard chain and dispersion terms, these functions also include dipole, association and ion terms for use with these types of compounds. When the ion term is included it is also called electrolyte PC-SAFT (ePC-SAFT).

Dependencies

The Numpy and Scipy packages are required. The core functions have been written in C++ to improve calculation speed, so Cython is needed, along with the Eigen package for linear algebra. For unit testing pytest is used.

Python package

To make it easier to use this code, it has been added as a package to PyPi (pcsaft), which means it can be installed using pip. This allows you to use the code without needing to compile the Cython code yourself. Binaries for Linux and Windows have been added, but MacOS is currently not supported.

Compiling with Cython

To speed up the original Python code the core functions have been rewritten in C++. These are then connected with the remaining Python code using Cython. This gave a significant improvement in speed. The Cython code needs to be compiled before use, and for instructions on how to do this see the Cython documentation.

The original Python-only code has been removed from the repository. If you still want to use the original Python-only functions, go back to an earlier version of the repository. Note that the Python-only code is no longer maintained, so it may not be as reliable as the Cython code.

Author

License

This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file for details

Acknowledgments

When developing these functions the code from two other groups was used as references:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pcsaft, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pcsaft-1.0.1-cp36-cp36m-manylinux1_x86_64.whl (1.9 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pcsaft-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl (1.9 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pcsaft-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (222.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.0.1-cp37-cp37m-manylinux1_x86_64.whl (1.9 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl (1.9 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.0.1-cp37-cp37m-win32.whl (137.8 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.0.1-cp37-cp37m-win_amd64.whl (167.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl (220.5 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pcsaft-1.0.1.tar.gz (80.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page