@@ -79,6 +79,13 @@ def build_REDstack():
79
79
mutable = True ,
80
80
)
81
81
82
+ m .temperature_coeff = pyo .Param (
83
+ doc = 'Temperature correction factor [-] of the solution conductivity' ,
84
+ default = 0.02 ,
85
+ initialize = 0.02 ,
86
+ ) # Mehdizadeh, et al. (2019) Membranes, 9(6), 73. https://doi.org/10.3390/membranes9060073
87
+ # Linear temperature dependence of the solution conductivity. The temperature coefficient of the solution conductivity is 0.02 K-1.
88
+
82
89
m .pump_eff = pyo .Param (doc = 'Pump efficiency [-]' , default = 0.75 , initialize = 0.75 )
83
90
84
91
# =============================================================================
@@ -188,6 +195,7 @@ def iems_permsel_avg(m):
188
195
m .vel_lb = pyo .Param (
189
196
m .SOL , doc = 'Min. linear crossflow velocity [cm s-1]' , initialize = 0.01
190
197
)
198
+
191
199
m .vel_init = pyo .Param (
192
200
m .SOL ,
193
201
doc = 'Min. linear crossflow velocity [cm s-1]' ,
@@ -710,6 +718,7 @@ def _ksol_b(m, x, sol):
710
718
"""
711
719
This function sets the bounds of the solution conductivity based on the feed concentration in the high and low concentration compartments.
712
720
The expression is derived from the linear regression of the experimental data.
721
+ Tristán et al. (2020) Desalination, 496, 114699. https://doi.org/10.1016/j.desal.2020.114699
713
722
714
723
Parameters
715
724
----------
@@ -773,10 +782,11 @@ def _ksol(m, x, sol):
773
782
m .SOL ,
774
783
domain = pyo .NonNegativeReals ,
775
784
bounds = lambda _ , x , sol : (
776
- m .ksol [x , sol ].lb * (1 + 0.02 * (m .T - m .Tref )),
777
- m .ksol [x , sol ].ub * (1 + 0.02 * (m .T - m .Tref )),
785
+ m .ksol [x , sol ].lb * (1 + m . temperature_coeff * (m .T - m .Tref )),
786
+ m .ksol [x , sol ].ub * (1 + m . temperature_coeff * (m .T - m .Tref )),
778
787
),
779
- initialize = lambda _ , x , sol : m .ksol [x , sol ] * (1 + 0.02 * (m .T - m .Tref )),
788
+ initialize = lambda _ , x , sol : m .ksol [x , sol ]
789
+ * (1 + m .temperature_coeff * (m .T - m .Tref )),
780
790
doc = "Temperature corrected sol. conductivity per unit length [S m-1]" ,
781
791
)
782
792
@@ -1227,7 +1237,9 @@ def _sol_cond_T(m, x, sol):
1227
1237
pyomo.Constraint
1228
1238
The temperature corrected solution conductivity per unit length constraint
1229
1239
"""
1230
- return m .ksol_T [x , sol ] == m .ksol [x , sol ] * (1 + 0.02 * (m .T - m .Tref ))
1240
+ return m .ksol_T [x , sol ] == m .ksol [x , sol ] * (
1241
+ 1 + m .temperature_coeff * (m .T - m .Tref )
1242
+ )
1231
1243
1232
1244
@m .Constraint (
1233
1245
m .length_domain ,
0 commit comments