Skip to main content

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

Project description

This package implements 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).

Documentation

Documentation for the package is available on Read the Docs.

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 might not be available for all platforms or Python versions.

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. To do so install Cython. Then run the following command from the directory containing the PC-SAFT code

python setup.py build_ext --inplace

Make sure that the Eigen header files are somewhere on your path. More about the Cython build process can be found from 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

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.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pcsaft-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (2.3 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pcsaft-1.1.0-cp36-cp36m-manylinux2010_x86_64.whl (2.3 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pcsaft-1.1.0-cp37-cp37m-manylinux1_x86_64.whl (2.3 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.1.0-cp37-cp37m-manylinux2010_x86_64.whl (2.3 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.1.0-cp37-cp37m-win32.whl (155.9 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.1.0-cp37-cp37m-win_amd64.whl (183.0 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pcsaft-1.1.0.tar.gz (96.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page