polykin.thermo.acm¤
UNIQUAC ¤
UNIQUAC multicomponent activity coefficient model.
This model is based on the following molar excess Gibbs energy expression:
with:
where \(x_i\) are the mole fractions, \(q_i\) (a relative surface) and \(r_i\) (a relative volume) denote the pure-component parameters, and \(\tau_{ij}\) are the interaction parameters.
In this particular implementation, the interaction parameters are allowed to depend on temperature according to the following empirical relationship (as done in Aspen Plus):
Moreover, \(\tau_{ij} \neq \tau_{ji}\) and \(\tau_{ii}=1\).
References
- Abrams, D.S. and Prausnitz, J.M. (1975), Statistical thermodynamics of liquid mixtures: A new expression for the excess Gibbs energy of partly or completely miscible systems. AIChE J., 21: 116-128.
PARAMETER | DESCRIPTION |
---|---|
N
|
Number of components.
TYPE:
|
q
|
Relative surface areas of all components.
TYPE:
|
r
|
Relative volumes of all components.
TYPE:
|
a
|
Matrix of interaction parameters, by default 0.
TYPE:
|
b
|
Matrix of interaction parameters, by default 0. Unit = K.
TYPE:
|
c
|
Matrix of interaction parameters, by default 0.
TYPE:
|
d
|
Matrix of interaction parameters, by default 0.
TYPE:
|
name
|
Name.
TYPE:
|
See also
UNIQUAC_gamma
: related activity coefficient method.
Source code in src/polykin/thermo/acm/uniquac.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
|
Dgmix ¤
Dgmix(T: float, x: FloatVector) -> float
Molar Gibbs energy of mixing, \(\Delta g_{mix}\).
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
x
|
Mole fractions of all components. Unit = mol/mol.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
Molar Gibbs energy of mixing. Unit = J/mol. |
Source code in src/polykin/thermo/acm/base.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
Dhmix ¤
Dhmix(T: float, x: FloatVector) -> float
Molar enthalpy of mixing, \(\Delta h_{mix}\).
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
x
|
Mole fractions of all components. Unit = mol/mol.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
Molar enthalpy of mixing. Unit = J/mol. |
Source code in src/polykin/thermo/acm/base.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
|
Dsmix ¤
Dsmix(T: float, x: FloatVector) -> float
Molar entropy of mixing, \(\Delta s_{mix}\).
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
x
|
Mole fractions of all components. Unit = mol/mol.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
Molar entropy of mixing. Unit = J/(mol·K). |
Source code in src/polykin/thermo/acm/base.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
activity ¤
activity(T: float, x: FloatVector) -> FloatVector
Activities, \(a_i\).
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
x
|
Mole fractions of all components. Unit = mol/mol.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
FloatVector(N)
|
Activities of all components. |
Source code in src/polykin/thermo/acm/base.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
|
gE ¤
gE(T: float, x: FloatVector) -> float
Molar excess Gibbs energy, \(g^{E}\).
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
x
|
Mole fractions of all components. Unit = mol/mol.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
Molar excess Gibbs energy. Unit = J/mol. |
Source code in src/polykin/thermo/acm/uniquac.py
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
|
gamma ¤
gamma(T: float, x: FloatVector) -> FloatVector
Activity coefficients based on mole fraction, \(\gamma_i\).
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
x
|
Mole fractions of all components. Unit = mol/mol.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
FloatVector(N)
|
Activity coefficients of all components. |
Source code in src/polykin/thermo/acm/uniquac.py
178 179 180 181 182 |
|
hE ¤
hE(T: float, x: FloatVector) -> float
Molar excess enthalpy, \(h^{E}\).
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
x
|
Mole fractions of all components. Unit = mol/mol.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
Molar excess enthalpy. Unit = J/mol. |
Source code in src/polykin/thermo/acm/base.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
|
sE ¤
sE(T: float, x: FloatVector) -> float
Molar excess entropy, \(s^{E}\).
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
x
|
Mole fractions of all components. Unit = mol/mol.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
float
|
Molar excess entropy. Unit = J/(mol·K). |
Source code in src/polykin/thermo/acm/base.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
tau
cached
¤
tau(T: float) -> FloatSquareMatrix
Compute the matrix of interaction parameters.
PARAMETER | DESCRIPTION |
---|---|
T
|
Temperature. Unit = K.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
FloatSquareMatrix(N, N)
|
Interaction parameters. |
Source code in src/polykin/thermo/acm/uniquac.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
|