Table of Contents Author Guidelines Submit a Manuscript
Journal of Applied Mathematics
Volume 2014, Article ID 908569, 11 pages
Research Article

Mathematical Modeling and Simulation of SWRO Process Based on Simultaneous Method

School of Automation, Hangzhou Dianzi University, Hangzhou, Zhejiang 310018, China

Received 30 January 2014; Revised 23 May 2014; Accepted 28 May 2014; Published 23 June 2014

Academic Editor: X. S. Qin

Copyright © 2014 Aipeng Jiang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Reverse osmosis (RO) technique is one of the most efficient ways for seawater desalination to solve the shortage of freshwater. For prediction and analysis of the performance of seawater reverse osmosis (SWRO) process, an accurate and detailed model based on the solution-diffusion and mass transfer theory is established. Since the accurate formulation of the model includes many differential equations and strong nonlinear equations (differential and algebraic equations, DAEs), to solve the problem efficiently, the simultaneous method through orthogonal collocation on finite elements and large scale solver were used to obtain the solutions. The model was fully discretized into NLP (nonlinear programming) with large scale variables and equations, and then the NLP was solved by large scale solver of IPOPT. Validation of the formulated model and solution method is verified by case study on a SWRO plant. Then simulation and analysis are carried out to demonstrate the performance of reverse osmosis process; operational conditions such as feed pressure and feed flow rate as well as feed temperature are also analyzed. This work is of significant meaning for the detailed understanding of RO process and future energy saving through operational optimization.

1. Introduction

China, which has the largest population in the world and is called the world’s factory, has a much more serious problem of freshwater shortage. This problem is expected to worsen in the whole world with the growth of industrialization, as well as climate change [13]. Seawater desalination based on RO (reverse osmosis) membrane technique is one of the most promising ways to obtain freshwater, especially in the coastal regions and islands. More than 40% market shares of seawater desalination based on RO technique was occupied worldwide in the past decade [4]. Reverse osmosis (RO) is also a membrane technology driven by high pressure and is used to separate salt and water of the same order of molecular size. High pressure is applied on the feed side of the membrane to overcome the osmotic pressure and cause transport of the solvent from feed to permeate side. Among the membrane modules, spiral-wound RO occupies the largest market share because of its relative ease of cleaning, fabrication technology, and very large surface area per unit volume [5, 6]. The general process of SWRO can be found in the specialized literature [7, 8]. To achieve a high recovery in a single stage, several spiral-wound elements in series, held in a cylindrical pressure vessel, are usually used in seawater desalination applications. Generally a reverse osmosis desalination unit is composed of dozens of cylindrical pressure vessels, and several units with a permeate water storage tank were used as the key part of a seawater desalination plant.

The feed pressure as well as other parameters such as operational temperature and properties of the membrane has significant effect on the performance of SWRO process. It is quite important to understand the mechanism of SWRO process and improve the performance and reduce the energy consumption. For this reason, based on solution-diffusion model and film theory, the model of RO process was researched, found, analyzed, and used to optimize the operation of SWRO plant [9, 10].

Libotean and Khayet established the performance prediction model based on data-driven method such as artificial neural networks [11, 12]. Since modeling based on rigid first principle can reveal more information, Senthilmurugan et al. [9] applied the solution-diffusion model modified with the concentration polarization theory for analyzing the operation and performance of RO systems. Abbas analyzed and simulated an industrial medium-scale brackish water reverse osmosis plant with semirigorous model, and then he used it to analyze the optimal operation of RO system [13]. Geraldes considered both the investment cost and operation cost of SWRO system and provided the differential equations of the RO process with distributed method [14]. Then, to avoid computing difficulties, he simplified the simulation process and solved his optimal problem with simple difference equations. Sundaramoorthy et al. build more complex analytical model of spiral wound reverse osmosis modules, based on complex model parameters estimation; the model is computed based on sequential method [15]. To get more accurate results, more modeling and simulation of reverse osmosis system are carried out with CFD technique [1618]. But since these models are not founded with simultaneous method, computing efficiency for simulation and optimization cannot be guaranteed for online application.

In this paper, to achieve accurate prediction of RO process performance and to accelerate the computing efficiency for real time simulation, the mathematical modeling is carried out based on rigid first principle, then simultaneous method within which the differential variables are fully discretized by finite element collocation. The mathematical model is verified and then simulation under different conditions will be discussed.

2. Mathematical Modeling of Spiral-Wound RO Process

The performance of SWRO plants is quite sensitive to the quality of the feed water and plant operating conditions. Based on solution-diffusion model and film theory and according to the schematic diagram of the SWRO process shown in Figure 2, more accurate membrane transport equations of steady-state in the form of distributed parameters can be derived.

For the RO membrane, the overall fluid and solute mass balance equations are

Here subscripts , , and refer to the feed, reject (brine), and permeate (product) streams. and refer to the flow rate and salt concentration, respectively. The local water flux and salt flux can be calculated from the Kimura-Sourirajan solution-diffusion mass transport relations. , , and express the number of leaves and the width and length of the RO module, respectively. The solution-diffusion model is assumed to be valid for the transport of solvent and solute through the membrane. According to this model, solvent flux and solute flux through membrane are expressed by the following equations: Let Then where is the solvent transport parameter, is the feed pressure, is the pressure drop along a RO spiral-wound module, is the pressure along the channel of spiral-wound module, and is the pressure of permeate side, which in general is assumed as environment pressure. is the pressure loss of osmosis pressure. is the solute transport parameter, and are solute concentration at the membrane surface on the feed side and solute concentration on the permeate side, respectively, and is the value of at the end of module. That means . and are sensitive with operational temperature and related factors; the relationship is expressed as follows: where and are intrinsic transport parameter in standard condition and , , and are constant parameters for transport. represents operational temperature with unit of kelvin degree. The osmotic pressure is nearly linearly related to concentration by the equation where is the gas law constant.

Solution of the above equations requires knowledge of the RO process specification and parameters as well as the solute concentration of at the membrane wall, which is quite different from the bulk concentration due to the CP (concentration polarization) phenomenon. Through steady-state material balance around the boundary layer and CP theory, the following simple expression is developed:

The bulk concentration and solvent transports vary along the membrane channel. The computation of the mass transfer coefficient is as follows [19]: where

is the density of permeate water, is hydraulic diameter of the feed spacer channel, is kinematic viscosity, and is dynamic viscosity; it can be calculated by the regression equation The relationship between and is According to Figure 2, the pressure loss along the RO channel can be formulated as where is the empirical parameter. Since the pressure along RO , so at , , at , .

is axial velocity in feed channel and satisfies is height of the feed spacer channel.

The bulk concentration varies along the membrane channel and can be given as and at , ; at , .

From the solution of the above equations, and at given operational conditions and specification of membrane can be obtained, from which the water recovery rate and specific energy consumption can be calculated by the equations

Salt passage and salt rejection coefficient are also two important parameters reflecting the performance of the RO process. They are formulated as the following equations: where and are the mechanical efficiency and energy recovery efficiency, respectively.

Equations (1)–(20) explain the detailed reverse osmosis process with spiral-wound membrane module. If the operational variables, such as feed flow rate and feed pressure, are fixed, the permeate quality and related performance can be obtained by the solution of the equations. Otherwise, the operational variables and related parameters can be calculated by (1)–(20) under certain constraints. The constraints listed in (21) include requirement of equipment safety, water quality, and parameter of CP:

3. Discretization and the Solution Method

Since (1)–(20) include a set of strong nonlinear equations and even DAEs (differential and algebraic equations) and since there are more constraints than those of the equation mentioned above, it is fairly tough to solve this kind of problem efficiently with high accuracy [2022]. Here the DAEs (1)–(21) are converted into the form of NLP (nonlinear programming) through simultaneous approach by approximating state and control profiles with a family of polynomials on finite elements (shown as Figure 3) [20, 23]. These polynomials can be represented as power series, such as orthogonal polynomials, or in Lagrange form. Here the following monomial basis representation for the differential profile was selected, which is popular for Runge-Kutta discretizations [23]:

Here is the value of the differential variable at the beginning of element , is the length of element , denotes the value of its first derivative in element at the collocation point , and is a polynomial of order , satisfying where is the location of the th collocation point within each element. Continuity of the differential profile is enforced by

Based on a number of studies of Larry group [20, 2426], Radau collocation points were selected in this study because they allow constraints to be set at the end of each element and to stabilize the system more efficiently if high index DAEs are present. In addition, the control and algebraic profile are approximated using a Lagrange basis representation which takes the following form: Here and represent the values of the algebraic and control variables, respectively, in element at collocation point , is the value satisfying , and is the Lagrange polynomial of degree satisfying And, at collocation points, The differential variables are required to be continuous throughout the time (or space) horizon, while the control and algebraic variables are allowed to have discontinuities at the boundaries of the elements.

Through the simultaneous method DAEs of (1)–(21) were transformed into NLP problem. Some state variables in (1)–(21) can be discretized as flow variables: , , , , , , ,  , and , , , , , , , . Operational variables , and other environmental variables such as and are not discretized because they are operational variables and feed condition variables. The equations are expressed in the following form: ODE formulations are Collocation equations are Continuity equations are Initial conditions are Here ,  .

Figure 3 gives the detailed discretization process and distribution of discretized variables. Since the NLP problem is formulated with large scale equations and variables through discretization of the original model, it can be solved by large scale NLP solvers such as IPOPT. If all the operational variables (feed pressure and feed flow rate) are fixed, the solution of the problem results in the simulation of the RO process; profiles of key performance parameters as well as detailed status variables can be obtained, which is helpful for us to understand the mechanism and the whole process.

4. Model Simulation and Analysis Based on Seawater Desalination Plant

Based on the mathematical model and collocation method on finite element, the solution of the problem will yield the profiles of key performance parameters as well as the distribution of state variables. To verify the validity of the established model, data of a real seawater desalination plant is studied and then used for the simulation and analysis. The main process of the plant is the same as Figure 1. SW30HR-380 membrane modules were selected in series in the pressure vessel, and 55 pressure vessels were used to form two RO process units. Some conditional parameters are listed in Table 1.

Table 1: Feed condition of the seawater plant.
Figure 1: Detailed schematic diagram of RO process and water storage process.
Figure 2: Scheme of the rectangular channel model of spiral wound module feed channel.
Figure 3: Discretization by collocation on finite element.

Field data of a RO process are used for model verification and parameter identification. The key performance parameters such as water recovery rate and salt rejection are compared to indicate the accuracy of the model. Comparison of the field data with those obtained from established models and ROSA9.0 is listed in Table 2. ROSA is a powerful software package developed by Dow Chemical Company to help design the RO process system [27]. As can be seen from Table 2, the overall results obtained from the established model are in good agreement with those obtained from both ROSA and the field data. Though the water recovery ratio and salt reject are lower than our model and that of ROSA9.0, the relative error is quite small. So the established model can be well used for the simulation and analysis of the seawater RO process. Since the established model was affected by feed temperature obviously, the properties and correction factor are also compared with the real data or the data from literature [13].

Table 2: Comparison of the actual performance with those from ROSA9.0 and our model.

Figures 4, 5, and 6 are the comparison results between model value and real value; it can be seen that these property parameters agree with the real data with relatively high accuracy. The RO process model is fairly robust at the temperature range from 0°C to 60°C.

Figure 4: Value of seawater viscosity along temperature.
Figure 5: Comparison of DAB with literature.
Figure 6: Comparison of TCF curve along temperature.

Based on the collocation method on finite element, simulation results are yielded through the solution of the discrete model. Simulation results are shown in Figures 7, 8, 9, 10, 11, 12, 13, 14, 15, and 16. From these figures it can be seen that the velocity of solvent, permeate flux, and concentration polarization in modules decrease nonlinearly along the length of membrane. The reason is that the feed flow is separated as two parts, and the pressure difference between the two sides decreases quickly. The osmosis pressure increase is the main factor for the decrease of pressure difference, which is shown in Figure 9. It also can be seen that the decrease of CP along the length of membrane is relatively small, and the rejection coefficient is higher than 99.4% along the length of membrane; the decrease is fairly small and the simulation value is almost the same as the real value. Figure 11 shows the relationship of feed TDS and permeate TDS; as the feed TDS increase linearly, the permeate TDS increase nonlinearly.

Figure 7: Flow velocity along the length of membrane.
Figure 8: Permeate flux along the length of membrane.
Figure 9: Osmosis pressure along the membrane.
Figure 10: Concentration polarization along membrane.
Figure 11: Values of feed TDS and permeate TDS along membrane.
Figure 12: and as the function of feed pressure.
Figure 13: and as the function of feed flow rate.
Figure 14: and as the function of feed concentration.
Figure 15: and as the function feed temperature.
Figure 16: value change curve along the feed pressure.

From (18), the value is affected by the energy recovery efficiency and the mechanical efficiency . Here they are set as 0.85 and 0.65, respectively. At the given feed condition of Table 1, calculation result shows that about 4.373 kw·h electricity energy should be consumed to produce one cubic meter freshwater. From Figure 16 it can be found that the value of decreases at initial time when the feed pressure increases; then the increases again as the pressure increases continually; there is a minimizing value as the feed pressure increases from about 30 bars to 90 bars. This means that through improving the operational condition, significant energy saving can be achieved.

Based on the well-established model, profiles of the relationship between feed conditions and key performance parameters can be obtained, which are listed in Figures 1216. From Figure 12 it can be seen that (water recovery ratio) increases quickly and almost linearly with the increase of feed pressure, because the increase of feed pressure can cause the increase of permeate flux . The other parameter of salt reject increases nonlinearly and slowly with the increase of feed pressure; at the feed pressure of 59 bar, the salt reject is more than 99.5%. From Figure 13 it can be seen that reduces quickly as the feed flow rate increases, while the has the positive relationship with the feed flow rate; this is because of the fact that velocity in the feed channel has positive linear relationship with feed flow rate. And when the feed flow rate increases, the velocity of feed channel increases correspondingly, but the residence time of seawater in the channel will be largely decreased; there is also not enough time for salt to be transported to the permeate water side, which results in the reduction of . From Figure 14, it can be seen that, as the feed concentration increases, the water recovery and salt reject decrease substantially; this is explained by the needing of much more transmembrane osmotic pressure and more difficulty to resist the diffusion of brine. The effect of temperature on the RO process performance is shown in Figure 15, from which it can be seen that, with the increase of feed temperature, increases substantially, but the decreases accordingly. This can be explained by the increase of transport parameters and and the corresponding increase of permeate flux and solute flux.

5. Conclusion

In this paper, based on the solution-diffusion and mass transfer theory, a spiral-wound SWRO process model is established. The model is expressed by DAEs (differential and algebraic equations) of (1)–(21) with some inequality and equality constraints of equipment and water quality. To solve the tough problem with high efficiency and accuracy, orthogonal collocation on finite element is proposed to transform the problem into NLP. All the state variables and intermediate variables are discretized and (1)–(21) are transferred into (28)–(32). Then IPOPT solver under GAMS platform is used for the efficient solution. And the efficient solution yields detailed simulation results related to operational variables and key performance. Profiles of feed pressure, feed concentration, and feed velocity along feed channel are investigated as well as relationship of water recovery with temperature and feed pressure. , which is the key performance parameter of energy consumption, is also calculated. The minimizing value in the middle curve shows that, through improving the operational condition, significant energy saving can be achieved. Factors including the feed conditions and operational temperature are also analyzed. All the work is helpful to further understand the mechanism of SWRO process, and shows the significant potential for energy saving through optimal operation.


, , :Constant parameters
:Membrane water permeability (m s−1 Pa−1)
:Intrinsic membrane water permeability (m s−1 Pa−1)
:Membrane TDS permeability (m/s)
:Intrinsic membrane TDS permeability (m/s)
:Feed salt concentration (kg/m3)
:Brine concentration (kg/m3)
:Permeate concentration (kg/m3)
:Bulk concentration along feed channel (kg/m3)
:Salt concentration on the membrane surface (kg/m3)
:Hydraulic diameter of the feed spacer channel (m)
:Dynamic viscosity (m2/s)
:The length of the th finite element
:Height of the feed spacer channel
:Solvent flux
:Solute flux
:Empirical parameter
:Mass transfer coefficient (m/s)
:Length of the RO module (m)
:Number of leaf in RO module
:Feed pressure (bar)
:Pressure drop along RO spiral wound module (bar)
:Pressure in permeate side (bar)
:Pressure along feed channel (bar)
:Brine pressure (bar)
:Feed flow rate (m3/h)
:Brine flow rate (m3/h)
:Permeate flow rate (m3/h)
:Gas law constant
:Reynolds number (dimensionless)
:Schmidt number (dimensionless)
:Sherwood number (dimensionless)
:Operational temperature (K)
:Axial velocity in feed channel (m/s)
:Width of the RO module (m)
:Water recovery ratio (%)
:Specific energy consumption (kw·h/m3)
:Salt passage coefficient (%)
:Salt rejection coefficient (%)
:Values of algebraic variables in element at collocation point
:Values of control variables in element at collocation point
:Differential variable
:Value of the differential variable at the beginning of element .
Greek Symbols
:Pressure loss of osmosis pressure (bar)
:Density of permeate water (kg/m3)
:Kinematic viscosity (kg m−1 s−1)
:Friction factor
:Mechanical efficiency of high pressure pump
:Energy recovery efficiency
:Polynomial of order
:Lagrange polynomial of degree .
:Module feed channel
:Membrane surface
:Permeate side

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.


This work was supported by the National Natural Science foundation of China (nos. 60904058; 61374142), the National Key Technology Research and Development Program (2009BAB47B06), and the Natural Science Foundation of Zhejiang (LY12F03001). The authors would like to extend their sincere thanks to Dr. Yijun He from Shanghai Jiao Tong University for many helpful discussions.


  1. F. H. Butt, F. Rahman, and U. Baduruthamal, “Hollow fine fiber vs. spiral-wound reverse osmosis desalination membranes part 2: membrane autopsy,” Desalination, vol. 109, no. 1, pp. 83–94, 1997. View at Publisher · View at Google Scholar · View at Scopus
  2. M. A. Shannon, P. W. Bohn, M. Elimelech, J. G. Georgiadis, B. J. Marĩas, and A. M. Mayes, “Science and technology for water purification in the coming decades,” Nature, vol. 452, no. 7185, pp. 301–310, 2008. View at Publisher · View at Google Scholar · View at Scopus
  3. S. Gray, R. Semiat, M. Duke, A. Rahardianto, and Y. Cohen, “Seawater use and desalination technology,” in Treatise on Water Science, P. Wilderer, Ed., pp. 73–109, Academic Press, Oxford, UK, 2011. View at Google Scholar
  4. K. Wangnick, IDA Worldwide Desalting Plants Inventory, Report no.17, Wangnick Consulting GmbH, Gnarrenburg, Germany, 2002.
  5. B. Van der Bruggen and C. Vandecasteele, “Distillation vs. membrane filtration: overview of process evolutions in seawater desalination,” Desalination, vol. 143, no. 3, pp. 207–218, 2002. View at Publisher · View at Google Scholar · View at Scopus
  6. S. Ebrahim and M. Abdel-Jawad, “Economics of seawater desalination by reverse osmosis,” Desalination, vol. 99, no. 1, pp. 39–55, 1994. View at Publisher · View at Google Scholar · View at Scopus
  7. O. K. Buros, The ABCs of Desalting, International Desalination Association, Topsfield, Mass, USA, 2000.
  8. A. Gambier, A. Krasnik, and E. Badreddin, “Dynamic modeling of a simple reverse osmosis desalination plant for advanced control purposes,” in Proceedings of the American Control Conference (ACC '07), New York, NY, USA, July 2007. View at Publisher · View at Google Scholar · View at Scopus
  9. S. Senthilmurugan, A. Ahluwalia, and S. K. Gupta, “Modeling of a spiral-wound module and estimation of model parameters using numerical techniques,” Desalination, vol. 173, no. 3, pp. 269–286, 2005. View at Publisher · View at Google Scholar · View at Scopus
  10. J. Marriott and E. Sørensen, “A general approach to modelling membrane modules,” Chemical Engineering Science, vol. 58, no. 22, pp. 4975–4990, 2003. View at Publisher · View at Google Scholar · View at Scopus
  11. D. M. Libotean, Modeling the reserve osmosis processes performance using artificial neural networks [Ph.D. thesis], University of California, Los Angeles, Calif, USA, 2007.
  12. M. Khayet, C. Cojocaru, and M. Essalhi, “Artificial neural network modeling and response surface methodology of desalination by reverse osmosis,” Journal of Membrane Science, vol. 368, no. 1-2, pp. 202–214, 2011. View at Publisher · View at Google Scholar · View at Scopus
  13. A. Abbas, “Simulation and analysis of an industrial water desalination plant,” Chemical Engineering and Processing: Process Intensification, vol. 44, no. 9, pp. 999–1004, 2005. View at Publisher · View at Google Scholar · View at Scopus
  14. V. Geraldes, N. E. Pereira, and M. N. de Pinho, “Simulation and optimization of medium-sized seawater reverse osmosis processes with spiral-wound modules,” Industrial & Engineering Chemistry Research, vol. 44, no. 6, pp. 1897–1905, 2005. View at Publisher · View at Google Scholar · View at Scopus
  15. S. Sundaramoorthy, G. Srinivasan, and D. V. R. Murthy, “An analytical model for spiral wound reverse osmosis membrane modules: part I—model development and parameter estimation,” Desalination, vol. 280, no. 1–3, pp. 403–411, 2011. View at Publisher · View at Google Scholar · View at Scopus
  16. A. Sagiv and R. Semiat, “Finite element analysis of forward osmosis process using NaCl solutions,” Journal of Membrane Science, vol. 379, no. 1-2, pp. 86–96, 2011. View at Publisher · View at Google Scholar · View at Scopus
  17. V. V. Tarabara and M. R. Wiesner, “Computational fluid dynamics modeling of the flow in a laboratory membrane filtration cell operated at low recoveries,” Chemical Engineering Science, vol. 58, no. 1, pp. 239–246, 2003. View at Publisher · View at Google Scholar · View at Scopus
  18. A. Alexiadis, D. E. Wiley, A. Vishnoi, R. H. K. Lee, D. F. Fletcher, and J. Bao, “CFD modelling of reverse osmosis membrane flow and validation with experimental results,” Desalination, vol. 217, no. 1–3, pp. 242–250, 2007. View at Publisher · View at Google Scholar · View at Scopus
  19. G. Schock and A. Miquel, “Mass transfer and pressure loss in spiral wound modules,” Desalination, vol. 64, pp. 339–352, 1987. View at Publisher · View at Google Scholar · View at Scopus
  20. L. T. Biegler, “An overview of simultaneous strategies for dynamic optimization,” Chemical Engineering and Processing: Process Intensification, vol. 46, no. 11, pp. 1043–1053, 2007. View at Publisher · View at Google Scholar · View at Scopus
  21. J. V. Villadsen and W. E. Stewar, “Solution of boundary-value problems by orthogonal collocation,” Chemical Engineering Science, vol. 22, no. 1967, pp. 1483–1502, 1967. View at Publisher · View at Google Scholar · View at Scopus
  22. B. A. Finlayson, Nonlinear Analysis in Chemical Engineering, McGraw-Hill, New York, NY, USA, 1980.
  23. L. T. Biegler, Nonlinear Programming: Concepts, Alg orithms and Applications to Chemical Processes, Society for Industrial and Applied Mathematics, Cambridge University Press, Pittsburgh, Pa, USA, 2010. View at Publisher · View at Google Scholar · View at MathSciNet
  24. M. Bartl, P. Li, and L. T. Biegler, “Improvement of state profile accuracy in nonlinear dynamic optimization with the quasi-sequential approach,” AIChE Journal, vol. 57, no. 8, pp. 2185–2197, 2011. View at Publisher · View at Google Scholar · View at Scopus
  25. A. Cervantes and L. T. Biegler, “Large-scale DAE optimization using a simultaneous NLP formulation,” AIChE Journal, vol. 44, no. 5, pp. 1038–1050, 1998. View at Publisher · View at Google Scholar · View at Scopus
  26. L. T. Biegler, A. M. Cervantes, and A. Wächter, “Advances in simultaneous strategies for dynamic process optimization,” Chemical Engineering Science, vol. 57, no. 4, pp. 575–593, 2002. View at Publisher · View at Google Scholar · View at Scopus