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.

Source Distribution

pcsaft-1.0.1.tar.gz (80.0 kB view hashes)

Uploaded Source

Built Distributions

pcsaft-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl (220.5 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pcsaft-1.0.1-cp37-cp37m-win_amd64.whl (167.4 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pcsaft-1.0.1-cp37-cp37m-win32.whl (137.8 kB view hashes)

Uploaded CPython 3.7m Windows x86

pcsaft-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pcsaft-1.0.1-cp37-cp37m-manylinux1_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.7m

pcsaft-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (222.3 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

pcsaft-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

pcsaft-1.0.1-cp36-cp36m-manylinux1_x86_64.whl (1.9 MB view hashes)

Uploaded CPython 3.6m

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