Mixing Rules (Cubic EoS)
Cubic EoS mixing rules implementations module.
- class QMR(kij, lij)[source]
Bases:
CubicMixRule
Quadratic mixing rule.
- Parameters:
kij (array_like) – kij binary interaction parameters matrix
lij (array_like) – lij binary interaction parameters matrix
- kij
kij binary interaction parameters matrix
- Type:
array_like
- lij
lij binary interaction parameters matrix
- Type:
array_like
Example
from yaeos import QMR, SoaveRedlichKwong kij = [[0.0, 0.1], [0.1, 0.0]] lij = [[0.0, 0.02], [0.02, 0.0]] mixrule = QMR(kij, lij) # Quadratic mixing rule instance tc = [305.32, 469.7] # critical temperature [K] pc = [48.72, 33.7] # critical pressure [bar] w = [0.0995, 0.152] # acentric factor model = SoaveRedlichKwong(tc, pc, w, mixrule)
- class MHV(ge: GeModel, q: float, lij=None)[source]
Bases:
CubicMixRule
Modified Huron-Vidal mixing rule.
- Parameters:
ge (GeModel) – Excess Gibbs energy model
q (float) –
- q parameter. Use:
q = -0.594 for Soave-Redlich-Kwong q = -0.53 for Peng-Robinson q = -0.85 for Van der Waals
lij (array_like, optional) – lij binary interaction parameters matrix, by default None
- q
q parameter
- Type:
float
- lij
lij binary interaction parameters matrix
- Type:
array_like
Example
from yaeos import MHV, SoaveRedlichKwong, NRTL tc = [647.14, 513.92] # critical temperature [K] pc = [220.64, 61.48] # critical pressure [bar] w = [0.344, 0.649] # acentric factor a = [[0, 3.458], [-0.801, 0]] # NRTL aij parameters b = [[0, -586.1], [246.2, 0]] # NRTL bij parameters c = [[0, 0.3], [0.3, 0]] # NRTL cij parameters ge_model = NRTL(a, b, c) mixrule = MHV(ge_model, q=-0.53) model_mhv = PengRobinson76(tc, pc, w, mixrule)
- class HV(ge: GeModel)[source]
Bases:
CubicMixRule
Huron-Vidal mixing rule.
- Parameters:
ge (GeModel) – Excess Gibbs energy model
Example
from yaeos import HV, SoaveRedlichKwong, NRTL tc = [647.14, 513.92] # critical temperature [K] pc = [220.64, 61.48] # critical pressure [bar] w = [0.344, 0.649] # acentric factor a = [[0, 3.458], [-0.801, 0]] # NRTL aij parameters b = [[0, -586.1], [246.2, 0]] # NRTL bij parameters c = [[0, 0.3], [0.3, 0]] # NRTL cij parameters ge_model = NRTL(a, b, c) mixrule = HV(ge_model) model_hv = PengRobinson76(tc, pc, w, mixrule)