-
Notifications
You must be signed in to change notification settings - Fork 15
PC SAFT methods
The pcsaft
class, found in addon/pycThermopack/thermopack/pcsaft.py
, is the interface to the
PC-SAFT Equation of State. This class inherits the saft
class, which in turn inherits the
thermo
class. This class implements utility methods to access mixing parameters etc.
Methods to initialise PC-SAFT model.
Initialize PC-SAFT model in thermopack If no components are specified, model must be initialized for specific components later by direct call to 'init'. Model can at any time be re-initialized for new components or parameters by direct calls to 'init'
comps (str, optional):
Comma separated list of component names
parameter_reference (str, optional):
Which parameters to use?. Defaults to "Default".
simplified (bool):
Use simplified PC-SAFT (sPC-SAFT: 10.1021/ie020753p) (Default False)
polar (bool):
Use dipole and quadrupole contributions PCP-SAFT (10.1002/aic.10502, 10.1002/aic.10683 and 10.1021/jp072619u) (Default False)
Initialize PC-SAFT model in thermopack
comps (str):
Comma separated list of component names
parameter_reference (str, optional):
Which parameters to use?. Defaults to "Default".
simplified (bool):
Use simplified PC-SAFT (sPC-SAFT: 10.1021/ie020753p) (Default False)
polar (bool):
Use dipole and quadrupole contributions PCP-SAFT (10.1002/aic.10502, 10.1002/aic.10683 and 10.1021/jp072619u) (Default True)
Set- and get methods for interaction parameters and pure fluid parameters.
association_energy_density(self, temp, n_alpha, phi=None, phi_t=None, phi_n=None, phi_tt=None, phi_tn=None, phi_nn=None)
Calculate association functional of Sauer and Gross https://doi.org/10/f95br5
temp (float):
Temperature (K)
n_alpha (np.ndarray):
Weighted densities
phi (No type, optional):
Flag to activate calculation. Defaults to None.
phi_T (No type, optional):
Flag to activate calculation. Defaults to None.
phi_n (No type, optional):
Flag to activate calculation. Defaults to None.
phi_TT (No type, optional):
Flag to activate calculation. Defaults to None.
phi_Tn (No type, optional):
Flag to activate calculation. Defaults to None.
phi_nn (No type, optional):
Flag to activate calculation. Defaults to None.
Optionally energy density and differentials
Get binary well depth interaction parameter
c1 (int):
Component one
c2 (int):
Component two
kij (float):
Well depth interaction parameter
Get pure fluid PC-SAFT parameters
c (int):
Component index (FORTRAN)
m (float):
Mean number of segments
sigma (float):
Segment diameter (m)
eps_div_kb (float):
Well depth divided by Boltzmann's constant (K)
eps (float):
Association energy (J/mol)
beta (float):
Association volume (-)
lng_ii(self, temp, volume, n, i, lng_t=None, lng_v=None, lng_n=None, lng_tt=None, lng_vv=None, lng_tv=None, lng_tn=None, lng_vn=None, lng_nn=None)
Calculate logarithm of the radial distribution function at contact given temperature, volume and mol numbers. Differentials are computed as functions of (T, V, n).
temp (float):
Temperature (K)
volume (float):
Volume (m3)
n (array_like):
Mol numbers (mol)
i (int):
FORTRAN component index
lng_t (No type, optional):
Flag to activate calculation. Defaults to None.
lng_v (No type, optional):
Flag to activate calculation. Defaults to None.
lng_n (No type, optional):
Flag to activate calculation. Defaults to None.
lng_tt (No type, optional):
Flag to activate calculation. Defaults to None.
lng_vv (No type, optional):
Flag to activate calculation. Defaults to None.
lng_tv (No type, optional):
Flag to activate calculation. Defaults to None.
lng_tn (No type, optional):
Flag to activate calculation. Defaults to None.
lng_vn (No type, optional):
Flag to activate calculation. Defaults to None.
lng_nn (No type, optional):
Flag to activate calculation. Defaults to None.
ndarry:
Optionally differentials
Set binary well depth interaction parameter
c1 (int):
Component one
c2 (int):
Component two
kij (float):
Well depth interaction parameter
Set pure fluid PC-SAFT parameters
c (int):
Component index (FORTRAN)
m (float):
Mean number of segments
sigma (float):
Segment diameter (m)
eps_div_kb (float):
Well depth divided by Boltzmann's constant (K)
eps (float):
Association energy (J/mol)
beta (float):
Association volume (-)
Deprecated methods are not maintained, and may be removed in the future.
Get pure fluid PC-SAFT parameters
c (int):
Component index (FORTRAN)
m (float):
Mean number of segments
sigma (float):
Segment diameter (m)
eps_div_kb (float):
Well depth divided by Boltzmann's constant (K)
eps (float):
Association energy (J/mol)
beta (float):
Association volume (-)
Set pure fluid PC-SAFT parameters
c (int):
Component index (FORTRAN)
m (float):
Mean number of segments
sigma (float):
Segment diameter (m)
eps_div_kb (float):
Well depth divided by Boltzmann's constant (K)
eps (float):
Association energy (J/mol)
beta (float):
Association volume (-)
Wiki
Getting started
Advanced Usage
Comprehensive method documentation
-
Equations of state
Numerical methods