polykin.thermo.acm¤
ScatchardHildebrand ¤
Scatchard-Hildebrand multicomponent activity coefficient model.
This model is based on the following molar excess Gibbs energy expression:
where \(x_i\) are the mole fractions, \(\delta_{i}\) are the solubility parameters, and \(v_i\) are the molar volumes. Moreover, \(\phi_i\) are the volume fractions defined as:
and \(\bar{\delta}\) is the average solubility parameter:
Note
The solubility parameters and the molar volumes can be expressed in any length units, as long as they are consistent with each other.
References
- Prausnitz, J. M.; Lichtenthaler, R. N.; de Azevedo, E. G. Molecular Thermodynamics of Fluid-Phase Equilibria, 3rd ed.; Prentice Hall, 1999, p. 325.
| PARAMETER | DESCRIPTION |
|---|---|
N
|
Number of components.
TYPE:
|
delta
|
Solubility parameters of all components [(J/L³)^(1/2)].
TYPE:
|
v
|
Molar volumes of all components [L³/mol].
TYPE:
|
name
|
Name of the model instance.
TYPE:
|
See Also
ScatchardHildebrand_gamma: Related activity coefficient method.
Source code in src/polykin/thermo/acm/scatchard.py
17 18 19 20 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 | |
Dgmix ¤
Dgmix(T: float, x: FloatVector) -> float
Calculate the molar Gibbs energy of mixing.
| PARAMETER | DESCRIPTION |
|---|---|
T
|
Temperature [K].
TYPE:
|
x
|
Mole fractions of all components [mol/mol].
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Molar Gibbs energy of mixing [J/mol]. |
Source code in src/polykin/thermo/acm/base.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
Dhmix ¤
Dhmix(T: float, x: FloatVector) -> float
Calculate the molar enthalpy of mixing.
| PARAMETER | DESCRIPTION |
|---|---|
T
|
Temperature [K].
TYPE:
|
x
|
Mole fractions of all components [mol/mol].
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Molar enthalpy of mixing [J/mol]. |
Source code in src/polykin/thermo/acm/base.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | |
Dsmix ¤
Dsmix(T: float, x: FloatVector) -> float
Calculate the molar entropy of mixing.
| PARAMETER | DESCRIPTION |
|---|---|
T
|
Temperature [K].
TYPE:
|
x
|
Mole fractions of all components [mol/mol].
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Molar entropy of mixing [J/(mol·K)]. |
Source code in src/polykin/thermo/acm/base.py
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |
activity ¤
activity(T: float, x: FloatVector) -> FloatVector
Calculate the activities.
| PARAMETER | DESCRIPTION |
|---|---|
T
|
Temperature [K].
TYPE:
|
x
|
Mole fractions of all components [mol/mol].
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
FloatVector(N)
|
Activities of all components. |
Source code in src/polykin/thermo/acm/base.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | |
gE ¤
gE(T: float, x: FloatVector) -> float
Calculate the molar excess Gibbs energy.
| PARAMETER | DESCRIPTION |
|---|---|
T
|
Temperature [K].
TYPE:
|
x
|
Mole fractions of all components [mol/mol].
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Molar excess Gibbs energy [J/mol]. |
Source code in src/polykin/thermo/acm/scatchard.py
82 83 84 85 86 87 88 89 90 91 92 93 | |
gamma ¤
gamma(T: float, x: FloatVector) -> FloatVector
Calculate the activity coefficients based on mole fraction.
| PARAMETER | DESCRIPTION |
|---|---|
T
|
Temperature [K].
TYPE:
|
x
|
Mole fractions of all components [mol/mol].
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
FloatVector(N)
|
Activity coefficients of all components. |
Source code in src/polykin/thermo/acm/scatchard.py
95 96 97 | |
hE ¤
hE(T: float, x: FloatVector) -> float
Calculate the molar excess enthalpy.
| PARAMETER | DESCRIPTION |
|---|---|
T
|
Temperature [K].
TYPE:
|
x
|
Mole fractions of all components [mol/mol].
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Molar excess enthalpy [J/mol]. |
Source code in src/polykin/thermo/acm/base.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | |
sE ¤
sE(T: float, x: FloatVector) -> float
Calculate the molar excess entropy.
| PARAMETER | DESCRIPTION |
|---|---|
T
|
Temperature [K].
TYPE:
|
x
|
Mole fractions of all components [mol/mol].
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Molar excess entropy [J/(mol·K)]. |
Source code in src/polykin/thermo/acm/base.py
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |