Multfluid mutant¶
These adapted multifluid models are used for fitting departure functions. The pure fluids remain fixed while you can adjust the mixture model, both the interaction parameters as well as the departure function terms
[1]:
import teqp, numpy as np
teqp.__version__
[1]:
'0.19.1'
[2]:
basemodel = teqp.build_multifluid_model(['Nitrogen','Ethane'], teqp.get_datapath())
s = {
"0": {
"1": {
"BIP": {
"betaT": 1.1,
"gammaT": 0.9,
"betaV": 1.05,
"gammaV": 1.3,
"Fij": 1.0
},
"departure":{
"type": "none"
}
}
}
}
mutant = teqp.build_multifluid_mutant(basemodel, s)
[3]:
%timeit teqp.build_multifluid_mutant(basemodel, s)
26.4 µs ± 2.53 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)
[4]:
mutant.get_Ar01(300, 3.0, np.array([0.5, 0.5]))
[4]:
-0.00017517184039893556