Skip to content
Snippets Groups Projects
Commit f0f46e66 authored by Ian Bell's avatar Ian Bell
Browse files

Docs for PC-SAFT

parent 6adeaa69
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:df447d16 tags: %% Cell type:markdown id:f406bbb5 tags:
# Cubic EOS # PC-SAFT
Something about cubic EOS The PC-SAFT implementation in teqp is based on the implementation of Gross and Sadowski (https://doi.org/10.1021/ie0003887), with the typo from their paper fixed. It does NOT include the association contribution, only the dispersive contributions.
%% Cell type:code id:9a884dab tags: The model in teqp requires the user to specify the values of ``sigma``, ``epsilon/kB``, and ``m`` for each substance. A very few substances are hardcoded in teqp, for testing purposes.
%% Cell type:code id:7bbd7129 tags:
``` python ``` python
import teqp
TeXkey = 'Gross-IECR-2001'
ms = [1.0, 1.6069, 2.0020]
eoverk = [150.03, 191.42, 208.11]
sigmas = [3.7039, 3.5206, 3.6184]
coeffs = []
for i in range(len(ms)):
c = teqp.SAFTCoeffs()
c.m = ms[i]
c.epsilon_over_k = eoverk[i]
c.sigma_Angstrom = sigmas[i]
coeffs.append(c)
model = teqp.PCSAFTEOS(coeffs)
``` ```
%% Cell type:markdown id:578630c8 tags:
The model parameters can be queried:
%% Cell type:code id:d4e47e54 tags:
``` python
model.get_m(), model.get_epsilon_over_k_K(), model.get_sigma_Angstrom()
```
%% Output
(array([1. , 1.6069, 2.002 ]),
array([150.03, 191.42, 208.11]),
array([3.7039, 3.5206, 3.6184]))
%% Cell type:markdown id:ca52e844 tags:
## Superancillary
The superancillary equation for PC-SAFT has been developed, and is much more involved than that of the cubic EOS. As a consequence, the superancillary equation has been provided as a separate package rather than integrating it into to teqp to minimize the computational overhead. It can be installed from PYPI with: ``pip install PCSAFTsuperanc``
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment