원시데이터 수집 시스템
선정목록으로

Developing and validating a dynamic model of water production by direct-contact membrane distillation

간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (18) VENT(방수통기 부품)

기본 정보

저자
  1. Emad Ali — Department of Chemical Engineering, King Saud University, Riyadh, Saudi Arabia
  2. Jamel Orfi — Department of Mechanical Engineering, King Saud University, Riyadh, Saudi Arabia
  3. Abdullah Najib — Department of Mechanical Engineering, King Saud University, Riyadh, Saudi Arabia
DOI
10.1371/journal.pone.0230207
저널
PLoS ONE
발행년도
2020
발행기관
Public Library of Science
피인용수
6
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0230207
토픽
Membrane Separation Technologies
OpenAlex ID
W3012653563

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(18) VENT(방수통기 부품)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
membrane distillation, direct-contact membrane distillation, mass flux, dynamic model, porosity
판단 근거
본 논문은 막 증류(Membrane Distillation) 공정의 질량 전달 및 열 전달에 대한 동적 모델링을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지용 중공사막(5) 및 방수통기용 멤브레인(18) 연구에 필요한 막 투과 및 공정 제어 원리에 간접적으로 기여할 수 있습니다.
R&D 활용 포인트
중공사막 및 다공성 막의 투과 성능 예측 모델링과 공정 최적화 설계 시 물리적 모델링 기법으로 활용 가능합니다.
평가 입력
본문 76,266자 중 30,032자 발췌

초록

We consider the development and fitting of a dynamic model for desalinated water production by a direct-contact membrane distillation (DCMD) unit. Two types of dynamic-model structures, namely, lumped parameter and spatial, were evaluated. Both the models were validated using experimental response data generated by step testing the inlet hot stream temperature of a DCMD pilot plant. Both the model structures failed to follow the dynamic response adequately. However, a modification of the model by adding a heat loss term resulted in enhanced predictions for both model structures. The overall relative error in the model–plant mismatch was approximately 3%. This is reasonable considering the random uncertainties associated with the plant operation. This observation also improves our understanding of the importance of using better correlations for heat-transfer coefficients, to develop a more reliable and accurate predictive model for a wide range of operating conditions.

본문 76,266자

본문 펼치기
# PLOS ONE ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0230207&domain=pdf&date_stamp=2020-03-24)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0230207&domain=pdf&date_stamp=2020-03-24)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0230207&domain=pdf&date_stamp=2020-03-24)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0230207&domain=pdf&date_stamp=2020-03-24)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0230207&domain=pdf&date_stamp=2020-03-24)</u>~~ OPEN ACCESS Citation: Ali E, Orfi J, Najib A (2020) Developing and validating a dynamic model of water production by direct-contact membrane distillation. [PLoS ONE 15(3): e0230207. https://doi.org/](https://doi.org/10.1371/journal.pone.0230207) [10.1371/journal.pone.0230207](https://doi.org/10.1371/journal.pone.0230207) Editor: Zuwei Liao, UNILAB Research Center for Chemical Reaction Engineering, CHINA Received: November 7, 2019 Accepted: February 24, 2020 Published: March 24, 2020 Peer Review History: PLOS recognizes the benefits of transparency in the peer review process; therefore, we enable the publication of all of the content of peer review and author responses alongside final, published articles. The editorial history of this article is available here: [https://doi.org/10.1371/journal.pone.0230207](https://doi.org/10.1371/journal.pone.0230207) Copyright: © 2020 Ali et al. This is an open access [article distributed under the terms of the Creative](http://creativecommons.org/licenses/by/4.0/) [Commons Attribution License, which permits](http://creativecommons.org/licenses/by/4.0/) unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Data Availability Statement: All relevant data are within the manuscript and Supporting Information files. Funding: The research is funded by the Deanship of Scientific Research, King Saud University RESEARCH ARTICLE ## Developing and validating a dynamic model of water production by direct-contact membrane distillation [Emad AliID](http://orcid.org/0000-0003-0657-2379) <sup>1</sup> <sup>☯</sup> *, Jamel Orfi <sup>2</sup> <sup>☯</sup> , Abdullah Najib <sup>2</sup> <sup>☯</sup> 1 Department of Chemical Engineering, King Saud University, Riyadh, Saudi Arabia, 2 Department of Mechanical Engineering, King Saud University, Riyadh, Saudi Arabia ☯ These authors contributed equally to this work. - amkamal@ksu.edu.sa ### Abstract We consider the development and fitting of a dynamic model for desalinated water produc tion by a direct-contact membrane distillation (DCMD) unit. Two types of dynamic-model structures, namely, lumped parameter and spatial, were evaluated. Both the models were validated using experimental response data generated by step testing the inlet hot stream temperature of a DCMD pilot plant. Both the model structures failed to follow the dynamic response adequately. However, a modification of the model by adding a heat loss term resulted in enhanced predictions for both model structures. The overall relative error in the model–plant mismatch was approximately 3%. This is reasonable considering the random uncertainties associated with the plant operation. This observation also improves our under standing of the importance of using better correlations for heat-transfer coefficients, to develop a more reliable and accurate predictive model for a wide range of operating conditions. Introduction The shortage of potable water is a major problem persisting in several regions worldwide. The growth and development of the desalination industry are remarkable. In 2016, global desalination production attained approximately 85 × 10 <sup>6</sup> m <sup>3</sup> /day [1]. The conventional desalination technologies, namely, multi-stage flash, multi-effect evaporation, and reverse osmosis, are known for being energy intensive. Among the most innovative and potential desalination technologies, membrane distillation (MD) is gaining interest because of its advantages compared to conventional technologies. The direct-contact membrane distillation (DCMD) configuration, which is a widely employed MD configuration, is known for its attractive characteristics such as its requirement of low operating temperature and hydrostatic pressure. It can achieve approximately 100% rejection of salt ions. Moreover, its permeate quality is marginally affected by the feed concentration. Furthermore, it has a compact and flexible structure [2–5]. Notwithstanding the appealing features of the MD technology, its industrial commercialization is hindered by certain technical barriers and deficiencies, such as low recovery ratio; high specific [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 1 / 24 PLOS ONE Transient model for mass flux in membrane distillation through Research Group no (RG- VPP 091). The funder had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Competing interests: The authors have declared that no competing interests exist. energy requirements; and fouling and scaling, which eventually deteriorate the permeate flux and membrane pore wetting [2,6–8]. Therefore, several investigations were performed during the past years to enhance the feasibility of the MD technology as a commercial desalination technology [9–11]. For example, many researchers focused on improving the MD performance by performing reconfiguration or retrofitting such as incorporation of heat-recovery systems [10,12], recycling of the discharged brine to the inlet stream [13,14], and use of multistaging [10,15]. Integration of the MD technology with low-grade energy sources such as waste heat, solar, and geothermal energy has been addressed [16–18]. To address science and engineering issues that limit the development and commercialization of the MD technology, theoretical investigations concerning the design and optimization of the MD process have been performed [3,19–26]. These theoretical investigations, which modeled several physical principles integral to the MD process, are subject to the following limiting assumptions: - Unlike the studies on steady-state regime, those on transient conditions are very few [21,27]. - Heat and mass transfers are generally space independent (using lumped approach) or one dimensional [5,20]. Only a few works have been concerned with refined multidimensional aspects [28–30]. - The transfer coefficients are generally evaluated using inappropriately developed correlations, e.g., for impermeable interfaces and not for permeable ones [31,32]. A deeper perception of the heat- and mass-transfer phenomena should be addressed. - It has been reported that the uncertainty of membrane properties causes inadequate mass fluxes. Camacho et al. [33] reported that membrane properties such as porosity, thickness, and pore size may change because of the membrane compression caused by the hydrodynamic pressure associated with the circulating feed and permeate flow rates. As mentioned by Andrjesdo´ttir et al. [9], the simultaneous fitting of heat and mass data to a first-principles model can aid the understanding of the underlying physics of the MD process and, thereby, highlight the deficiencies of similar physical models. Irrespective of the effectiveness and complexity of these models, they are limited and cannot be utilized for applications such as automation and control implementation because they are stationary. In addition, these models cannot be integrated with time-varying energy resources such as solar and wind energies, which are characterized by intermittent energy outputs. Therefore, it is important to develop dynamic models that consider the fluctuation or abrupt variations in energy supply. Charfi et al. [28] undertook one of the earliest efforts to address the dynamics modeling of the MD processes. Hassan et al. [34] developed a dynamic, spatial finite-difference model to investigate the transient performance of a vacuum MD when hot feed parameters such as mass-flow rate, temperature, and concentration distributions undergo variations in steps. Recently, Eliewi et al. and Karam et al. [21,27] proposed DCMD-based dynamic models that consider heat and mass variations both in one- and two-dimensional spaces. These spacedependent models are suitable for exploring the impact of hidden unmeasured parameters. However, for control applications and/or integrating the MD technology with fluctuating energy sources, the dynamics of the external inputs and outputs are important. Moreover, in the works of Eliewi et al. and Karam et al. [21,27], the dynamics of a single-process output, i.e., the permeate outlet temperature, is validated, whereas those for the brine outlet temperature is omitted. Furthermore, the validation is based on the ramp variations in the temperature. Furthermore, this type of dynamics is not common for the MD process, and common dynamic capturing should be based on step testing because it defines both the transient and stationary [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 2 / 24 PLOS ONE Transient model for mass flux in membrane distillation behaviors of the MD process. Recently, Ali [35] developed a dynamic model for the outlet cold and hot temperatures in a DCMD. The model is converted to a transfer function (TF) to analyze the dynamic characteristics of the process outputs. This study is a continuation of a previous work [35] by performing dynamic analysis and modeling of the DCMD process. Specifically, the dynamics of mass production is modeled, because it is the main product of the process. To the authors’ knowledge, no detailed derivation or validation of dynamic model of mass flux in DCMD has been published. All the published studies address the modeling of only the dynamics of the outlet temperatures of the MD process. Furthermore, a detailed derivation of the explicit formulation of the mass flux dynamics is presented. The generated model is based on first principles that include the internal physics of the MD process. The measured dynamic data of the mass accumulation in the DCMD plant for water desalination are analyzed and correlated to obtain a typical transient behavior. Standard reaction-curve methods [36] are utilized to infer the dynamic characteristics of the mass production response from the correlated transient responses. Moreover, the correlated transient behavior obtained is used to validate the theoretical dynamics model. The analysis here is limited to the DCMD module using a spiral-wound membrane made of polyethylene tetrafluoride. The analysis covers a wide range of operating conditions for the mass-flow rate and inlet hot temperature. Experimental setup description The development and validation of the model are based on the experimental data generated from an MD pilot plant. The pilot plant was developed by SolarSpring [37] and equipped with a DCMD module with an effective membrane-area of 10 m <sup>2</sup>, membrane thickness of 230 μm, channel length of 14 m, channel height of 0.7 m, pore diameter of 0.2 μm, and channel gap of 2 mm. The membrane porosity is 0.8, and the water-entry pressure is 4.1 bar. A schematic of the MD process is depicted in Fig 1. A data-acquisition system is employed for data logging and for regulating various instruments. An external electrical heater (H1) is used to heat the evaporator circuit, i.e., the membrane’s hot feed stream. The hot feed temperature is controlled effectively using a programmable logic controller. An external cooler (H2) is also incorporated to adjust the temperature of the MD inlet cold stream. The temperature of the inlet cold stream is regulated manually. Hence, the inlet cold temperature undergoes fluctuation and disruptions because of the fuzziness of manual control. The desalinated water is separated through an overflow, accumulated in the storage tank T3, and measured using an electronic balance. Further details of the experimental setup and procedure are available in previous works [32,35,38,39]. In the previous works, the experimental device was used to generate data to be used for calibrating a steady state MD model, conducting energy and exergy analysis, and validating a dynamic model of the MD outlet temperatures. In this work, the time-evolution measurement of the mass flux is used to validate the proposed dynamic model for mass production. Note that in all the experiments, the mass-flow rates both on the hot and cold side are maintained equal. This is because the experimental module does not allow for non-equal flow rates on the two sides, to avoid membrane sheet deformation. Mass-flux dynamic model The water distillate is the principal output of the process. The distillate production undergoes transient behavior during the startup or stepped variations in the process inputs such as feed temperature and/or feed-flow rate. Hence, we intend to develop a theoretical model that captures the dynamic behavior of mass production. We assume an absence of heat loss to the environment, as well as stable membrane properties such as thickness, tortuosity, porosity, and [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 3 / 24 PLOS ONE Transient model for mass flux in membrane distillation <u>Fig 1.</u> <u>Module test facility (flowsheet).</u> [https://doi.org/10.1371/journal.pone.0230207.g001](https://doi.org/10.1371/journal.pone.0230207.g001) pore size. In addition, we assume the total pressure drop across the membrane to be negligible. Furthermore, the physical properties of water such as density, heat capacity, thermal conductivity, viscosity, and heat-transfer coefficient are functions of temperature. The dynamic model for mass production of water in the lumped-parameter case is expressed by the following initial-value problem (IVP): ! _<u>dmw</u>_ _<u>dmw</u>_ _<u>CmA</u>_ ðb _hah_ - b _cbh_ Þ <sup><u>1</u></sup> _dt_ <sup>¼</sup> ð1 þ _Cm_ b _hchHv_ þ _Cm_ b _cccHv_ Þ 2 _dTh_ _<u>out</u>_ 2 sf f i f f i f f i f f _Th_ _<u>in</u>_ _Th_ _out_ _h_ _<u>out</u>_ þ ðb _hac_ - b _cbc_ Þ <sup><u>1</u></sup> _dt_ 2 2 sf f i f f i f f i f f _Tcin_ _Tcout_ _dTcout_ _dt_ ð1Þ _v_ r _Cp_ <sup>_<u>dThout</u>_</sup> - - - - _Th_ _in_ - _Trf_ - _mhout_ _Cp_ _Thout_ - _Trf_ - _hmA_ _Thm_ - _Tcm_ <sup>_<u>hout</u>_</sup> ¼ _mhinCp_ _Th_ _in_ - _Trf_ _dt_ - _Thm_ - _Tcm_ - _jwAHv_ ð2Þ _v_ r _Cp_ <sup>_dTcout_</sup> - - - - _Tcin_ - _Trf_ - _mcout_ _Cp_ _Tcout_ - _Trf_ þ _hmA_ _Thm_ - _Tcm_ <sup>_<u>cout</u>_</sup> ¼ _mcinCp_ _Tcin_ - _Trf_ _dt_ - _Thm_ - _Tcm_ þ _jwAHv_ ð3Þ The derivation of the mass production dynamic (Eq 1) and the definitions of the underlying parameters are provided in Appendix A. The thermal Eqs (2) and (3) are adopted from Karam et al. [27] and presented and discussed in another work [40]. The thermal equations are developed by applying the energy conservation law on the entire MD module (S1 Fig) both on the feed and permeate sides. In due course, the accumulation of energy within the hot channel becomes equal to the difference between the heat loss from the hot fluid as sensible heat and the heat transferred to the cold side. Within the cold side, the accumulation of energy is equal [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 4 / 24 PLOS ONE Transient model for mass flux in membrane distillation to the difference between the heat gained by the permeate fluid and the heat transferred from the hot side. The heat transfer between the two sides occurs through two mechanisms: conduction through the membrane material and latent heat of vaporization. The initial conditions for the IVP are that the mass production is zero, and the bulk temperature is equal to the room temperature. The reference temperature ( _T_ rf) is also considered to be equal to the room temperature. The IVP is solved simultaneously to obtain the time evolution of mass production. Although the above-mentioned dynamic model appears linear in its structure, nonlinearity arises from the membrane heat-transfer coefficient ( _h_ m), membrane coefficient ( _C_ m), membrane surface temperature ( _Thm;_ _Tcm_ Þ, and underlying parameters ( _a_ ’s, _b_ ’s, and β’s). These coefficients and parameters are implicitly functions of the bulk temperature, membrane interface temperatures, and mass flux. Hence, these variables are calculated using an iterative procedure assuming the pseudo-steady state specified in Appendix B (see Algorithm S1). Notably, the thermal behavior of the process is represented by the boundary temperatures, which are measured and therefore, verifiable. It is apparent from Eqs (1)–(3) that the dynamic of the mass production follows that of the outlet temperatures. Note that an equal inlet feed-flow rate ( _mhin_ ¼ _mcin_ Þ is used for the hot and cold sides, which is imposed by the experimental setup. For long membrane modules, the lumped-parameter model is limited because it uses a constant value for the temperature profile along the membrane length. A better representation of the process behavior can be achieved by using spatial model formulation. In this case, the process variables such as the bulk temperature and mass flux are permitted to vary over the membrane length. Hence, the dynamic model of the MD (Eqs (1)–(3)) can be written for each control element (S1 Fig) (denoted by subscript _i_ ) along the membrane length, using the lumped-capacitance method as follows: �� _<u>v</u>_ r _Cp_ <sup>_<u>dThi</u>_</sup> _dt_ - - - - <sup>_Thi_</sup> <sup>�</sup> <sup>1</sup> <sup>�</sup> <sup>_Trf_</sup> - _mhi_ _Cp_ _Thi_ - _Trf_ - _hmi_ D _xh_ _Thm;i_ - _Tcm;i_ _<u>v</u>_ _n_ <sup>_<u>hi</u>_</sup> _dt_ <sup>¼</sup> <sup>_mhi_</sup> <sup>�</sup> <sup>1</sup> <sup>_Cp_</sup> <sup>_Thi_</sup> <sup>�</sup> <sup>1</sup> <sup>�</sup> <sup>_Trf_</sup> - _Thm;i_ - _Tcm;i_ - _jwi_ D _xhHv_ ð4Þ �� _<u>v</u>_ r _Cp_ <sup>_dTci_</sup> _dt_ - - - - <sup>_Tci_</sup> <sup>þ1</sup> <sup>�</sup> <sup>_Trf_</sup> - _mciCp_ _Tci_ - _Trf_ þ _hmi_ D _xh_ _Thm;i_ - _Tcm;i_ _<u>v</u>_ _n_ <sup>_<u>ci</u>_</sup> _dt_ <sup>¼</sup> <sup>_mci_</sup> <sup>þ1</sup> <sup>_Cp_</sup> <sup>_Tci_</sup> <sup>þ1</sup> <sup>�</sup> <sup>_Trf_</sup> - _Thm;i_ - _Tcm;i_ þ _jwi_ D _xhHv_ ð5Þ _dmwi_ _dmwi_ _Cmi_ _A_ ¼ b _hi_ _ahi_ - b _ci_ _bhi_ _dt_ ð1 þ _Cmi_ b _hichi_ _Hvi_ þ _Cmi_ b _cicci_ _Hvi_ Þ - - - _dThi_ - - _dTci_ b _hi_ _ahi_ - b _ci_ _bhi_ _dt_ <sup>þ</sup> b _hiaci_ - b _ci_ _bci_ ð6Þ - - _dThi_ b _hi_ _ahi_ - b _ci_ _bhi_ _dt_ <sup>þ</sup> b _hiaci_ - b _ci_ _bci_ - - _dTci_ b _hiaci_ - b _ci_ _bci_ _dt_ _i_ = 1, ���, _n_ _for_ _i_ ¼ 1 ! _Thi_ - 1 - _Thin_ ; _Tci_ - _Tcout_ _for_ _i_ ¼ _n_ ! _Thi_ - _Thout_ ; _Tci_ þ1 - _Tcin_ The above-mentioned equations are written repeatedly starting from the time when the hot stream is fed until the time that the cold stream is fed. At the boundary of the module, the specified terminal values ( _Thin;_ _Tcin_ ) are used such that the degree of freedom is zero. The size of the system of ordinary differential equations (ODEs) depends on the number of divisions of the module length. Note that the total distillate production is the average of the mass production of each control volume. The above Eqs (4) and (5) are originally partial differential equations (PDEs) with advective-conduction terms in one dimension, which is the axial direction (direction of the flow). In this case, the advective-conduction terms are being upwind discretized, whereby the PDEs are reduced to a system of IVPs. The initial values of the state variables are equal to those mentioned before. [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 5 / 24 PLOS ONE Transient model for mass flux in membrane distillation Fig 2. Time evolution of mass production at _<u>mh</u>_ _<u>in</u>_ ¼ _<u>mc</u>_ _<u>in</u>_ ¼ <u>50</u> <u>kg</u> _=_ <u>h.</u> [https://doi.org/10.1371/journal.pone.0230207.g002](https://doi.org/10.1371/journal.pone.0230207.g002) Results and discussion The transient behavior of the accumulated mass of purified water for the selected operating conditions is depicted in Figs 2 and 3. The results for flow rates of 50 and 300 L/h are shown in the figure, but those of 100 and 200 L/h are not shown. Moreover, the trends of the responses (specified and missing) are similar albeit with different extents. The inlet cold stream temperature is maintained at 25 ˚C, and the inlet water salinity at 0.5% for all the experiments. The water mass is represented by a straight line because it is the measured mass of water in the Fig 3. Time evolution of mass production at _<u>mh</u>_ _<u>in</u>_ ¼ _<u>mc</u>_ _<u>in</u>_ ¼ <u>300</u> <u>kg</u> _=_ <u>h.</u> [https://doi.org/10.1371/journal.pone.0230207.g003](https://doi.org/10.1371/journal.pone.0230207.g003) [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 6 / 24 PLOS ONE Transient model for mass flux in membrane distillation collection tank at each sampling time. The error bars in the figures denote the uncertainty in the accumulated mass. The uncertainty is estimated as the standard deviation of several experimental results under identical operating conditions. Note that the error bars are placed on specific samples because their inclusion at each sampling time overfills the figure, resulting in degraded visibility. The sampling time is 10 s. The accumulated mass was transformed into the production rate and is depicted in these figures by the dotted curve. The production rate was obtained by dividing the accumulated mass by the corresponding time. The production rate is a better representation of distillate production because it clearly reveals the dynamic response. It also assists in the evaluation of the steady-state production rate. However, for certain specific operating conditions, the production rate does not attain a completely steady state. This is attributed to the fact that the experiment is terminated prematurely. The reason for the premature termination is the limited capacity of the collection tank (T3). The tank can accumulate a maximum of 25 kg of water. Beyond this, it must be emptied for sustaining continuous operation. This interruption disrupts the calculation of the mass flux over a long period. Therefore, to estimate the steady-state production rate, the latter must be extrapolated for a prolonged time. To achieve this, the measured water mass is fitted to a correlation with time. The mass accumulation at each operating condition is fitted as a straight line. The correlated mass accumulation is demonstrated using dashed lines in Figs 2 and 3. Note that the correlated collected mass is unique for each specific operating condition. That is, the collected mass for an operating condition cannot be extended for another operating condition. The aim is to obtain the perfect match of the experimental results, as evidently illustrated. The resulting correlation is then extrapolated and transformed into the rate of change to obtain the monotone function depicted in Fig 4, for all the tested flow rates and feed temperatures. The extrapolation ensures that the mass-flux rate attains a steady state. Hence, the dynamic behavior can be analyzed conveniently, and the steady-state production rate can be estimated accurately. The process of correlation, extrapolation, and transformation into a rate of change in mass accumulation is a crucial step in this analysis. The generated asymptotic rate of mass production facilitates the dynamic analysis aimed at in this study, rather than <u>Fig 4.</u> <u>Extrapolated response of mass production by using model correlation.</u> [https://doi.org/10.1371/journal.pone.0230207.g004](https://doi.org/10.1371/journal.pone.0230207.g004) [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 7 / 24 PLOS ONE Transient model for mass flux in membrane distillation integrating mass accumulation. First, the generated monotone response of the mass production can be used to determine the dynamic characteristics by using the standard reactioncurve method. Second, the generated monotone time response of the mass production can be used to validate the theoretical model given by Eqs (1)–(6). It should be noted that the dynamic model in Eqs (1–6) generates a mass production rate that exhibits an asymptotic response unlike the measured mass production, which is presented as mass accumulation. It is apparent from Fig 4 that at each feed-flow rate, the production capacity increases proportional to the feed temperature. This observation is anticipated and reported in earlier works [7,9,41–44] because the increment in the feed temperature escalates the sensible heat of the hot stream, which results in improved heat transfer from the hot bulk side to the membrane surface. Similarly, at any operating feed temperature, the corresponding mass production rate increases with the feed-flow rate. As the feed-flow rate increases, the turbulence on the membrane surface also increases. This phenomenon improves the heat- and mass-transfer mechanisms, resulting in higher production rates [7,9,11,41–44] It is apparent that the transient response of _mw_ in Fig 4 resembles the reaction curve of a typical first-order system in response to stepped variations. Therefore, the linear system theory can be used to determine the dynamic characteristics, i.e., time constant and static gain, of the mass production, mw. In this case, the dynamic characteristics of _mw_ in response to the stepped variations in _Thin_ are estimated. The estimated time constant for the reaction curves in Fig 4 is presented in Fig 5. The measured time constant varies notably with respect to the operating conditions, indicating the nonlinearity of the process. In general, the time constant can vary between 5 and 15 min. For the lowest value of the operating feed temperature, the time constant decreases linearly as the flow rate increases. This implies that the process response becomes faster as the flow rate increases. For higher feed temperatures, the time constant decreases as the flow rate increases up to 200 L/h. Thereafter, it increases with further increases in the flow rate. The deceleration of the process dynamic at higher flow rates, specifically at 300 L/h, is not related to the fundamental mass- and heat-transfer operation inside the membrane. This behavior is ascribed to the dynamics of the external heater (H1). The reactioncurve method requires the output response to the instantaneous stepped variations in the input. However, in our experiments, the stepped variations in _Thin_ exhibits a certain time lag induced by the capacitance of the external heater. This underlying dynamic is marginal at small flow rates. However, it increases substantially at high flow rates and temperatures [23]. This behavior is reflected by the response speed of _m_ w at high operating conditions. The static mass production gain at different operating conditions is extracted from the reaction curves in Fig 4 by using the reaction-curve method. The results of the extraction are Fig 5. Time constant for mass production in response to a stepped variation in _<u>Th</u>_ _<u>in</u>_ . [https://doi.org/10.1371/journal.pone.0230207.g005](https://doi.org/10.1371/journal.pone.0230207.g005) [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 8 / 24 PLOS ONE Transient model for mass flux in membrane distillation <u>Fig 6.</u> <u>Steady-state gain for mw at selected operating conditions.</u> [https://doi.org/10.1371/journal.pone.0230207.g006](https://doi.org/10.1371/journal.pone.0230207.g006) illustrated in Fig 6. These values are directly proportional to the feed-flow rate and feed temperature, as discussed previously. The static gain provides information on the effectiveness of the operating conditions. For the minimum flow rate, the static gain is almost invariant with the feed temperature. This indicates that increasing the feed temperature is ineffective for this case. Similarly, at the flow rate of 100 L/h, the static gain varies insignificantly. However, at higher flow rates, the favorable effect of the static gain on the operation is apparent. Apparently, the static gain and time constant vary considerably with operating conditions. Therefore, presentation of the mass production dynamics by a simple transfer function is not recommended. It is more effective to capture the mass production dynamics using the entire system of nonlinear ODEs, as discussed in the following section. Further, we seek to validate the dynamic model based on the first principles expressed as Eqs (1)–(6), using the experimental data. It is to be remembered that the theoretical model differs from the straight-line correlation used previously for extrapolating the experiment data. This model is universal in that it is applicable to different operating conditions. Moreover, it is comprehensive, i.e., it explicitly includes the process parameters and other design parameters. In addition, the resultant model is a standard ODE, which is typical for dynamic and control analysis and application. The ODE model is simulated by stepping _Thin_ while keeping _Tcin_ constant at 25 ˚C. The mass-flow rate is considered to be a stepwise constant, i.e., it remains constant while the IVP is solved. The IVP is solved using Euler’s method with a step size of 1 s. This step size was observed to be adequate for providing a stable numerical solution. In each step of Euler’s method, the intermediate parameters are determined by following the algorithm provided in Appendix B. In Fig 7, the result of the simulation is depicted and is compared to the time response of the plant. The figure depicts the simulation of the lumped model and spatial model with _n_ = 10 for a wide range of operating conditions. The performance of the lumped and spatial models exhibits a notable model–plant mismatch, particularly in terms of the static gain, except at the lowest flow rate and feed temperature (50 L/h, 50 ˚C). The mismatch increases notably with flow rate and to a certain extent, with feed temperature. Whereas the lumped and spatial models delivered almost similar performance at low operating flow rates, they exhibited divergent behaviors at high flow rates. It is noteworthy that the lumped model outperformed the spatial model in terms of the overall average error. Numerically, the overall relative error for the lumped model is less than that for the spatial model, as presented in Table 1. Note that for the lumped model, the geometric average bulk temperature is used in Algorithm S1. When terminal temperatures are used as approximations of the bulk temperature in the limped model, the performance deteriorates as the overall average error attains [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 9 / 24 PLOS ONE Transient model for mass flux in membrane distillation Fig 7. Mass production response for model and plant to stepped variation; solid: Plant, dashed: Lumped model, <u>dotted: Spatial model.</u> [https://doi.org/10.1371/journal.pone.0230207.g007](https://doi.org/10.1371/journal.pone.0230207.g007) 51%, as listed in Table 1. The relative error presented in Table 1 is computed using the following formula: X _nt_ _i_ ¼1 ! _<u>i</u>_ <sup>Þ �</sup> <sup>_<u>me</u>_</sup> _<u>w</u>_ <sup>ð</sup> <sup>_<u>t</u>_</sup> _<u>i</u>_ <sup>Þ</sup> _m_ <sup>_e_</sup> _w_ <sup>ð</sup> <sup>_t_</sup> _i_ <sup>Þ</sup> - 100 ð7Þ _T_ _Er_ ¼ X80 _T_ ¼50 _<u>m</u>_ <sup>_m_</sup> _<u>w</u>_ <sup>_m_</sup> _<u>w</u>_ <sup>ð</sup> <sup>_<u>t</u>_</sup> _<u>i</u>_ <sup>Þ �</sup> <sup>_<u>me</u>_</sup> _<u>w</u>_ <sup>_e_</sup> _w_ <sup>ð</sup> <sup>_t_</sup> _i_ <sup>Þ</sup> where _m_ <sup>_m_</sup> _w_ <sup>_m_</sup> _w_ <sup>_and_</sup> <sup>_m_</sup> _w_ <sup>_e_</sup> where _m_ <sup>_m_</sup> _w_ <sup>_and_</sup> <sup>_m_</sup> _w_ <sup>_e_</sup> <sup>denote the model response and plant response, respectively, for the mass</sup> production. _nt_ denotes the simulation time. _E_ r is computed for each flow rate, and the overall error is the mean value across all the flow rates. The inferiority of both the model structures can be attributed to the omission of the heat losses to the surrounding and to modeling error. Heat loss to the surroundings is reported by other works [38,44]. In general, heat losses increase with feed temperature (as manifested by the marginally increasing mismatch in Fig 7) because the difference between the module and ambient temperatures also increases. However, the increment in heat loss/modeling error with flow rate is unclear. Nevertheless, we can refer to the nonlinearity of the process observed in [32,38]. As the flow rate increases, the heat-transfer coefficients enhance the heat transfer, resulting in a higher temperature at the permeate bulk side. As the flow rate continues to increase, the heat transfer becomes asymptotic because the driving force (temperature difference between the bulk hot side and bulk cold side) decreases. Simultaneously, the temperature difference at the membrane interface increases, resulting in improved mass flux. This behavior is reflected on both the model performances when a flow rate of 200 L/h is implemented. Unlike the other cases, the model-plane discrepancy decreases with feed temperature for the Table 1. Percentage relative error of model–plant mismatch. _m_ f <u>Without tuning</u> <u>With tuning</u> <u>Without tuning and using terminal temperature</u> <u>Lumped</u> <u>Spatial</u> <u>Lumped</u> <u>Spatial</u> <u>Lumped</u> <u>50 L/h</u> <u>7.78</u> <u>14.00</u> <u>3.08</u> <u>3.04</u> <u>49.08</u> <u>100 L/h</u> <u>10.01</u> <u>15.97</u> <u>3.78</u> <u>2.90</u> <u>46.46</u> <u>200 L/h</u> <u>9.31</u> <u>18.92</u> <u>3.29</u> <u>3.54</u> <u>53.19</u> <u>300 L/h</u> <u>16.99</u> <u>25.19</u> <u>2.71</u> <u>3.51</u> <u>56.51</u> <u>Overall</u> <u>11.02</u> <u>18.52</u> <u>3.22</u> <u>3.25</u> <u>51.31</u> [https://doi.org/10.1371/journal.pone.0230207.t001](https://doi.org/10.1371/journal.pone.0230207.t001) [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 10 / 24 PLOS ONE Transient model for mass flux in membrane distillation Table 2. Tuning parameter for adjusting heat loss (flos). <u>50 L/h</u> <u>100 L/h</u> <u>200 L/h</u> <u>300 L/h</u> _<u>n</u>_ <u>= 10</u> <u>0.15</u> <u>0.2</u> <u>0.22</u> <u>0.26</u> _<u>n</u>_ <u>= 1</u> <u>0.077</u> <u>0.11</u> <u>0.1</u> <u>0.17</u> [https://doi.org/10.1371/journal.pone.0230207.t002](https://doi.org/10.1371/journal.pone.0230207.t002) case of 200 L/h. As a remedy, we propose the following model modification to incorporate the effect of heat losses to the surrounding: For lumped case: - _Thin_ - _Thout_ ð8Þ _v_ r _Cp_ <sup>_dThout_</sup> - - - - _Thin_ - _Trf_ - _mhout_ _Cp_ _Thout_ - _Trf_ - _hmA_ _Thm_ - _Tcm_ <sup>_<u>hout</u>_</sup> ¼ _mhinCp_ _Thin_ - _Trf_ _dt_ - - _Thm_ - _Tcm_ - _jwAHv_ - _flosmhinCp_ _Thin_ - _Thout_ For spatial case: - _Thi_ - 1 - _Thi_ ð9Þ �� _<u>v</u>_ r _Cp_ <sup>_<u>dThi</u>_</sup> _dt_ - - - - <sup>_Thi_</sup> <sup>�</sup> <sup>1</sup> <sup>�</sup> <sup>_Trf_</sup> - _mhi_ _Cp_ _Thi_ - _Trf_ - _hmi_ D _xh_ _Thm;i_ - _Tcm;i_ _<u>v</u>_ _n_ <sup>_<u>hi</u>_</sup> _dt_ <sup>¼</sup> <sup>_mhi_</sup> <sup>�</sup> <sup>1</sup> <sup>_Cp_</sup> <sup>_Thi_</sup> <sup>�</sup> <sup>1</sup> <sup>�</sup> <sup>_Trf_</sup> - - _Thm;i_ - _Tcm;i_ - _jwi_ D _xhHv_ - _flosmhi_ - 1 _Cp_ _Thi_ - 1 - _Thi_ Note that the heat loss term is incorporated in the thermal equation only for the hot channel. We assume that a portion of the sensible heat of the hot side is lost to the ambient. This implies that only a fraction of the hot sensible heat is available for heat transfer to the cold bulk side. The heat loss (correction term) becomes proportional to the operating temperature with the incorporation of the heat loss as a fraction of the sensible heat. This formulation mimics the modeling error observed in Fig 7, which increases with the operating temperature. To make the correction term increase with the flow rate, the fraction parameter ( _flos_ ) is set proportional to the flow rate, as presented in Table 2. The values of _flos_ in Table 2 are determined by trial and error and heuristics. Fig 8 depicts the model performance when the proposed tuning strategy is applied. It is highly evident that the model’s effectiveness for both the structures is enhanced substantially. Specifically, the overall relative error is reduced to approximately 3%, as presented in Table 1. It is equally evident that the spatial model is not more advantageous than the lumped one because both structures provided remarkable fitting of the plant data when they were effectively tuned. A few marginal discrepancies are present in the time response, which are discussed in the final paragraphs. Note that the correction term in Eqs (8) and (9) is maintained Fig 8. Mass production response of model and plant to stepped variation with tuned _U_ ; solid: Plant, dashed: <u>Lumped model, dotted: Spatial model, dash-and-dot: Independently tuned lumped model.</u> [https://doi.org/10.1371/journal.pone.0230207.g008](https://doi.org/10.1371/journal.pone.0230207.g008) [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 11 / 24 PLOS ONE Transient model for mass flux in membrane distillation as simple as possible to maintain the model simplicity and predictiveness. Although the correction term is denoted as heat losses, it appears to account for both the heat losses and other uncertain modeling errors. According to the values of _flos_ in Table 2, the lumped modeling errors are 7%–17% in the lumped model and 15%–26% in the spatial model. An enhancement of the lumped model that uses terminal temperature as bulk temperature is not presented here. Our investigation revealed that tuning such a model mandates an ambiguously large correction factor ( _flos_ ). To understand the effect of omitting the effect of heat losses on the model performance, the temperature difference at the membrane interface (D _Tm_ ¼ _Thm_ - _Tcm_ ) is plotted as shown in Fig 9. This result corresponds to the case where the correction term is not incorporated in Eq (9), i.e., it belongs to the results shown in Fig 7. The interface temperature difference is relatively high compared to that shown in Fig 10, which corresponds to the case where the correction term is employed in the model. This implies that the model predicted a Δ _Tm_ value that is larger than its true values, causing the mass production predicted by the model to inflate as shown in Fig 7. When the heat losses are omitted, the entire available sensible heat is transferred from the hot side to the cold side, whereby the permeate outlet temperature is increased. As a result, the bulk temperature difference as well as the associated interface temperature difference increase. When the heat losses term is involved, the model predicts smaller interface temperature differences, as illustrated in Fig 10. In this case, the model considers less amount of sensible heat to be transferred, resulting in a lower permeate outlet temperature and hence, smaller bulk and interface temperature differences. The smaller temperature differences generated better estimates of the mass fluxes, as depicted in Fig 8. It should be noted that the responses of Δ _Tm_ shown in Figs 9 and 10 are for the spatial model case, where the average value of Δ _Tm_ over the module length is plotted. A similar trend, albeit with a different extent, is obtained for the lumped model case. The results are not shown here because Figs 9 and 10 serve the purpose. Regardless of the model structure used, the trend of Δ _Tm_ response coincides <u>Fig 9.</u> <u>Average difference between hot and cold membrane interface temperatures omitting heat losses.</u> [https://doi.org/10.1371/journal.pone.0230207.g009](https://doi.org/10.1371/journal.pone.0230207.g009) [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 12 / 24 PLOS ONE Transient model for mass flux in membrane distillation <u>Fig 10.</u> <u>Average difference between hot and cold membrane interface temperatures considering heat losses.</u> [https://doi.org/10.1371/journal.pone.0230207.g010](https://doi.org/10.1371/journal.pone.0230207.g010) with that of the mass production shown in Fig 4, wherein it is proportional to the hot feed temperature and operating flow rate. The proposition of heat losses to the surroundings is reasonable and has been observed by others as mentioned earlier. However, the proportionality of the heat losses to the flow rate is unclear. Another method to improve the model performance through a better estimation of the heat transfer mechanism is also valid. Figs 7 and 9 show that the values of the mass flux predicted by the model are higher than the measured ones because of the erroneous estimation of the interface temperatures. The latter are estimated by Eqs (B.12) and (B.13). Hence, the erroneous values of the interface temperatures could be owing to the limitation of the model in adapting the values of _hp and hf_ or _U_ to variations in the operating conditions. Therefore, a better estimation of the interface temperatures and consequently the mass flux can be achieved by penalizing _U_ directly or using better Nusselt correlation. Investigation on this by the authors is underway. It should be reminded that Algorithm S1 is still applied in the numerical solution of the IVP (Eqs (1)–(6)) because the algorithm estimates internal parameters of the model, such as the membrane coefficient, _C_ m, membrane-surface temperatures, _Thm;_ _Tcm_, and local heattransfer coefficients, _hf_, _hp_ . These parameters are embedded in the IVP problem. Nevertheless, the origin of the model–plant mismatch exhibited in the model performance should be highlighted here. This versatile mismatch is the result of several factors such as uncertainty in process measurements, uncertainty owing to the modeling simplifications, limitation of the process design, and nonlinearity of the process. The model should not be constrained to match the experimental data because the measured data contain certain uncertainties. The plant experiments exhibited both measurement and random errors, as illustrated in Figs 2 and 3. The models were simulated using identical initial values, whereas the actual initial temperatures in the experiments varied across the tests by ±1–3˚ depending upon the room temperature. The stepped variations in _Thin_ in the real plant are not instantaneous and rather exhibit a dynamic behavior. _Tcin_ is not constant during the experiments. It exhibits randomness owing [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 13 / 24 PLOS ONE Transient model for mass flux in membrane distillation to the manual-control system. This issue is particularly discussed in a previously published work [32]. Conclusions In this study, a first-principles dynamic model for purified water production using the DCMD process is developed. Specifically, the structures of both the lumped-parameter model and spatial model were constructed. The accuracy of both the models in predicting the distillate rate was tested against experimental data generated by step testing a DCMD pilot plant. The accuracy of both the model structures was low, with the lumped-model structure being marginally superior to the spatial model. Although the underlying parameters of both the models were calculated at each sampling time by solving combined mass and energy balances, the models could not effectively track the mass production response over a wide range of operating conditions. An adjustment of the model by incorporating a heat loss term improved their performances: the overall relative error reduced to approximately 3%. Alternatively, the heat transfer correlation could be revised for enhanced model performance. Appendix A Considering the whole MD unit as a lumped-parameter system as shown in S1 Fig, the steady state mass production rate of water is expressed as follows [32]: _mw_ ¼ _Cm_ ð _P_ 1 � _P_ 2Þ _A_ ðA _:_ 1Þ P1 and P2 are the partial pressures of water vapor estimated at the membrane surface temperatures _T_ hm and _T_ cm, respectively. These can be calculated using the Antoine equation [6,7]: _<u>b</u>_ _P_ 1 ¼ expð _a_ - _Thm_ - _c_ <sup>~~Þ~~</sup> ðA _:_ 2Þ _<u>b</u>_ _P_ 2 ¼ expð _a_ - _Tcm_ - _c_ <sup>~~Þ~~</sup> ðA _:_ 3Þ The membrane interface temperatures can be related to the membrane bulk temperature when the convection and conduction heat transfer attain equilibrium [8]: _hm_ ð _Thm_ - _Tcm_ Þ þ _jwHv_ ¼ _hf_ ð _Thb_ - _Thm_ Þ ¼ _U_ ð _Thb_ - _Tcb_ Þ ðA _:_ 4Þ _hm_ ð _Thm_ - _Tcm_ Þ þ _jwHv_ ¼ _hp_ ð _Tcm_ - _Tcb_ Þ ¼ _U_ ð _Thb_ - _Tcb_ Þ ðA _:_ 5Þ Note that the equalities (A.4) and (A.5) hold at steady state. Because we are developing a dynamic model, we assume that they hold at a pseudo-steady state. Therefore, from the left side of the last two equations, i.e., by equating the membrane conduction plus latent heat terms to the convection from the bulk to the membrane surface, we obtain _hf_ ð _hm_ þ _hp_ Þ _<u>hmhp</u>_ _<u>hp</u>_ _Thm_ ¼ _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ <sup>_Thb_</sup> <sup>þ</sup> _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ <sup>_Tcb_</sup> <sup>�ð</sup> _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ <sup>~~Þ~~</sup> <sup>_jwHv_</sup> ðA _:_ 6Þ _<u>hf</u>_ _<u>hm</u>_ _<u>hp</u>_ ð _<u>hm</u>_ þ _<u>hf</u>_ Þ _<u>hf</u>_ _Tcm_ ¼ _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ <sup>_Thb_</sup> <sup>þ</sup> _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ <sup>_Tcb_</sup> <sup>þ</sup> _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ <sup>_jwHv_</sup> ðA _:_ 7Þ [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 14 / 24 PLOS ONE Transient model for mass flux in membrane distillation or in a compact form as _Thm_ ¼ _ah_ _Thb_ þ _ac_ _Tcb_ - _ch_ _jwHv_ ðA _:_ 6aÞ _Tcm_ ¼ _bhThb_ þ _bcTcb_ þ _cc_ _jwHv_ ðA _:_ 7aÞ where _<u>hf</u>_ ð _<u>hm</u>_ þ _<u>hp</u>_ Þ _ah_ ¼ ðA _:_ 8Þ _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ _<u>hphm</u>_ _ac_ ¼ ðA _:_ 9Þ _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ _<u>hf</u>_ _<u>hm</u>_ _bh_ ¼ ðA _:_ 10Þ _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ _hp_ ð _hm_ þ _hf_ Þ _bc_ ¼ ðA _:_ 11Þ _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ " # _<u>hp</u>_ _ch_ ¼ _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ " # _hf_ _cc_ ¼ _hphf_ þ _hm_ ð _hp_ þ _hf_ Þ ðA _:_ 12Þ ðA _:_ 13Þ _C_ m is the MD coefficient and is considered a weak function of temperature while deriving the dynamic model. Further details on computing _C_ m are provided in Appendix B. Similarly, the physical properties of water are a function of temperature. However, we omit their derivative with respect to temperature. Hence, the derivative of (A.1) with respect to time is _<u>dmw</u>_ _<u>dmw</u>_ _dt_ <sup>¼</sup> <sup>_CmA_</sup> _dt_ <sup>_<u>d</u>_</sup> _dt_ <sup>_<u>d</u>_</sup> ð <sup>_P_</sup> <sup>1 �</sup> <sup>_P_</sup> <sup>2</sup> Þ _:_ ðA _:_ 14Þ The above equation was presented by Hassan et al. [34]. However, they did not consider calculating the derivative of the vapor pressures. In the following, we present the derivation of the partial derivatives to obtain a complete expression for the time evolution of the transmembrane flux: ! _dThb_ _@Thm_ _dTcb_ _@Th_ _m_ _<u>dmw</u>_ _<u>@P</u>_ <u>2</u> _dt_ <sup>�</sup> _@Tcm_ _dTh_ _<u>b</u>_ _<u>@P</u>_ <u>2</u> _dt_ <sup>�</sup> _@Tpm_ _@Tcm_ _@Tcb_ _dTcb_ _dt_ _<u>@P</u>_ <u>2</u> _@Tcm_ _<u>dmw</u>_ _<u>@P</u>_ <u>1</u> _dt_ <sup>¼</sup> <sup>_CmA_</sup> _@Thm_ _@Th_ _<u>m</u>_ _@Th_ _b_ _dTdthb_ <sup>þ</sup> _@_ <sup>_<u>@</u>_</sup> _T_ <sup>_<u>P</u>_</sup> _h_ <sup><u>1</u></sup> _m_ _@Tcm_ _@Th_ _b_ _@Tcm_ _@mw_ _<u>dmw</u>_ _dt_ _@Th_ _<u>m</u>_ _@Tcb_ _dTdtcb_ <sup>þ</sup> _@_ <sup>_<u>@</u>_</sup> _T_ <sup>_<u>P</u>_</sup> _h_ <sup><u>1</u></sup> _m_ _@Thm_ _@mw_ ðA _:_ 14aÞ The partial derivatives in Eq (A.14) can be obtained as follows. The derivatives of the partial pressure given in Eqs (A.2) and (A.3), with respect to the membrane interface temperatures [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 15 / 24 PLOS ONE Transient model for mass flux in membrane distillation are ! _<u>@P</u>_ <u>1</u> _@Thm_ _<u>@P</u>_ <u>2</u> _@Tcm_ _<u>b</u>_ _<u>b</u>_ ¼ 2 <sup>exp</sup> <sup>_a_</sup> <sup>�</sup> ð _Thm_ - _c_ Þ _Thm_ - _c_ ! _<u>b</u>_ _<u>b</u>_ ¼ 2 <sup>exp</sup> <sup>_a_</sup> <sup>�</sup> ð _Tcm_ - _c_ Þ _Tcm_ - _c_ - b _h_ ðA _:_ 15Þ - b _c_ ðA _:_ 16Þ The derivatives of the membrane interface temperature given in Eqs (A.6a) and (A.7a), with respect to the bulk temperature and mass flux are _@Thm_ _@Thb_ ¼ _ah_ ; <sup>_@Thm_</sup> _@Tcb_ ¼ _ac_ ; <sup>_@Thm_</sup> _@mw_ _@Tcm_ _@Thb_ ¼ _bh_ ; <sup>_@Tcm_</sup> _@Tcb_ ¼ _bc_ ; <sup>_@Tcm_</sup> _@mw_ ¼ � _chHv=A_ ðA _:_ 17Þ ¼ _ccHv=A_ ðA _:_ 18Þ Substituting Eqs (A.15)–(A.18) into Eq (A.14) yields _<u>dmw</u>_ _<u>CmA</u>_ _dt_ <sup>¼</sup> ð1 þ _Cm_ b _hchHv_ þ _Cm_ b _cccHv_ Þ ðb _hah_ - b _cbh_ Þ <sup>_<u>dT</u>_</sup> _dt_ <sup>_<u>hb</u>_</sup> _<u>dmw</u>_ - ðb _hah_ - b _cbh_ Þ <sup>_<u>dT</u>_</sup> _dt_ <sup>_<u>hb</u>_</sup> <sup>þ</sup> ð <sup>b</sup> <sup>_hac_</sup> <sup>�</sup> <sup>b</sup> <sup>_cbc_</sup> Þ <sup>_<u>dTcb</u>_</sup> ðA _:_ 19Þ <sup>_<u>dThb</u>_</sup> ð Þ <sup>_<u>dTcb</u>_</sup> _dt_ <sup>þ</sup> <sup>b</sup> <sup>_hac_</sup> <sup>�</sup> <sup>b</sup> <sup>_cbc_</sup> _dt_ _dt_ The dynamic model for the mass production in Eq (A.19) depends explicitly on the dynamics of the bulk temperature in the hot and cold sides. The dynamic of the thermal behavior of the MD was developed by [32] and is as follows: r _Cp_ <sup>_dThout_</sup> - - - - _Thin_ - _Trf_ - _mhout_ _Cp_ _Thout_ - _Trf_ - _hmA_ _Thm_ - _Tcm_ <sup>_<u>hout</u>_</sup> ¼ _mhinCp_ _Thin_ - _Trf_ _dt_ - _Thm_ - _Tcm_ - _jwAHv_ ðA _:_ 20Þ _v_ r _Cp_ <sup>_dTcout_</sup> - - - - _Tcin_ - _Trf_ - _mcout_ _Cp_ _Tcout_ - _Trf_ þ _hmA_ _Thm_ - _Tcm_ <sup>_<u>cout</u>_</sup> ¼ _mcinCp_ _Tcin_ - _Trf_ _dt_ - _Thm_ - _Tcm_ þ _jwAHv_ ðA _:_ 21Þ The mass balance equations are as follows: _mhout_ ¼ _mhin_ - _mw_ ðA _:_ 22Þ _mcout_ ¼ _mcin_ þ _mw_ ðA _:_ 23Þ For the lumped-parameter model, Eq (A.19) requires the time-derivative of the bulk temperature, whereas the thermal Eqs (A.20) and (A.21) are defined in terms of the terminal temperature. Hence, to completely specify the IVPs, i.e., link the three state variables, we assume the following relationship between the bulk and boundary temperatures: ; _Tcb_ ¼ _Thb_ ¼ qf f i f f i f f i f f i f f i f f i f f i ffi _ThinThout_ qf f i f f i f f i f f i f f i f f i f f _TcinTcout_ ðA _:_ 24Þ [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 16 / 24 PLOS ONE Transient model for mass flux in membrane distillation The derivatives of the last equations with respect to time are _dThb_ _dThb_ _dt_ <sup>¼</sup> 2 <sup><u>1</u></sup> 2 sf f i f f i f f i f f _Thin_ _Thout_ _dThout_ ðA _:_ 25Þ _dt_ _dTcb_ _dTcb_ _dt_ <sup>¼</sup> 2 <sup><u>1</u></sup> 2 sf f i f f i f f i f f _Tcin_ _Tcout_ _dTcout_ ðA _:_ 26Þ _dt_ Inserting Eqs (A.25) and (A.26) into Eq (A.19) yields s f f i f f i f f i f f _Thin_ _Thout_ f f i f f i f f i f f _Tcin_ _Tcout_ ! s _<u>dmw</u>_ _<u>dmw</u>_ _<u>CmA</u>_ ðb _hah_ - b _cbh_ Þ <sup><u>1</u></sup> _dt_ <sup>¼</sup> ð1 þ _Cm_ b _hchHv_ þ _Cm_ b _cccHv_ Þ 2 _dThout_ 2 _<u>hout</u>_ þ ðb _hac_ - b _cbc_ Þ <sup><u>1</u></sup> _dt_ 2 2 _dTcout_ _dt_ ðA _:_ 27Þ Hence, Eqs (A.20)–(A.23) and (A.27) define the complete dynamic model for the mass production in the lumped form. In this study, the inlet flow rates for the cold and hot sides are equal, i.e., _mcin_ ¼ _mhin_ . The operation is limited by the experimental procedure. Note that the membrane surface temperatures, _Thm; Tcm_, internal heat transfer coefficients, _hf hp_, _hm_, and intermediate variables, _jw_, _Hv_ are obtained by solving the combined mass and heat transfer equations as described in Appendix B. These parameters are determined at each time-instant during the numerical solution of the IVP (Eqs A.20, A.21 and A.27). Extension of lumped dynamic model to one-dimensional formulation To develop the axial dynamic model, the thermal balance represented by Eqs (A.20) and (A.21) can be written for a specific control volume of the membrane, as shown in S1 Fig. Hence, by discretizing Eqs (A.20) and (A.21), the resulting system of IVPs is expressed as follows: �� _<u>v</u>_ r _Cp_ <sup>_dThi_</sup> _dt_ - - - - <sup>_Thi_</sup> <sup>�</sup> <sup>1</sup> <sup>�</sup> <sup>_Trf_</sup> - _mhiCp_ _Thi_ - _Trf_ - _hmi_ D _xh_ _Thm;i_ - _Tcm;i_ _<u>v</u>_ _n_ <sup>_<u>hi</u>_</sup> _dt_ <sup>¼</sup> <sup>_mhi_</sup> <sup>�</sup> <sup>1</sup> <sup>_Cp_</sup> <sup>_Thi_</sup> <sup>�</sup> <sup>1</sup> <sup>�</sup> <sup>_Trf_</sup> - _Thm;i_ - _Tcm;i_ - _jwi_ D _xhHv_ ðA _:_ 28Þ �� _<u>v</u>_ r _Cp_ <sup>_<u>dTci</u>_</sup> _dt_ - - - - <sup>_Tci_</sup> <sup>þ1</sup> <sup>�</sup> <sup>_Trf_</sup> - _mci_ _Cp_ _Tci_ - _Trf_ þ _hmi_ D _xh_ _Thm;i_ - _Tcm;i_ _<u>v</u>_ _n_ <sup>_<u>dTci</u>_</sup> _dt_ <sup>¼</sup> <sup>_mci_</sup> <sup>þ1</sup> <sup>_Cp_</sup> <sup>_Tci_</sup> <sup>þ1</sup> <sup>�</sup> <sup>_Trf_</sup> - _Thm;i_ - _Tcm;i_ þ _jwi_ D _xhHv_ ðA _:_ 29Þ _i_ = 1, ���, _n_ _for_ _i_ ¼ 1 ! _Thi_ - 1 - _Thin_ ; _Tci_ - _Tcout_ _for_ _i_ ¼ _n_ ! _Thi_ - _Thout_ ; _Tci_ þ1 - _Tcin_ The corresponding infinitesimal dynamic model for the mass production (A.19) can be expressed as follows: _dmwi_ _dmwi_ _Cmi_ _A_ ¼ b _hiahi_ - b _cibhi_ _dt_ ð1 þ _Cmi_ b _hi_ _chi_ _Hvi_ þ _Cmi_ b _ci_ _cciHvi_ Þ - - - _dThi_ - - _dTci_ b _hiahi_ - b _cibhi_ _dt_ <sup>þ</sup> b _hi_ _aci_ - b _ci_ _bci_ ðA _:_ 30Þ - - _dThi_ b _hiahi_ - b _cibhi_ _dt_ <sup>þ</sup> b _hi_ _aci_ - b _ci_ _bci_ - - _dTci_ b _hi_ _aci_ - b _ci_ _bci_ _dt_ [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 17 / 24 PLOS ONE Transient model for mass flux in membrane distillation where ! _<u>b</u>_ _<u>b</u>_ b _hi_ ¼ 2 <sup>exp</sup> <sup>_a_</sup> <sup>�</sup> ð _Thm;i_ - _c_ Þ _Thm;i_ - _c_ ! _<u>b</u>_ _<u>b</u>_ b _ci_ ¼ 2 <sup>exp</sup> <sup>_a_</sup> <sup>�</sup> ð _Tcm;i_ - _c_ Þ _Tcm;i_ - _c_ ðA _:_ 31Þ ðA _:_ 32Þ _hfi_ ð _hmi_ þ _hpi_ Þ _ahi_ ¼ ðA _:_ 33Þ _hpi_ _hfi_ þ _hmi_ ð _hpi_ þ _hfi_ Þ _hpi_ _hmi_ _aci_ ¼ ðA _:_ 34Þ _hpi_ _hfi_ þ _hmi_ ð _hpi_ þ _hfi_ Þ _hfi_ _hmi_ _bhi_ ¼ ðA _:_ 35Þ _hpi_ _hfi_ þ _hmi_ ð _hpi_ þ _hfi_ Þ _hpi_ ð _hmi_ þ _hfi_ Þ _bci_ ¼ ðA _:_ 36Þ _hpi_ _hfi_ þ _hmi_ ð _hpi_ þ _hfi_ Þ " # _hpi_ _chi_ ¼ _hpi_ _hfi_ þ _hmi_ ð _hpi_ þ _hfi_ Þ " # _<u>hfi</u>_ _cci_ ¼ _hpihfi_ þ _hmi_ ð _hpi_ þ _hfi_ Þ ðA _:_ 37Þ ðA _:_ 38Þ whereas _hf i;_ _hpi;_ _hmi_ _;_ _Cmi_ are calculated from (B.1, B.11, B.4–B.6) using the bulk temperature for each i <sup>th</sup> control volume. Appendix B The overall heat-transfer coefficient, membrane interface temperatures, and membrane coefficient are calculated by the following algorithm (S1). The following formulation is the conclusion of our previously conducted work on MD modeling and analysis [32,45–47]. 1. Given the bulk temperatures at both sides of the MD membrane, _Thb_ _;_ _Tcb_, the local heattransfer coefficients, _hf_, _hp_, are calculated from the Nusselt number as follows (Alkhudairi et al., 2012): _Nu_ ¼ 0 _:_ 298 _Re_ <sup>_n_</sup> <sup>1</sup> _Pr_ <sup>_n_</sup> <sup>2</sup> ðB _:_ 1Þ where Re denotes the Reynolds number, Pr denotes the Prandtl number, _n_ 1 = 0.646, and _n_ 2 = 0.316. For the lumped-parameter model, the inlet temperature of the hot stream ( _Thin_ ) is generally approximated as the bulk temperature of the hot stream, whereas the outlet temperature of the cold stream ( _Tcout_ ) is approximated as that of the cold stream. The use of boundary [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 18 / 24 PLOS ONE Transient model for mass flux in membrane distillation temperatures for the bulk results in higher values of mw in the steady state [32]. Alternatively, the geometric mean of the boundary temperatures (A.25) and (A.26) can be used. For the spatial model, the bulk temperatures are approximated as the bulk temperature of each control volume. 2. Set _Th_ <sup>0</sup> <sup>_m_</sup> <sup>¼</sup> <sup>_T_</sup> _hb_ <sup>_and_</sup> <sup>_T_</sup> _c_ <sup>0</sup> <sup>_m_</sup> <sup>¼</sup> <sup>_T_</sup> _cb_ 3. Calculate the vapor pressure at the membrane interface using the following [6]: <u>3841</u> - _P_ 1 ¼ expð23 _:_ 238 � ð Þ 1 � 0 _:_ 5 _Cs_ - 10 _Cs_ <sup>2</sup> ðB _:_ 2Þ _Thm_ - 45 <sup>~~Þ~~</sup> <sup>1 �</sup> <sup>_Cs_</sup> 3841 _P_ 2 ¼ expð23 _:_ 238 � _Tcm_ - 45 <sup>~~Þ~~</sup> ðB _:_ 3Þ 4. After determining the membrane characteristics and average membrane temperature, i.e., _T_ ¼ _Thm_ þ _Tcm_ _T_ ¼ _Thm_ þ2 _Tcm_ ~~,~~ the membrane coefficient _C_ m can be estimated using the correlation provided in [8] according to the designated mechanism as follows: - Knudson-flow mechanism, _k_ n _>_ 1: _m_ <sup>_k_</sup> <sup>¼</sup> <sup><u>2</u></sup> <sup>_<u>εr</u>_</sup> 3td _C_ <sup>_k_</sup> <sup><u>2</u></sup> <sup>_<u>εr</u>_</sup> <u>8</u> _<u>Mw</u>_ 3td p _RT_ - �1 _=_ 2 <u>8</u> _<u>Mw</u>_ ðB _:_ 4Þ - Molecular-diffusion mechanism, _k_ n _<_ 0.01: _m_ <sup>_D_</sup> <sup>¼</sup> <sup>_<u>ε</u>_</sup> td _<u>Mw</u>_ ðB _:_ 5Þ _RT_ _C_ <sup>_D_</sup> td _<u>PD</u>_ _Pa_ - Knudsen molecular-diffusion transition mechanism, 0.01 _< k_ n _<_ 1: " - �1 _=_ 2 #� 1 _<u>RT</u>_ _Mw_ <u>3</u> <u>td</u> _Cm_ <sup>_C_</sup> <sup>¼</sup> 2 _εr_ - �1 _=_ 2 <u>p</u> _<u>RT</u>_ þ <sup><u>td</u></sup> <u>p</u> _<u>RT</u>_ 8 _Mw_ _ε_ _<u>Pa</u>_ _PD_ ðB _:_ 6Þ where the Knudsen number is defined as _kn_ ¼ _d_ <sup><u>l</u></sup> <sup>~~.~~</sup> <sup>_λ_</sup> <sup>is the mean free path of water molecules</sup> and is expressed as [4]: _<u>kBT</u>_ l ¼ ~~pf~~ f 2p _Pde_ 2 ðB _:_ 7Þ 5. Calculate the latent heat of vaporization at the average membrane temperature as _Hv_ ð _T_ Þ ¼ 1850 _:_ 7 þ 2 _:_ 8273T � 1 _:_ 6 � 10 <sup>�</sup> <sup>3</sup> _T_ <sup>2</sup> ðB _:_ 8Þ [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 19 / 24 PLOS ONE Transient model for mass flux in membrane distillation 6. Calculate the mass flux as _jw_ ¼ _Cm_ ð _P_ 1 � _P_ 2Þ ðB _:_ 9Þ 7. Compute the overall heat-transfer coefficient using [8] " #� 1 1 _U_ ¼ _hf_ 1 þ _hm_ þ _<u>JHv</u>_ _Thm_ - _Tcm_ þ <sup>1</sup> _hp_ ðB _:_ 10Þ The membrane heat-transfer coefficient ( _h_ m) represents the heat resistance owing to conduction and can be estimated using [11] <sup>_<u>km</u>_</sup> d <sup>¼ ð1 �</sup> <sup>_ε_</sup> <sup>Þ</sup> d <sup>_ks_</sup> <sup>þ</sup> <sup>_εkg_</sup> _hm_ ¼ <sup>_<u>km</u>_</sup> d ðB _:_ 11Þ d <sup>_ks_</sup> <sup>þ</sup> <sup>_εkg_</sup> 8. At equilibrium, all the heat-transfer mechanisms within the MD are equivalent. Hence, Eqs (A.4) and (A.5) hold. The membrane interface temperatures are computed using the rightside equality of Eqs (A.6) and (A.7): _hf_ ð _Thb_ - _Thm_ Þ ¼ _U_ ð _Thb_ - _Tcb_ Þ ðB _:_ 12Þ _hp_ ð _Tcm_ - _Tcb_ Þ ¼ _U_ ð _Thb_ - _Tcb_ Þ ðB _:_ 13Þ 9. If _Thm_ ¼ _Th_ <sup>0</sup> _m_ <sup>_and_</sup> <sup>_T_</sup> _cm_ <sup>¼</sup> <sup>_T_</sup> _c_ <sup>0</sup> _c_ <sup>0</sup> _m_ <sup>_;_</sup> <sup>stop the iteration; otherwise, set</sup> <sup>_T_</sup> _h_ <sup>0</sup> _h_ <sup>0</sup> _m_ <sup>¼</sup> <sup>_T_</sup> _hm_ <sup>_and_</sup> <sup>_T_</sup> _c_ <sup>0</sup> If _Thm_ ¼ _Th_ <sup>0</sup> _m_ <sup>_and_</sup> <sup>_T_</sup> _cm_ <sup>¼</sup> <sup>_T_</sup> _c_ <sup>0</sup> _m_ <sup>_;_</sup> <sup>stop the iteration; otherwise, set</sup> <sup>_T_</sup> _h_ <sup>0</sup> _m_ <sup>¼</sup> <sup>_T_</sup> _hm_ <sup>_and_</sup> <sup>_T_</sup> _c_ <sup>0</sup> _m_ <sup>¼</sup> <sup>_T_</sup> _cm_ <sup>.</sup> Then, return to Step 3. The above-mentioned algorithm is terminated using a termination tolerance of 1 × 10 <sup>−7</sup> . Note that the algorithm is applicable to both the lumped and spatial versions of the model. Furthermore, for both models, the above-mentioned algorithm is solved assuming quasisteady-state conditions. Nomenclature _<u>A</u>_ <u>Cross-sectional area, m</u> <sup>2</sup> _<u>A</u>_ <u>Antione equation constant</u> _<u>b</u>_ <u>Antione equation constant</u> _<u>c</u>_ <u>Antione equation constant</u> _<u>Cm</u>_ <u>Permeability coefficient, kg/m</u> <sup>2</sup> <u>�s�Pa</u> _<u>Cm</u>_ <sup>_k_</sup> <u>Knudsen mass-flux coefficient, kg/m</u> <sup>2</sup> <u>�s�Pa</u> _<u>Cm</u>_ <sup>_d_</sup> <u>Molecular diffusion mass-flux coefficient, kg/m</u> <sup>2</sup> <u>�s�Pa</u> _<u>Cm</u>_ <sup>_C_</sup> <u>Transition mass-flux coefficient, kg/m</u> <sup>2</sup> <u>�s�Pa</u> _<u>C</u>_ <u>p</u> <u>Heat capacity, J/kg�K</u> _<u>Cs</u>_ <u>Salt concentration, %</u> _<u>Er</u>_ <u>Percentage relative error for model–plant mismatch</u> _<u>H</u>_ <u>v</u> <u>Latent heat of vaporization, J/kg</u> ( _Continued_ ) [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 20 / 24 PLOS ONE Transient model for mass flux in membrane distillation (Continued) _<u>h</u>_ <u>f,</u> _<u>h</u>_ <u>p,</u> _<u>h</u>_ <u>m</u> <u>Heat-transfer coefficients of the feed, permeate, and membrane, W/m</u> <sup>2</sup> <u>�K</u> _<u>H</u>_ <u>Channel height, m</u> _<u>Jw</u>_ <u>Mass flux, kg/m</u> <sup>2</sup> <u>�h</u> _<u>k1</u>_ <u>,</u> _<u>k2</u>_ <u>Static gains</u> _<u>kB</u>_ <u>Boltzmann constant</u> _<u>k</u>_ <u>m</u> <u>Membrane conductivity, W/m�K</u> _<u>ks</u>_ <u>Solid-phase thermal conductivity, W/m�K</u> _<u>kg</u>_ <u>Gas-phase thermal conductivity, W/m�K</u> _<u>kn</u>_ <u>Knudsen number</u> _<u>mhin</u>_ _;_ _<u>mhout</u>_ Inlet and outlet mass-feed rate for hot fluid, kg/h _<u>mcin</u>_ _;_ _<u>mcout</u>_ Inlet and outlet mass-feed rate for cold fluid, kg/h _<u>mhi</u>_ <u>Mass-flow rate for hot side for i</u> <sup>th</sup> <u>cell, kg/h</u> _<u>mci</u>_ <u>Mass-flow rate for cold side for i</u> <sup>th</sup> <u>cell, kg/h</u> _<u>m</u>_ <u>Distillate mass, kg</u> _<u>mw</u>_ <u>Distillate flow rate, kg/h</u> <u>Mw</u> <u>Molecular weight</u> _<u>Nu</u>_ <u>Nusselt number</u> _<u>N</u>_ <u>Number of membrane-length divisions, i.e., control elements</u> _<u>nt</u>_ <u>Length of simulation time</u> <u>P1, P2</u> <u>Vapor pressure at feed and permeate membrane surface, Pa</u> <u>Pa</u> <u>Entrapped-air pressure, Pa</u> <u>PD</u> <u>Membrane pressure multiplied by diffusivity, Pa�m</u> <sup>2</sup> <u>/s</u> <u>Pr</u> <u>Prandtl number</u> _<u>R</u>_ <u>Membrane pore size, m</u> <u>R</u> <u>Ideal gas constant,</u> <u>Re</u> <u>Reynold number</u> <u>S</u> <u>Laplace domain</u> _<u>T</u>_ <u>Time</u> _<u>T</u>_ <u>h,</u> _<u>T</u>_ <u>c</u> <u>Feed (hot) and permeate (cold) temperatures, K</u> _<u>Thb</u>_ <u>,</u> _<u>Tcb</u>_ <u>Feed (hot) and permeate (cold) bulk temperatures, K</u> _<u>T</u>_ <u>hm,</u> _<u>T</u>_ <u>cm</u> <u>Feed and permeate membrane temperatures, K</u> _<u>Thout</u>_ _;_ _<u>Thin</u>_ Outlet and inlet hot feed temperatures, ˚C _<u>Tcout</u>_ _;_ _<u>Tcin</u>_ Outlet and inlet cold stream temperatures, ˚C <u>TF</u> <u>Transfer function</u> _<u>U</u>_ <u>Overall heat-transfer coefficient, W/m</u> <sup>2</sup> <u>�K</u> _<u>V</u>_ <u>Channel volume, m</u> <sup>3</sup> _<u>Greek letters</u>_ <u>Τ</u> <u>Time constant, min, also membrane tortuosity</u> <u>ρ</u> <u>Water density, kg/m</u> <sup>3</sup> <u>δ</u> <u>Membrane thickness</u> <u>ε</u> <u>Porosity</u> <u>Λ</u> <u>Mean free path, m</u> Supporting information [S1 Fig. Schematic of MD process: (a) lumped module, (b) i](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0230207.s001) <sup>th</sup> control volume of MD module. (TIF) [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 21 / 24 PLOS ONE Transient model for mass flux in membrane distillation [S1 Data.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0230207.s002) (XLSX) [S2 Data.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0230207.s003) (XLSX) [S3 Data.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0230207.s004) (XLSX) [S4 Data.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0230207.s005) (XLSX) [S5 Data.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0230207.s006) (XLSX) Author Contributions Conceptualization: Emad Ali. Data curation: Abdullah Najib. Formal analysis: Emad Ali, Jamel Orfi. Investigation: Jamel Orfi, Abdullah Najib. Methodology: Emad Ali. Software: Emad Ali. Supervision: Jamel Orfi. Validation: Abdullah Najib. Visualization: Abdullah Najib. Writing – original draft: Emad Ali, Jamel Orfi. Writing – review & editing: Emad Ali, Jamel Orfi. References 1. Swaminathan J., Chung H.W., Warsinger D., Al-Marzooqi F., Arafat H.A., Lienhard J.H. Energy efficiency of permeate gap and novel conductive gap membrane distillation, J Membr Sci, 2016; 502:171– 178 2. Lee J-G., Kim W-S., Choi J-S., Ghaffour N., Kim Y-D. A novel multi-stage direct contact membrane dis[tillation module: Design, experimental and theoretical approaches, Water Res, 2016; 107:47–56 https://](https://doi.org/10.1016/j.watres.2016.10.059) [doi.org/10.1016/j.watres.2016.10.059 PMID: 27837732](https://doi.org/10.1016/j.watres.2016.10.059) 3. Lu Y., Chen J. Optimal design of multistage membrane distillation systems for water purification, Ind Eng Chem Res, 2011; 50:7345–7354. 4. Alkhudhiri A., Darwish N., Hilal N. Membrane distillation: A comprehensive review, Desalination, 2012; 287:2–18 5. Alklaibi A.M., Lior N. Membrane-distillation desalination: Status and potential, Desalination, 2005; 171:111–131 6. Khayet M. Desalination by Membrane Distillation. In: Encyclopedia of Life Support Science (EOLSS), Water and Wastewater Treatment Technologies 2010. 7. Lawal D.U., Khalifa A.E. Flux prediction in direct contact membrane distillation, Int J Mech Mater Manuf, 2014; 2(4):302–308. 8. Nakoa K., Date A., Akbarzadeh A. A research on water desalination using membrane distillation, Desalin Water Treat, 2014;1–13. [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 22 / 24 PLOS ONE Transient model for mass flux in membrane distillation 9. Andrjesdo´ttir O., Ong C.L., Nabavi M., Paredes S., Khalil A.S.G., Bruno M.,et al. An experimentally optimized model for heat and mass transfer in direct contact membrane distillation, Int J Heat Mass Transfer, 2013; 66:855–867 10. Drioli E., Ali A., Macedonio F. Membrane distillation: Recent developments and perspectives, Desalination, 2015; 356:56–84. 11. Winter D., Koschikowski J., Wieghaus M. Desalination using membrane distillation: Experimental studies on full-scale spiral wound modules, J Membr Sci, 2011; 375:104–112 12. Guan G., Yang X., Wang R., Fane A.G. Evaluation of heat utilization in membrane distillation desalination system integrated with heat recovery, Desalination, 2015; 366:80–93 13. Duong H.C., Cooper P., Nelemans B., Tzahi Y. C., Nghiem L.D. Optimising thermal efficiency of direct contact membrane distillation by brine recycling for small-scale seawater desalination, Desalination, 2015; 374:1–9. 14. Lokare O.R., Tavakkoli S., Khanna V., Vedic R.D. Importance of feed recirculation for the overall energy consumption in membrane distillation systems, Desalination, 2018; 428:250–254 15. Geng H., Wang J., Zhang C., Li P., Chang H. High water recovery of RO brine using multi-stage air gap membrane distillation, Desalination, 2015; 355:178–185. 16. Banat D., Jwaied N., Rommel M., Koschikowski J., Wieghaus M. Desalination by a “compact SMADES” autonomous solar-powered membrane distillation unit, Desalination, 2007; 217:29–37. 17. Chen T-C., Ho C-D. Immediate assisted solar direct contact membrane distillation in saline water desalination, J Membr Sci, 2010; 358: 122–130. 18. Lienhard J.H., Antar M.A., Smith A., Blanco J., Zaragoza G. Solar desalination, Annu Rev Heat Transfer, 2012; 15:4659. 19. Khalifa E. Water and air gap membrane distillation for water desalination—An experimental comparative study, Sep Purif Technol, 2015; 141:276–284. 20. Khayet M. Membranes and theoretical modeling of membrane distillation: A review, Adv Colloid Interfac Sci, 2011; 164:56–88. 21. Eleiwi F., Ghaffour N., Alsaadi A. S., Francis L., Laleg-Kirati T.M. Dynamic modeling and experimental validation for direct contact membrane distillation (DCMD) process, Desalination, 2016; 384:1–11 22. Francis L., Ghaffour N., Alsaadi A.A., Amy G.L. Material gap membrane distillation: A new design for water vapor flux enhancement, J Membr Sci, 2013; 448:240–247 23. Pangarkar B.L., Sane M.G., Guddad M. Reverse osmosis and membrane distillation for desalination of groundwater: A review, ISRN Mater Sci, 2011; 2011,1–9. 24. Qtaishat M., Matsuura T., Kruczek B., Khayet M. Heat and mass transfer analysis in direct contact membrane distillation, Desalination, 2008; 219(1–3):272–292 25. Swaminathan J., Chung H.W., Warsinger D.M., Lienhard J.H. Membrane distillation model based on heat exchanger theory and configuration comparison, Appl Energy, 2006; 184:491–505. 26. Chen T.-C., Ho C.-D., Yeh H.-M. Theoretical modeling and experimental analysis of direct contact membrane distillation, J Membr Sci, 2009; 330(1–2):279–287 27. Karam A.M., Alsaadi A.S., Ghaffour N., Laleg-Kirati T.M. Analysis of direct contact membrane distillation based on a lumped-parameter dynamic predictive model, Desalination 2017; 402:50–61 28. Charfi K., Khayet M., Safi M. Numerical simulation and experimental studies on heat and mass transfer using sweeping gas membrane distillation, Desalination, 2010; 259(13):84–96 29. Ghadiri M., Fakhri S., Shirazian S. Modeling and CFD simulation of water desalination using nanoporous membrane contactors, Ind Eng Chem Res, 2013; 52(9):3490–3498. 30. Yu H., Yang X., Wang R., Fane A.G. Analysis of heat and mass transfer by CFD for performance enhancement in direct contact membrane distillation, J Membr Sci, 2012; 405–406:38–47 31. De Pinho M.N., Semião V., Geraldes V. Integrated modeling of transport processes in fluid /nanofiltration membrane systems, J Membr Sci, 2002; 206:189–200. 32. Ali E., Orfi J. An experimentally calibrated model for heat and mass transfer in full-scale direct contact membrane distillation, Desalin Water Treat, 2018; 116:1–18. 33. Camacho L.M.L., Dume´e J., Zhang J., Li M., Duke J., Gomez S., et al. Advances in membrane distillation for water desalination and purification applications, Water, 2013; 5:94–196. 34. Hassan A.S., Fath H.E.S., Darwish M., Abdulrahim H. Dynamic performance of vacuum membrane distillation system, Desalin Water Treat, 2015;1–10. 35. Ali E. Dynamic analysis and modeling of direct contact membrane distillation for water desalination during startup using linear system theory, Chem Eng Process, 2019; 136:17–27. [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 23 / 24 PLOS ONE Transient model for mass flux in membrane distillation 36. Stephanopoulos G. Chemical Process Control, An Introduction to Theory and Practice, Prentice Hall, USA. 1984. 37. [[Online]. https://solarspring.de/en/technology/#membrandestillation](https://solarspring.de/en/technology/#membrandestillation) 38. Ali E., Orfi J., Najib A., Saleh J. Thermodynamic analysis of direct contact membrane distillation with/ without heat recovery based on experimental data, Desalination, 2019; 466:52–67. 39. Ali E., Orfi J., Najib A. Assessing the thermal efficiency of brackish water desalination by membrane distillation using exergy analysis, Arab J Sci Eng, 2018; 43(5):2413–2424. 40. Ali E., Orfi J., Najib A. Nonlinear dynamic modeling for a direct contact membrane distillation for water desalination, Chem Eng Sci, 2019 41. Lee J., Kim Y., Kim W., Francis L., Amy G., Ghaffour N. Performance modeling of direct contact membrane distillation (DCMD) seawater desalination process using a commercial composite membrane, J Membr Sci, 2015; 478:85–95. 42. Al-Aenzi A., Sharif A.Q., Sanduk M.I., Khan A.R. Experimental investigation of heat and mass transfer in tubular membrane distillation module for desalination, ISRN Chem Eng, 2012;1–8. 43. Fard K., Manawi Y.M., Rhadfi T., Mahmoud K.A., Khraisheh M., Benyahia F. Synoptic analysis of direct contact membrane distillation performance in Qatar: A case study, Desalination, 2015; 360:97–107. 44. Bouguecha S.T., Aliya S.E., Al-Beiruttya M.H., Hamdia M.M., Boubakrib A. Solar driven DCMD: Performance evaluation and thermal energy efficiency, Chem Eng Res Des, 2015; 100:331–340. 45. Ali E. Energy efficient configuration of membrane distillation units for brackish water desalination using exergy analysis, Chem Eng Res Des, 2017; 125:245–256. 46. Najib A., Ali E., Al-humaizi K., Ajbar A., Orfi J., Boumaza M. Performance analysis of cascaded membrane distillation arrangement of desalination of brackish water, Desalin Water Treat, 2017; 76:19–29. 47. Orfi A., Najib A., Ali E., Ajbar A., AlMatrafi M., Boumaaza M.,et al. Membrane distillation and reverse osmosis-based desalination driven by geothermal energy sources, Desalin Water Treat, 2017; 76:40– 52. [PLOS ONE | https://doi org/10 1371/journal pone 0230207](https://doi.org/10.1371/journal.pone.0230207) March 24 2020 24 / 24

섹션 본문 44문단 · 34,595자

(제목 없음)

1We consider the development and fitting of a dynamic model for desalinated water production by a direct-contact membrane distillation (DCMD) unit. Two types of dynamic-model structures, namely, lumped parameter and spatial, were evaluated. Both the models were validated using experimental response data generated by step testing the inlet hot stream temperature of a DCMD pilot plant. Both the model structures failed to follow the dynamic response adequately. However, a modification of the model by adding a heat loss term resulted in enhanced predictions for both model structures. The overall relative error in the model-plant mismatch was approximately 3%. This is reasonable considering the random uncertainties associated with the plant operation. This observation also improves our understanding of the importance of using better correlations for heat-transfer coefficients, to develop a more reliable and accurate predictive model for a wide range of operating conditions.OPEN ACCESSCitation: Ali E, Orfi J, Najib A (2020) Developing and validating a dynamic model of water production by direct-contact membrane distillation. PLoS ONE 15(3): e0230207. https://doi.org/ 10.

Introduction

2The shortage of potable water is a major problem persisting in several regions worldwide. The growth and development of the desalination industry are remarkable. In 2016, global desalination production attained approximately 85 × 10 6 m 3 /day [1]. The conventional desalination technologies, namely, multi-stage flash, multi-effect evaporation, and reverse osmosis, are known for being energy intensive. Among the most innovative and potential desalination technologies, membrane distillation (MD) is gaining interest because of its advantages compared to conventional technologies. The direct-contact membrane distillation (DCMD) configuration, which is a widely employed MD configuration, is known for its attractive characteristics such as its requirement of low operating temperature and hydrostatic pressure. It can achieve approximately 100% rejection of salt ions. Moreover, its permeate quality is marginally affected by the feed concentration. Furthermore, it has a compact and flexible structure [2][3][4][5]. Notwithstanding the appealing features of the MD technology, its industrial commercialization is hindered by certain technical barriers and deficiencies, such as low recovery ratio; high specific energy requirements; and fouling and scaling, which eventually deteriorate the permeate flux and membrane pore wetting [2,[6][7][8]. Therefore, several investigations were performed during the past years to enhance the feasibility of the MD technology as a commercial desalination technology [9][10][11]. For example, many researchers focused on improving the MD performance by performing reconfiguration or retrofitting such as incorporation of heat-recovery systems [10,12], recycling of the discharged brine to the inlet stream [13,14], and use of multistaging [10,15]. Integration of the MD technology with low-grade energy sources such as waste heat, solar, and geothermal energy has been addressed [16][17][18]. To address science and engineering issues that limit the development and commercialization of the MD technology, theoretical investigations concerning the design and optimization of the MD process have been performed [3,[19][20][21][22][23][24][25][26]. These theoretical investigations, which modeled several physical principles integral to the MD process, are subject to the following limiting assumptions:

3• Unlike the studies on steady-state regime, those on transient conditions are very few [21,27].

4• Heat and mass transfers are generally space independent (using lumped approach) or one dimensional [5,20]. Only a few works have been concerned with refined multidimensional aspects [28][29][30].

5• The transfer coefficients are generally evaluated using inappropriately developed correlations, e.g., for impermeable interfaces and not for permeable ones [31,32]. A deeper perception of the heat-and mass-transfer phenomena should be addressed.

6• It has been reported that the uncertainty of membrane properties causes inadequate mass fluxes. Camacho et al. [33] reported that membrane properties such as porosity, thickness, and pore size may change because of the membrane compression caused by the hydrodynamic pressure associated with the circulating feed and permeate flow rates. As mentioned by Andrjesdóttir et al. [9], the simultaneous fitting of heat and mass data to a first-principles model can aid the understanding of the underlying physics of the MD process and, thereby, highlight the deficiencies of similar physical models.

7Irrespective of the effectiveness and complexity of these models, they are limited and cannot be utilized for applications such as automation and control implementation because they are stationary. In addition, these models cannot be integrated with time-varying energy resources such as solar and wind energies, which are characterized by intermittent energy outputs. Therefore, it is important to develop dynamic models that consider the fluctuation or abrupt variations in energy supply. Charfi et al. [28] undertook one of the earliest efforts to address the dynamics modeling of the MD processes. Hassan et al. [34] developed a dynamic, spatial finite-difference model to investigate the transient performance of a vacuum MD when hot feed parameters such as mass-flow rate, temperature, and concentration distributions undergo variations in steps.

8Recently, Eliewi et al. and Karam et al. [21,27] proposed DCMD-based dynamic models that consider heat and mass variations both in one-and two-dimensional spaces. These spacedependent models are suitable for exploring the impact of hidden unmeasured parameters. However, for control applications and/or integrating the MD technology with fluctuating energy sources, the dynamics of the external inputs and outputs are important. Moreover, in the works of Eliewi et al. and Karam et al. [21,27], the dynamics of a single-process output, i.e., the permeate outlet temperature, is validated, whereas those for the brine outlet temperature is omitted. Furthermore, the validation is based on the ramp variations in the temperature. Furthermore, this type of dynamics is not common for the MD process, and common dynamic capturing should be based on step testing because it defines both the transient and stationary behaviors of the MD process. Recently, Ali [35] developed a dynamic model for the outlet cold and hot temperatures in a DCMD. The model is converted to a transfer function (TF) to analyze the dynamic characteristics of the process outputs.

9This study is a continuation of a previous work [35] by performing dynamic analysis and modeling of the DCMD process. Specifically, the dynamics of mass production is modeled, because it is the main product of the process. To the authors' knowledge, no detailed derivation or validation of dynamic model of mass flux in DCMD has been published. All the published studies address the modeling of only the dynamics of the outlet temperatures of the MD process. Furthermore, a detailed derivation of the explicit formulation of the mass flux dynamics is presented. The generated model is based on first principles that include the internal physics of the MD process. The measured dynamic data of the mass accumulation in the DCMD plant for water desalination are analyzed and correlated to obtain a typical transient behavior. Standard reaction-curve methods [36] are utilized to infer the dynamic characteristics of the mass production response from the correlated transient responses. Moreover, the correlated transient behavior obtained is used to validate the theoretical dynamics model. The analysis here is limited to the DCMD module using a spiral-wound membrane made of polyethylene tetrafluoride. The analysis covers a wide range of operating conditions for the mass-flow rate and inlet hot temperature.

Experimental setup description

10The development and validation of the model are based on the experimental data generated from an MD pilot plant. The pilot plant was developed by SolarSpring [37] and equipped with a DCMD module with an effective membrane-area of 10 m 2 , membrane thickness of 230 μm, channel length of 14 m, channel height of 0.7 m, pore diameter of 0.2 μm, and channel gap of 2 mm. The membrane porosity is 0.8, and the water-entry pressure is 4.1 bar. A schematic of the MD process is depicted in Fig 1. A data-acquisition system is employed for data logging and for regulating various instruments. An external electrical heater (H1) is used to heat the evaporator circuit, i.e., the membrane's hot feed stream. The hot feed temperature is controlled effectively using a programmable logic controller. An external cooler (H2) is also incorporated to adjust the temperature of the MD inlet cold stream. The temperature of the inlet cold stream is regulated manually. Hence, the inlet cold temperature undergoes fluctuation and disruptions because of the fuzziness of manual control. The desalinated water is separated through an overflow, accumulated in the storage tank T3, and measured using an electronic balance. Further details of the experimental setup and procedure are available in previous works [32,35,38,39]. In the previous works, the experimental device was used to generate data to be used for calibrating a steady state MD model, conducting energy and exergy analysis, and validating a dynamic model of the MD outlet temperatures. In this work, the time-evolution measurement of the mass flux is used to validate the proposed dynamic model for mass production. Note that in all the experiments, the mass-flow rates both on the hot and cold side are maintained equal. This is because the experimental module does not allow for non-equal flow rates on the two sides, to avoid membrane sheet deformation.

Mass-flux dynamic model

11The water distillate is the principal output of the process. The distillate production undergoes transient behavior during the startup or stepped variations in the process inputs such as feed temperature and/or feed-flow rate. Hence, we intend to develop a theoretical model that captures the dynamic behavior of mass production. We assume an absence of heat loss to the environment, as well as stable membrane properties such as thickness, tortuosity, porosity, and pore size. In addition, we assume the total pressure drop across the membrane to be negligible. Furthermore, the physical properties of water such as density, heat capacity, thermal conductivity, viscosity, and heat-transfer coefficient are functions of temperature. The dynamic model for mass production of water in the lumped-parameter case is expressed by the following initial-value problem (IVP):

12The derivation of the mass production dynamic (Eq 1) and the definitions of the underlying parameters are provided in Appendix A. The thermal Eqs (2) and (3) are adopted from Karam et al. [27] and presented and discussed in another work [40]. The thermal equations are developed by applying the energy conservation law on the entire MD module (S1 Fig) both on the feed and permeate sides. In due course, the accumulation of energy within the hot channel becomes equal to the difference between the heat loss from the hot fluid as sensible heat and the heat transferred to the cold side. Within the cold side, the accumulation of energy is equal to the difference between the heat gained by the permeate fluid and the heat transferred from the hot side. The heat transfer between the two sides occurs through two mechanisms: conduction through the membrane material and latent heat of vaporization. The initial conditions for the IVP are that the mass production is zero, and the bulk temperature is equal to the room temperature. The reference temperature (T rf ) is also considered to be equal to the room temperature. The IVP is solved simultaneously to obtain the time evolution of mass production. Although the above-mentioned dynamic model appears linear in its structure, nonlinearity arises from the membrane heat-transfer coefficient (h m ), membrane coefficient (C m ), membrane surface temperature (T h m ; T c m Þ, and underlying parameters (a's, b's, and β's). These coefficients and parameters are implicitly functions of the bulk temperature, membrane interface temperatures, and mass flux. Hence, these variables are calculated using an iterative procedure assuming the pseudo-steady state specified in Appendix B (see Algorithm S1). Notably, the thermal behavior of the process is represented by the boundary temperatures, which are measured and therefore, verifiable. It is apparent from Eqs (1)-(3) that the dynamic of the mass production follows that of the outlet temperatures. Note that an equal inlet feed-flow rate (m h in ¼ m c in Þ is used for the hot and cold sides, which is imposed by the experimental setup.

13For long membrane modules, the lumped-parameter model is limited because it uses a constant value for the temperature profile along the membrane length. A better representation of the process behavior can be achieved by using spatial model formulation. In this case, the process variables such as the bulk temperature and mass flux are permitted to vary over the membrane length. Hence, the dynamic model of the MD (Eqs (1)-(3)) can be written for each control element (S1 Fig) (denoted by subscript i) along the membrane length, using the lumped-capacitance method as follows:

14The above-mentioned equations are written repeatedly starting from the time when the hot stream is fed until the time that the cold stream is fed. At the boundary of the module, the specified terminal values (T h in ; T c in ) are used such that the degree of freedom is zero. The size of the system of ordinary differential equations (ODEs) depends on the number of divisions of the module length. Note that the total distillate production is the average of the mass production of each control volume. The above Eqs (4) and (5) are originally partial differential equations (PDEs) with advective-conduction terms in one dimension, which is the axial direction (direction of the flow). In this case, the advective-conduction terms are being upwind discretized, whereby the PDEs are reduced to a system of IVPs. The initial values of the state variables are equal to those mentioned before.

Results and discussion

15The transient behavior of the accumulated mass of purified water for the selected operating conditions is depicted in Figs 2 and 3. The results for flow rates of 50 and 300 L/h are shown in the figure, but those of 100 and 200 L/h are not shown. Moreover, the trends of the responses (specified and missing) are similar albeit with different extents. The inlet cold stream temperature is maintained at 25˚C, and the inlet water salinity at 0.5% for all the experiments. The water mass is represented by a straight line because it is the measured mass of water in the collection tank at each sampling time. The error bars in the figures denote the uncertainty in the accumulated mass. The uncertainty is estimated as the standard deviation of several experimental results under identical operating conditions. Note that the error bars are placed on specific samples because their inclusion at each sampling time overfills the figure, resulting in degraded visibility. The sampling time is 10 s. The accumulated mass was transformed into the production rate and is depicted in these figures by the dotted curve. The production rate was obtained by dividing the accumulated mass by the corresponding time. The production rate is a better representation of distillate production because it clearly reveals the dynamic response. It also assists in the evaluation of the steady-state production rate. However, for certain specific operating conditions, the production rate does not attain a completely steady state. This is attributed to the fact that the experiment is terminated prematurely. The reason for the premature termination is the limited capacity of the collection tank (T3). The tank can accumulate a maximum of 25 kg of water. Beyond this, it must be emptied for sustaining continuous operation. This interruption disrupts the calculation of the mass flux over a long period. Therefore, to estimate the steady-state production rate, the latter must be extrapolated for a prolonged time. To achieve this, the measured water mass is fitted to a correlation with time. The mass accumulation at each operating condition is fitted as a straight line. The correlated mass accumulation is demonstrated using dashed lines in Figs 2 and 3. Note that the correlated collected mass is unique for each specific operating condition. That is, the collected mass for an operating condition cannot be extended for another operating condition. The aim is to obtain the perfect match of the experimental results, as evidently illustrated.

16The resulting correlation is then extrapolated and transformed into the rate of change to obtain the monotone function depicted in Fig 4, for all the tested flow rates and feed temperatures. The extrapolation ensures that the mass-flux rate attains a steady state. Hence, the dynamic behavior can be analyzed conveniently, and the steady-state production rate can be estimated accurately. The process of correlation, extrapolation, and transformation into a rate of change in mass accumulation is a crucial step in this analysis. The generated asymptotic rate of mass production facilitates the dynamic analysis aimed at in this study, rather than integrating mass accumulation. First, the generated monotone response of the mass production can be used to determine the dynamic characteristics by using the standard reactioncurve method. Second, the generated monotone time response of the mass production can be used to validate the theoretical model given by Eqs (1)- (6). It should be noted that the dynamic model in Eqs (1-6) generates a mass production rate that exhibits an asymptotic response unlike the measured mass production, which is presented as mass accumulation.

17It is apparent from Fig 4 that at each feed-flow rate, the production capacity increases proportional to the feed temperature. This observation is anticipated and reported in earlier works [7,9,[41][42][43][44] because the increment in the feed temperature escalates the sensible heat of the hot stream, which results in improved heat transfer from the hot bulk side to the membrane surface. Similarly, at any operating feed temperature, the corresponding mass production rate increases with the feed-flow rate. As the feed-flow rate increases, the turbulence on the membrane surface also increases. This phenomenon improves the heat-and mass-transfer mechanisms, resulting in higher production rates [7,9,11,[41][42][43][44] It is apparent that the transient response of m w in Fig 4 resembles the reaction curve of a typical first-order system in response to stepped variations. Therefore, the linear system theory can be used to determine the dynamic characteristics, i.e., time constant and static gain, of the mass production, m w . In this case, the dynamic characteristics of m w in response to the stepped variations in T h in are estimated. The estimated time constant for the reaction curves in Fig 4 is presented in Fig 5. The measured time constant varies notably with respect to the operating conditions, indicating the nonlinearity of the process. In general, the time constant can vary between 5 and 15 min. For the lowest value of the operating feed temperature, the time constant decreases linearly as the flow rate increases. This implies that the process response becomes faster as the flow rate increases. For higher feed temperatures, the time constant decreases as the flow rate increases up to 200 L/h. Thereafter, it increases with further increases in the flow rate. The deceleration of the process dynamic at higher flow rates, specifically at 300 L/h, is not related to the fundamental mass-and heat-transfer operation inside the membrane. This behavior is ascribed to the dynamics of the external heater (H1). The reactioncurve method requires the output response to the instantaneous stepped variations in the input. However, in our experiments, the stepped variations in T h in exhibits a certain time lag induced by the capacitance of the external heater. This underlying dynamic is marginal at small flow rates. However, it increases substantially at high flow rates and temperatures [23]. This behavior is reflected by the response speed of m w at high operating conditions. The static mass production gain at different operating conditions is extracted from the reaction curves in Fig 4 by using the reaction-curve method. The results of the extraction are illustrated in Fig 6. These values are directly proportional to the feed-flow rate and feed temperature, as discussed previously. The static gain provides information on the effectiveness of the operating conditions. For the minimum flow rate, the static gain is almost invariant with the feed temperature. This indicates that increasing the feed temperature is ineffective for this case. Similarly, at the flow rate of 100 L/h, the static gain varies insignificantly. However, at higher flow rates, the favorable effect of the static gain on the operation is apparent. Apparently, the static gain and time constant vary considerably with operating conditions. Therefore, presentation of the mass production dynamics by a simple transfer function is not recommended. It is more effective to capture the mass production dynamics using the entire system of nonlinear ODEs, as discussed in the following section.

18Further, we seek to validate the dynamic model based on the first principles expressed as Eqs (1)-(6), using the experimental data. It is to be remembered that the theoretical model differs from the straight-line correlation used previously for extrapolating the experiment data. This model is universal in that it is applicable to different operating conditions. Moreover, it is comprehensive, i.e., it explicitly includes the process parameters and other design parameters. In addition, the resultant model is a standard ODE, which is typical for dynamic and control analysis and application. The ODE model is simulated by stepping T h in while keeping T c in constant at 25˚C. The mass-flow rate is considered to be a stepwise constant, i.e., it remains constant while the IVP is solved. The IVP is solved using Euler's method with a step size of 1 s. This step size was observed to be adequate for providing a stable numerical solution. In each step of Euler's method, the intermediate parameters are determined by following the algorithm provided in Appendix B. In Fig 7, the result of the simulation is depicted and is compared to the time response of the plant. The figure depicts the simulation of the lumped model and spatial model with n = 10 for a wide range of operating conditions. The performance of the lumped and spatial models exhibits a notable model-plant mismatch, particularly in terms of the static gain, except at the lowest flow rate and feed temperature (50 L/h, 50˚C). The mismatch increases notably with flow rate and to a certain extent, with feed temperature. Whereas the lumped and spatial models delivered almost similar performance at low operating flow rates, they exhibited divergent behaviors at high flow rates. It is noteworthy that the lumped model outperformed the spatial model in terms of the overall average error. Numerically, the overall relative error for the lumped model is less than that for the spatial model, as presented in Table 1. Note that for the lumped model, the geometric average bulk temperature is used in Algorithm S1. When terminal temperatures are used as approximations of the bulk temperature in the limped model, the performance deteriorates as the overall average error attains 51%, as listed in Table 1. The relative error presented in Table 1 is computed using the following formula:

19where m m w and m e w denote the model response and plant response, respectively, for the mass production. n t denotes the simulation time. E r is computed for each flow rate, and the overall error is the mean value across all the flow rates.

20The inferiority of both the model structures can be attributed to the omission of the heat losses to the surrounding and to modeling error. Heat loss to the surroundings is reported by other works [38,44]. In general, heat losses increase with feed temperature (as manifested by the marginally increasing mismatch in Fig 7) because the difference between the module and ambient temperatures also increases. However, the increment in heat loss/modeling error with flow rate is unclear. Nevertheless, we can refer to the nonlinearity of the process observed in [32,38]. As the flow rate increases, the heat-transfer coefficients enhance the heat transfer, resulting in a higher temperature at the permeate bulk side. As the flow rate continues to increase, the heat transfer becomes asymptotic because the driving force (temperature difference between the bulk hot side and bulk cold side) decreases. Simultaneously, the temperature difference at the membrane interface increases, resulting in improved mass flux. This behavior is reflected on both the model performances when a flow rate of 200 L/h is implemented. Unlike the other cases, the model-plane discrepancy decreases with feed temperature for the

PLOS ONE

21Transient model for mass flux in membrane distillation case of 200 L/h. As a remedy, we propose the following model modification to incorporate the effect of heat losses to the surrounding: For lumped case:

22For spatial case:

23Note that the heat loss term is incorporated in the thermal equation only for the hot channel. We assume that a portion of the sensible heat of the hot side is lost to the ambient. This implies that only a fraction of the hot sensible heat is available for heat transfer to the cold bulk side. The heat loss (correction term) becomes proportional to the operating temperature with the incorporation of the heat loss as a fraction of the sensible heat. This formulation mimics the modeling error observed in Fig 7, which increases with the operating temperature. To make the correction term increase with the flow rate, the fraction parameter (f los ) is set proportional to the flow rate, as presented in Table 2. The values of f los in Table 2 are determined by trial and error and heuristics. Fig 8 depicts the model performance when the proposed tuning strategy is applied. It is highly evident that the model's effectiveness for both the structures is enhanced substantially. Specifically, the overall relative error is reduced to approximately 3%, as presented in Table 1. It is equally evident that the spatial model is not more advantageous than the lumped one because both structures provided remarkable fitting of the plant data when they were effectively tuned. A few marginal discrepancies are present in the time response, which are discussed in the final paragraphs. Note that the correction term in Eqs (8) and (9) is maintained

24Transient model for mass flux in membrane distillation as simple as possible to maintain the model simplicity and predictiveness. Although the correction term is denoted as heat losses, it appears to account for both the heat losses and other uncertain modeling errors. According to the values of f los in Table 2, the lumped modeling errors are 7%-17% in the lumped model and 15%-26% in the spatial model. An enhancement of the lumped model that uses terminal temperature as bulk temperature is not presented here. Our investigation revealed that tuning such a model mandates an ambiguously large correction factor (f los ).

25To understand the effect of omitting the effect of heat losses on the model performance, the temperature difference at the membrane interface (DT m ¼ T h m À T c m ) is plotted as shown in Fig 9. This result corresponds to the case where the correction term is not incorporated in Eq (9), i.e., it belongs to the results shown in Fig 7. The interface temperature difference is relatively high compared to that shown in Fig 10, which corresponds to the case where the correction term is employed in the model. This implies that the model predicted a ΔT m value that is larger than its true values, causing the mass production predicted by the model to inflate as shown in Fig 7. When the heat losses are omitted, the entire available sensible heat is transferred from the hot side to the cold side, whereby the permeate outlet temperature is increased. As a result, the bulk temperature difference as well as the associated interface temperature difference increase. When the heat losses term is involved, the model predicts smaller interface temperature differences, as illustrated in Fig 10. In this case, the model considers less amount of sensible heat to be transferred, resulting in a lower permeate outlet temperature and hence, smaller bulk and interface temperature differences. The smaller temperature differences generated better estimates of the mass fluxes, as depicted in with that of the mass production shown in Fig 4, wherein it is proportional to the hot feed temperature and operating flow rate.

26The proposition of heat losses to the surroundings is reasonable and has been observed by others as mentioned earlier. However, the proportionality of the heat losses to the flow rate is unclear. Another method to improve the model performance through a better estimation of the heat transfer mechanism is also valid. Figs 7 and 9 show that the values of the mass flux predicted by the model are higher than the measured ones because of the erroneous estimation of the interface temperatures. The latter are estimated by Eqs (B.12) and (B.13). Hence, the erroneous values of the interface temperatures could be owing to the limitation of the model in adapting the values of h p and h f or U to variations in the operating conditions. Therefore, a better estimation of the interface temperatures and consequently the mass flux can be achieved by penalizing U directly or using better Nusselt correlation. Investigation on this by the authors is underway.

27It should be reminded that Algorithm S1 is still applied in the numerical solution of the IVP (Eqs (1)-(6)) because the algorithm estimates internal parameters of the model, such as the membrane coefficient, C m , membrane-surface temperatures, T h m ; T c m , and local heattransfer coefficients, h f , h p . These parameters are embedded in the IVP problem. Nevertheless, the origin of the model-plant mismatch exhibited in the model performance should be highlighted here. This versatile mismatch is the result of several factors such as uncertainty in process measurements, uncertainty owing to the modeling simplifications, limitation of the process design, and nonlinearity of the process. The model should not be constrained to match the experimental data because the measured data contain certain uncertainties. The plant experiments exhibited both measurement and random errors, as illustrated in Figs 2 and 3. The models were simulated using identical initial values, whereas the actual initial temperatures in the experiments varied across the tests by ±1-3˚depending upon the room temperature. The stepped variations in T h in in the real plant are not instantaneous and rather exhibit a dynamic behavior. T c in is not constant during the experiments. It exhibits randomness owing to the manual-control system. This issue is particularly discussed in a previously published work [32].

Conclusions

28In this study, a first-principles dynamic model for purified water production using the DCMD process is developed. Specifically, the structures of both the lumped-parameter model and spatial model were constructed. The accuracy of both the models in predicting the distillate rate was tested against experimental data generated by step testing a DCMD pilot plant. The accuracy of both the model structures was low, with the lumped-model structure being marginally superior to the spatial model. Although the underlying parameters of both the models were calculated at each sampling time by solving combined mass and energy balances, the models could not effectively track the mass production response over a wide range of operating conditions. An adjustment of the model by incorporating a heat loss term improved their performances: the overall relative error reduced to approximately 3%. Alternatively, the heat transfer correlation could be revised for enhanced model performance.

Appendix A

29Considering the whole MD unit as a lumped-parameter system as shown in S1 Fig, the steady state mass production rate of water is expressed as follows [32]:

30ðA:1Þ P 1 and P 2 are the partial pressures of water vapor estimated at the membrane surface temperatures T hm and T cm , respectively. These can be calculated using the Antoine equation [6,7]:

31The membrane interface temperatures can be related to the membrane bulk temperature when the convection and conduction heat transfer attain equilibrium [8]:

32Note that the equalities (A.4) and (A.5) hold at steady state. Because we are developing a dynamic model, we assume that they hold at a pseudo-steady state. Therefore, from the left side of the last two equations, i.e., by equating the membrane conduction plus latent heat terms to the convection from the bulk to the membrane surface, we obtain

33temperatures for the bulk results in higher values of m w in the steady state [32]. Alternatively, the geometric mean of the boundary temperatures (A.25) and (A.26) can be used. For the spatial model, the bulk temperatures are approximated as the bulk temperature of each control volume.

342. Set T 0 h m ¼ T h b and T 0 c m ¼ T c b 3. Calculate the vapor pressure at the membrane interface using the following [6]:

356. Calculate the mass flux as j w ¼ C m ðP 1 À P 2 Þ ðB:9Þ

367. Compute the overall heat-transfer coefficient using [8] U

37The membrane heat-transfer coefficient (h m ) represents the heat resistance owing to conduction and can be estimated using [11] h m ¼ The above-mentioned algorithm is terminated using a termination tolerance of 1 × 10 −7 . Note that the algorithm is applicable to both the lumped and spatial versions of the model. Furthermore, for both models, the above-mentioned algorithm is solved assuming quasisteady-state conditions.

Author Contributions

38Conceptualization: Emad Ali.

39Data curation: Abdullah Najib.

40Formal analysis: Emad Ali, Jamel Orfi.

41Investigation: Jamel Orfi, Abdullah Najib.

Methodology: Emad Ali.

42Software: Emad Ali.

43Supervision: Jamel Orfi.

44Validation: Abdullah Najib.

참고문헌 48건

  1. Chemical process control: an introduction to theory and practice Prentice Hall eBooks · 1984
  2. Optimising thermal efficiency of direct contact membrane distillation by brine recycling for small-scale seawater desalination Desalination · Elsevier BV · 2015 10.1016/j.desal.2015.07.009
  3. Membrane distillation: Recent developments and perspectives Desalination · Elsevier BV · 2014 10.1016/j.desal.2014.10.028
  4. Performance modeling of direct contact membrane distillation (DCMD) seawater desalination process using a commercial composite membrane Journal of Membrane Science · Elsevier BV · 2015 10.1016/j.memsci.2014.12.053
  5. High water recovery of RO brine using multi-stage air gap membrane distillation Desalination · Elsevier BV · 2014 10.1016/j.desal.2014.10.038
  6. Immediate assisted solar direct contact membrane distillation in saline water desalination Journal of Membrane Science · Elsevier BV · 2010 10.1016/j.memsci.2010.04.037
  7. Heat and mass transfer analysis in direct contact membrane distillation Desalination · Elsevier BV · 2007 10.1016/j.desal.2007.05.019
  8. Integrated modeling of transport processes in fluid/nanofiltration membrane systems Journal of Membrane Science · Elsevier BV · 2002 10.1016/s0376-7388(01)00761-x
  9. Reverse Osmosis and Membrane Distillation for Desalination of Groundwater: A Review ISRN Materials Science · Hindawi Publishing Corporation · 2011 10.5402/2011/523124
  10. Experimental Investigation of Heat and Mass Transfer in Tubular Membrane Distillation Module for Desalination ISRN Chemical Engineering · Hindawi Publishing Corporation · 2012 10.5402/2012/738731
  11. An experimentally optimized model for heat and mass transfer in direct contact membrane distillation International Journal of Heat and Mass Transfer · Elsevier BV · 2013 10.1016/j.ijheatmasstransfer.2013.07.051
  12. Optimal Design of Multistage Membrane Distillation Systems for Water Purification Industrial & Engineering Chemistry Research · American Chemical Society · 2011 10.1021/ie1016877
  13. Desalination using membrane distillation: Experimental studies on full scale spiral wound modules Journal of Membrane Science · Elsevier BV · 2011 10.1016/j.memsci.2011.03.030
  14. Membranes and theoretical modeling of membrane distillation: A review Advances in Colloid and Interface Science · Elsevier BV · 2010 10.1016/j.cis.2010.09.005
  15. Membrane distillation: A comprehensive review Desalination · Elsevier BV · 2011 10.1016/j.desal.2011.08.027
  16. Evaluation of heat utilization in membrane distillation desalination system integrated with heat recovery Desalination · Elsevier BV · 2015 10.1016/j.desal.2015.01.013
  17. Material gap membrane distillation: A new design for water vapor flux enhancement Journal of Membrane Science · Elsevier BV · 2013 10.1016/j.memsci.2013.08.013
  18. Desalination by a “compact SMADES” autonomous solarpowered membrane distillation unit Desalination · Elsevier BV · 2007 10.1016/j.desal.2006.11.028
  19. A research on water desalination using membrane distillation Desalination and Water Treatment · Taylor & Francis · 2014 10.1080/19443994.2014.972731
  20. Theoretical modeling and experimental analysis of direct contact membrane distillation Journal of Membrane Science · Elsevier BV · 2009 10.1016/j.memsci.2008.12.063
  21. Numerical simulation and experimental studies on heat and mass transfer using sweeping gas membrane distillation Desalination · Elsevier BV · 2010 10.1016/j.desal.2010.04.028
  22. Water and air gap membrane distillation for water desalination – An experimental comparative study Separation and Purification Technology · Elsevier BV · 2014 10.1016/j.seppur.2014.12.007
  23. Membrane-distillation desalination: Status and potential Desalination · Elsevier BV · 2005 10.1016/j.desal.2004.03.024
  24. Advances in Membrane Distillation for Water Desalination and Purification Applications Water · Multidisciplinary Digital Publishing Institute · 2013 10.3390/w5010094
  25. Synoptic analysis of direct contact membrane distillation performance in Qatar: A case study Desalination · Elsevier BV · 2015 10.1016/j.desal.2015.01.016
  26. Analysis of heat and mass transfer by CFD for performance enhancement in direct contact membrane distillation Journal of Membrane Science · Elsevier BV · 2012 10.1016/j.memsci.2012.02.035
  27. Energy efficiency of permeate gap and novel conductive gap membrane distillation Journal of Membrane Science · Elsevier BV · 2015 10.1016/j.memsci.2015.12.017
  28. Dynamic modeling and experimental validation for direct contact membrane distillation (DCMD) process Desalination · Elsevier BV · 2016 10.1016/j.desal.2016.01.004
  29. Dynamic performance of vacuum membrane distillation system Desalination and Water Treatment · Taylor & Francis · 2015 10.1080/19443994.2015.1099330
  30. Modeling and CFD Simulation of Water Desalination Using Nanoporous Membrane Contactors Industrial & Engineering Chemistry Research · American Chemical Society · 2013 10.1021/ie400188q
  31. Flux Prediction in Direct Contact Membrane Distillation International Journal of Materials Mechanics and Manufacturing · EJournal Publishing · 2014 10.7763/ijmmm.2014.v2.147
  32. Desalination by Membrane Distillation Elsevier eBooks · Elsevier BV · 2016 10.1016/b978-0-444-63312-5.00004-8
  33. Analysis of direct contact membrane distillation based on a lumped-parameter dynamic predictive model Desalination · Elsevier BV · 2016 10.1016/j.desal.2016.09.002
  34. Membrane distillation model based on heat exchanger theory and configuration comparison Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.09.090
  35. A novel multi-stage direct contact membrane distillation module: Design, experimental and theoretical approaches Water Research · Elsevier BV · 2016 10.1016/j.watres.2016.10.059
  36. Membrane distillation and reverse osmosis based desalination driven by geothermal energy sources Desalination and Water Treatment · Taylor & Francis · 2017 10.5004/dwt.2017.11378
  37. Performance analysis of cascaded membrane distillation arrangementsfor desalination of brackish water Desalination and Water Treatment · Taylor & Francis · 2017 10.5004/dwt.2017.20303
  38. Energy efficient configuration of Membrane Distillation units for brackish water desalination using exergy analysis Process Safety and Environmental Protection · Elsevier BV · 2017 10.1016/j.cherd.2017.07.020
  39. Assessing the Thermal Efficiency of Brackish Water Desalination by Membrane Distillation Using Exergy Analysis Arabian Journal for Science and Engineering · Springer Science+Business Media · 2017 10.1007/s13369-017-2831-5
  40. Importance of feed recirculation for the overall energy consumption in membrane distillation systems Desalination · Elsevier BV · 2017 10.1016/j.desal.2017.11.037
  41. An experimentally calibrated model for heat and mass transfer in full-scale direct contact membrane distillation Desalination and Water Treatment · Taylor & Francis · 2018 10.5004/dwt.2018.22471
  42. Dynamic analysis and modeling of direct contact membrane distillation for water desalination during startup using linear system theory Chemical Engineering and Processing - Process Intensification · Elsevier BV · 2018 10.1016/j.cep.2018.12.003
  43. Thermodynamics analysis of a direct contact membrane distillation with/without heat recovery based on experimental data Desalination · Elsevier BV · 2019 10.1016/j.desal.2019.05.009
  44. Introduction: Theory and Practice Routledge eBooks · Informa · 2014 10.4324/9781315763774-8
  45. Nonlinear dynamic modeling and validation of a direct contact membrane distillation for water desalination Applied Thermal Engineering · Elsevier BV · 2020 10.1016/j.applthermaleng.2020.115719
  46. Chemical process control Routledge eBooks · Informa · 2017 10.4324/9781315125831-8
  47. SOLAR DESALINATION Annual Reviews of Heat Transfer · Begell House · 2012 10.1615/annualrevheattransfer.2012004659
  48. Solar driven DCMD: Performance evaluation and thermal energy efficiency Process Safety and Environmental Protection · Elsevier BV · 2015 10.1016/j.cherd.2015.05.044