Embodiments of the subject matter disclosed herein generally relate to a direct contact membrane distillation system, and more particularly, to a differential algebraic equations based model for predictive control of such system.
While water resources such as groundwater, rivers, lakes, and reservoirs are rapidly being exhausted, more attention is drawn to the desalination of seawater and brackish water concentrations, which are readily available in large quantities. The estimated cost of water desalination varies from one technology to another due to many factors. Among these factors are the desalination method, the level of feed water salinity, the capacity of the desalination plant, and the energy source. The primary element that heavily contributes to this cost is the type of energy used to desalinate the seawater. Conventional desalination techniques are very costly both in terms of environmental and financial terms.
Researchers and technology developers have investigated the potential of using renewable energy sources to develop efficient and sustainable desalination plants. To achieve a sustainable desalination process, a Membrane Distillation (MD) process, which is a thermally driven desalination process that can be operated with low solar thermal energy, has been developed. Several configurations have been proposed for the MD configuration: the Direct Contact Membrane Distillation (DCMD) and the Air Gap Membrane Distillation (AGMD).
However, the primary drawback that still prevents the MD technology from becoming commercially available is the low water production rate. To operate MD optimally, one needs to develop an appropriate control strategy that can maximize the water production rate while taking various process constraints into account.
Following this direction, several contributions have been made to optimize the MD process in terms of thermal efficiency and distillate water production. For example, a proportional integral (PI) controller and on/off controllers were proposed for the AGMD to track optimal operation trajectories. The optimal operation trajectories are calculated off-line and tend to maximize the distilled water flux. Another optimization-based technique, termed non-dominated sorting genetic algorithm II, was developed for AGMD so that the distillate flux and the thermal efficiency are maximized. In another study, a Monte-Carlo stochastic methodology was developed in order to maximize the thermal efficiency of the AGMD process.
However, in none of the aforementioned control strategies, the variability of the solar thermal energy was considered. To account for the variations that the solar thermal energy is introducing into the MD system during operation, real-time optimization techniques can be used to impose variability constraints. For instance, in one approach, a feed-forward control system that utilizes a neural network model was developed for a solar-powered membrane distillation plant. Then, an optimizing feed-forward control scheme was used to maximize the water production while taking the variability of the solar energy into account. Recently, model-free controllers named Extremum-Seeking controllers were proposed to effectively operate DCMD processes [1,2].
From a process control perspective, model-based control techniques, which utilize a model of the system to compute optimal control actions, are well-suited for complex nonlinear processes. Therefore, a two-layer model-based control architecture was developed in [3] to operate a DCMD system. In the upper layer, a Model Predictive Control (MPC) strategy calculates an offline temperature and flow-rate set points, and then proportional-integral and feed-forward controllers are implemented in the lower layer to track these set points. However, the proposed MPC scheme optimizes the set-points based on a stage cost that reflects the solar energy use without taking inputs and process operational constraints into account.
Another MPC strategy was proposed in [4] for a distributed collector field of a solar desalination plant. The proposed MPC scheme manipulated the water flow rate to keep the temperature gradient value in the collectors constant. The MPC scheme developed in [4] only considers the input limitations when calculating the optimal control solution, and ignores other process operational constraints such as stability and solar thermal variability-based constraints.
However, the model predictive controllers can be regarded as steady-state operation control strategies that rely on the off-line calculation for the optimal operating points. Such a steady-state operation control technique may degrade the performance of the MD systems due to the variability of the solar thermal energy.
Alternatively, a form of MPC, termed Economic Model Predict Control (EMPC) can dictate real-time dynamic economic optimization while meeting input constraints and other process constraints such as safety and stability constraints. Although EMPC schemes for ordinary differential equations (ODEs) were extensively studied in the control field, a small number of EMPC schemes were developed for differential-algebraic equations (DAEs) [5]. To date, there is limited work on formulating an EMPC or MPC paradigm that can operate the DCMC process in a time-varying fashion while meeting inputs and process operation constraints.
Thus, there is a need for a novel MPC model for DCMD systems that maximizes water production and takes into consideration various process constraints, and also avoids the limitations of the models discussed above.
According to an embodiment, there is a method for controlling a direct contact membrane distillation (DCMD) system. The method includes modeling the DCMD system with differential-algebraic equations (DAEs), wherein the DAEs include process states {tilde over (x)}(tk) and an input state u(tk); selecting a value for the input variable u(tk) for a time tk; estimating the process states {tilde over (x)}(tk) based on the DAEs and the input state u(tk); checking that a boundedness function G applied to the process states {tilde over (x)}(tk) is smaller than a desired steady-state point ρe, and minimizing an objective function, which depends on the process states {tilde over (x)}(tk) and the input state u(tk), to determine an updated input state u(tk+1) for a next time tk+1. The process states {tilde over (x)}(tk) include temperatures and heat flow rates.
According to another embodiment, there is a method for controlling a direct contact membrane distillation (DCMD) system, and the method includes modeling the DCMD system with differential-algebraic equations (DAEs), wherein the DAEs include process states {tilde over (x)}(tk) and an input state u(tk); selecting a value for the input variable u(tk) for a time tk; estimating the process states {tilde over (x)}(tk) based on the DAEs and the input state u(tk); checking that a boundedness function G applied to the process states {tilde over (x)}(tk) is smaller than a desired steady-state point ρe; and minimizing an objective function, which depends on a distilled water flux J and a slack variable δ(tk), to determine an updated input state u(tk+1) for a next time tk+1. The process states {tilde over (x)}(tk) include temperatures and heat flow rates.
According to yet another embodiment, there is a direct contact membrane distillation (DCMD) system that includes a distillation membrane, a feed part in contact with the distillation membrane, the feed part configured to receive a feed, a permeate part in contact with the distillation membrane, the permeate part configured to receive a permeate, and a controller configured to control a flow of the feed. The controller is configured to model the DCMD system with differential-algebraic equations (DAEs), wherein the DAEs include process states {tilde over (x)}(tk) and an input state u(tk); select a value for the input variable u(tk) for a time tk; estimate the process states {tilde over (x)}(tk) based on the DAEs and the input state u(tk); check that a boundedness function G applied to the process states {tilde over (x)}(tk) is smaller than a desired steady-state point ρe, and minimize an objective function to determine an updated input state u(tk+1) for a next time tk+1. The objective function depends on a distilled water flux J and a slack variable δ(tk) or the objective function depends on the process states {tilde over (x)}(tk) and the input state u(tk).
For a more complete understanding of the present invention, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
The following description of the embodiments refers to the accompanying drawings. The same reference numbers in different drawings identify the same or similar elements. The following detailed description does not limit the invention. Instead, the scope of the invention is defined by the appended claims. The following embodiments are discussed, for simplicity, with regard to a distillation system that uses a direct membrane contact distillation process. However, the embodiments to be discussed next are not limited to such a system or process, but they may be applied to other systems or distillation processes.
Reference throughout the specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with an embodiment is included in at least one embodiment of the subject matter disclosed. Thus, the appearance of the phrases “in one embodiment” or “in an embodiment” in various places throughout the specification is not necessarily referring to the same embodiment. Further, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
According to the following embodiments, two MPC schemes that can maximize the water production rate of DCMD modules are discussed herein. The first MPC scheme is formulated to track an optimal set-point while taking input and stability constraints into account. The second MPC scheme, termed Economic Model Predictive Control (EMPC), is formulated to maximize the distilled water flux while meeting input, stability and other process operational constraints. The proposed MPC methods aim to maximize the production rate of the distilled water. Stability constraints and other operational constraints such as input constraints and temperature gradient-based constraints were incorporated into the MPC designs. To illustrate the effectiveness of the two proposed control paradigms, the total water production under both control designs is investigated.
Before discussing these two novel methods, a mathematical description of the DCMD module is presented. The DCMD module implements an MD process by having a hot feed side and a cold permeate side separated by a hydrophobic membrane. A schematic diagram of the DCMD module 100 is shown in
Note that the feed 150, after entering the feed part 120, can be described as having a hotter bulk stream 152 and a colder membrane interface stream 154. Similarly, the permeate 160, after entering the permeate part 130, can be described as having a colder bulk stream 162 and a hotter membrane interface stream 164. The temperature of each of these streams is illustrated in
In this process, the heat and mass transfers occur simultaneously. The feed vapor is transported through the hydrophobic membrane 110 to the permeate part 130 due to the vapor pressure difference between the two sides of the membrane pores. Then, the water vapor condenses in the permeate side. Since only water vapor is allowed through the hydrophobic membrane 110, the DMCD process has a 100% rejection rate of ions. A 2D Advection-Diffusion Equation was utilized in the past to describe the heat and mass transfer mechanisms that take place inside the DCMD module. A partial differential equation (PDE)-based model for describing the DCMD process is known. However, the PDE-based models pose computational challenges when they are used in model-based control designs.
Alternatively, a nonlinear DAE-based model [6] can be used for the DCMD module. The DAE-based model is more suitable for model-based control designs because it is a reduced-order version of an equivalent PDE model. This model reduction can help decrease the overall computation cost of the model-based control design. Thus, the embodiments discussed herein considers the DAE-based model proposed in [6], which is briefly discussed now.
To consider spatial variations on the temperature along the feed and permeate flow directions, the DCMD module is divided into a series of n control-volume cells, one of these cells 200 being illustrated in
An analogous electrical thermal network for each cell is constructed and its elements are parameterized. Based on the lumped capacitance method, a dynamical DAE-based model for the DCMD is derived as follows [6], [7]:
E{dot over (x)}(t)=F(x(t))x(t)+Bu(t) (1)
y=Cx(t) (1)
where the input variable u(t), matrices E, B and C, and function F are introduced later. Vector x(t)∈R6N
where Nc is the number of control-volume cells chosen to model the system, Qf
where the dimensions of the matrix blocks are shown in Table 1, in
The matrix E in equation (1) is singular, and it is structured as follows:
where I is the identity matrix and 0 is the zero matrix of the appropriate size.
The transfer input states matrix B in equation (1) belongs to space R6N
B=[8αMf
where α and Mf
The input variable u(t) of the DAE of equation (1) is chosen in this embodiment to be the feed inlet temperature Tf
The observation matrix C∈R2×6N
C=[02×4N
The DCMD process described by equation (1) is operated around an open-loop, stable, steady-state point, which corresponds to a feed inlet temperature that is equal to 50° C., i.e., 0=f (xss, uss), where uss=50° C. and xss=0, which is based on experience. This model captures the spatial and temporal responses of the temperature distribution along the flow direction. Also, the model is able to accurately predict the distilled water flux output based on various experimental validation known in the art [6], [7].
With the DAE system described above, a differentiation index of such system is now introduced as follows. The differentiation index of the DAEs is defined as the minimum number of times one has to differentiate the DAEs to get an ODEs. In other words, the differentiation index represents how far the DAE system is from the ODE system. The index is an important indicator that qualitatively measures the complexity of solving DAEs. DAEs with differentiation index one are much easier to solve than the ones with a higher index.
The index of the DCMD module described by equation (1) is now evaluated. For the DCMD module 100, equation (1) can be written as follows:
where {tilde over (E)} is a full row rank matrix, Fd(x) and Fa(x) are the first 4Nc+2 rows and last 2Nc+2 rows of F(x(t)), respectively, Bd is a vector with the first 4Nc+2 elements of matrix B from equation (5), and Ba contains the remaining part of matrix B. After taking the derivative of the algebraic part of equation (7) with respect to time, i.e., 0=Fa(x)x(t)+Bau(t), the following system is obtained:
The matrix [{tilde over (E)}−Fa(x)]T may or may not be singular. If this matrix is nonsingular, then the DAEs system of equation (1) is of index one. However, if the matrix [{tilde over (E)}−Fa(x)]T is singular, then the procedure can be repeated until the non-singularity is reached. The number of times the algebraic equations need to be differentiated so that the matrix becomes nonsingular will be the index of the DAEs. For the DCMD module 100, the matrix [{tilde over (E)}−Fa(x)]T can be written as:
The first 4Nc+4 rows of the matrix [{tilde over (E)}−Fa(x)]T are full row rank because of the upper triangle structure. In the last 2Nc rows, if the submatrix S consisting of −Z3, −Z4, −Z6 and −Z7 in equation (9) is a full row rank, then the whole rectangular matrix is full row rank. From [6], it is known that Z3, Z4, Z6 and Z7 are all diagonal matrices with a size Nc×Nc. Assuming that matrix Z3=diag(a), Z4=diag(b(x)), Z6=diag(c(x)), and Z7=diag(d(x)), then the matrix S can be written as:
After applying the row elimination to eliminate −b(x) in the matrix in equation (10), the following upper triangle structure is obtained:
where −e(x)=a−b(x)c(x)/d(x). The condition for matrix S to be full rank is:
ad(x)≠b(x)c(x), where d(x)≠0. (12)
Based on [7], it is known that d(x)>0, ad(x)<0, and b(x)c(x)>0 for all x∈R6N
Based on the above equations, two novel model predictive control schemes for the DCMD module are now introduced. The first scheme, an MPC scheme, operates the DCMD module around an optimal steady-state point. Unlike the MPC scheme, the second scheme proposes an EMPC paradigm that operates the DCMD module in a time-varying fashion. Both MPC paradigms account for the input and process operational constraints. These two schemes are now discussed in this order.
A traditional MPC scheme is an optimization-based control methodology mostly adopted in chemical and petrochemical industry. The control objective of the MPC scheme is to steer the closed-loop system to a steady-state point while meeting process and input constraints. This is achieved by minimizing a quadratic function that penalizes the deviation of the process states (e.g., membrane temperature in the cell shown in
where u(t) denotes the manipulated input trajectory (the feed inlet temperature in this embodiment, but it also can be the feed inlet mass flow rate Mf
For the DCMD module described by equation (1), the weight that corresponds to heat transfer rate states is set to be equal to 0.01, and 1 for the temperature states. At the beginning of each sampling time tk, the DAEs described by equation (13b) is solved to predict the DCMD process state over the entire prediction horizon NA, where the predicted states are denoted as {tilde over (x)}(t). The initial condition of equation (13b) is obtained from the state measurement at tk (see equation (13d)). The optimal steady-state that the DCMD module is operating at is a stable one. Hence, it is possible to enforce a boundedness constraint that can keep the closed-loop state within a region around such point ρe as defined by equation (13e). The value of the steady-state point ρe may be determined experimentally. In one application, the boundedness function is defined as G({tilde over (x)})=({tilde over (x)}−xss)TETP({tilde over (x)}−xss), where P is a positive definite matrix such that ETP≥0. In this embodiment, the P is chosen the same as weight matrix W, and E is the singular matrix as shown in equation (4). Finally, a smoothness constraint, as defined in equation (13f), is introduced to restrict the difference between two consecutive control actions, so that they are not greater than 3° C. Other values may be used.
A method for applying this scheme to an MD system is now discussed with regard to
The method illustrated in
According to another embodiment, an economic model predictive control (EMPC) scheme is now discussed. Unlike the MPC design of equations (13a) to (13f), the EMPC scheme maximizes a stage cost function that reflects the process economics in a time-varying fashion (i.e., no steady-state value needed to be reached). For the DCMD process of equation (1), in this embodiment, the stage cost function is the distilled water production rate. Therefore, the control objective of the proposed EMPC scheme is to maximize the distilled water flux while meeting the existing process and input constraints. In order to achieve this, the following optimization problem is solved at every sampling time:
In this formulation, in addition to the input decision variable u(t), another decision variable, called herein the slack variable δ(t)≥0 is optimized within the EMPC formulation of equation (14a). The objective function of the EMPC scheme illustrated in equation (14a) includes two terms. The first term Je({tilde over (x)}(τ), u(τ)) represents the economic cost function which is the distilled water flux. The second term includes a penalization term of the slack variable δ(t). A tuning parameter that adjusts the tradeoff between the two terms in equation (14a) is denoted by ω. The term ΔT(t) defines the temperature difference between the feed side and permeate side along the membrane. To achieve optimal distillation performance, the value of the term ΔT(t) should be kept constant along the membrane. Because the permeate inlet temperature is constant, only the inlet feed temperature variable u(t) can change the value of ΔT(t). Therefore, imposing any constraint on the term ΔT(t) will directly impose limitations on the inlet feed temperature u(t).
The slack variable δ(t) is utilized to relax the hard constraint imposed by equation (14h) on the term ΔT(t). Due to the discrepancy of the solar thermal energy between two consecutive hours, the value of ΔT(t) is restricted to be equal to 25° C. for the first half of the operating period and 17° C. for the remaining period of operation, as noted in equation (14h). Other values may be selected for these temperatures or more temperature intervals may be used. By setting these values in equation (14h), one can see the flexibility of the EMPC scheme as there is no specific operating point to target, and thus, the process can be operated in a time-varying fashion to optimize the process economics based on a more general economic cost and other economically oriented constraints. The remaining constraints and notations are similar to that of equations (13a) to (13f).
This scheme may be implemented in the system 500 discussed above as now discussed. In step 600, in
The MPC method illustrated in
For these simulations, the DCMD process of equation (1) was used when operated by the proposed MPC scheme illustrated in
The EMPC simulation results are now discussed. To demonstrate the effectiveness of the time-varying operation that the proposed EMPC method of
where ζ and λ refer to the membrane mass transfer coefficient and the mole fraction of NaCl in the feed stream, respectively. The temperature at the membrane-feed interface and the temperature at the membrane-permeate interface are denoted by Tmf and Tmp. Both temperatures Tmf and Tmp are process states of the DCMD system of equation (1). The tuning parameter w of equation (14a) is chosen to be 0.7 throughout the simulation.
Next, the performance of the system 500 when controlled with the MPC method of
The above-discussed procedures and methods may be implemented in a computing device (control system 550) as illustrated in
Computing device 1600 suitable for performing the activities described in the exemplary embodiments may include a server 1601. Such a server 1601 may include a central processor (CPU) 1602 coupled to a random access memory (RAM) 1604 and to a read-only memory (ROM) 1606. ROM 1606 may also be other types of storage media to store programs, such as programmable ROM (PROM), erasable PROM (EPROM), etc. Processor 1602 may communicate with other internal and external components through input/output (I/O) circuitry 1608 and bussing 1610 to provide control signals and the like. Processor 1602 carries out a variety of functions as are known in the art, as dictated by software and/or firmware instructions.
Server 1601 may also include one or more data storage devices, including hard drives 1612, CD-ROM drives 1614 and other hardware capable of reading and/or storing information, such as DVD, etc. In one embodiment, software for carrying out the above-discussed steps may be stored and distributed on a CD-ROM or DVD 1616, a USB storage device 1618 or other form of media capable of portably storing information. These storage media may be inserted into, and read by, devices such as CD-ROM drive 1614, disk drive 1612, etc. Server 1601 may be coupled to a display 1620, which may be any type of known display or presentation screen, such as LCD, plasma display, cathode ray tube (CRT), etc. A user input interface 1622 is provided, including one or more user interface mechanisms such as a mouse, keyboard, microphone, touchpad, touch screen, voice-recognition system, etc.
Server 1601 may be coupled to other devices, such as pumps, pressure sensors, temperature sensors, etc. The server may be part of a larger network configuration as in a global area network (GAN) such as the Internet 1628, which allows ultimate connection to various landline and/or mobile computing devices.
The control system 550 may be configured to implement the following method for controlling the DCMD system 500, which is discussed with regard to
In one application, the input state is a feed input temperature. In another application, the input state is a feed inlet mass flow rate. The method may further include a step of verifying that the input state u(tk) belongs to a convex set over a prediction horizon, and/or verifying that the input state u(tk) at the time tk is not larger than a previous input state u(tk−1) by more than a given threshold value. The step of estimating may further include applying a transit input states matrix B to the input state to obtain a first term; applying a function F to the input states to obtain a second term; and adding the first and second terms and making them equal to a matrix E applied to a time derivative of the input states to obtain the DAEs.
In one application, the objective function is defined as a sum of a first term (A), which includes a product of (1) a transpose of the input states, (2) a weight matrix W, (3) the input states, and a second term (B), which includes (4) a transpose of the input state, (5) a weight matrix R, and (3) the input state.
According to another embodiment, the DCMD system 500 may be controlled with a different method. This method, as illustrated in
In one application, the input state is a feed input temperature. In another application, the input state is a feed inlet mass flow rate. The distilled water flux J depends on the process states and the input state. The slack variable δ(tk) is added to an optimal temperature to define a temperature difference between a feed side and a permeate side of a membrane that is used by the DCMD system. In one embodiment, the optimal temperature has a first set value for a first period and a second set value for a second time period.
In one embodiment, the method may further include a step of verifying that the input state u(tk) belongs to a convex set over a prediction horizon, and/or a step of verifying that the input state u(tk) at the time tk is not larger than a previous input state u(tk−1) by more than a given threshold value. The step of estimating may further include applying a transit input states matrix B to the input state to obtain a first term; applying a function F to the input states to obtain a second term; and adding the first and second terms and making them equal to a matrix E applied to a time derivative of the input states to obtain the DAEs. In one application, the objective function is defined as a sum of the distilled water flux J and square of an absolute value of the slack variable δ(tk).
The disclosed embodiments provide methods for controlling a DCMD system for generating distilled water. It should be understood that this description is not intended to limit the invention. On the contrary, the embodiments are intended to cover alternatives, modifications and equivalents, which are included in the spirit and scope of the invention as defined by the appended claims. Further, in the detailed description of the embodiments, numerous specific details are set forth in order to provide a comprehensive understanding of the claimed invention. However, one skilled in the art would understand that various embodiments may be practiced without such specific details.
Although the features and elements of the present embodiments are described in the embodiments in particular combinations, each feature or element can be used alone without the other features and elements of the embodiments or in various combinations with or without other features and elements disclosed herein.
This written description uses examples of the subject matter disclosed to enable any person skilled in the art to practice the same, including making and using any devices or systems and performing any incorporated methods. The patentable scope of the subject matter is defined by the claims, and may include other examples that occur to those skilled in the art. Such other examples are intended to be within the scope of the claims.
This application claims priority to U.S. Provisional Patent Application No. 62/807,514, filed on Feb. 19, 2019, entitled “OPTIMAL OPERATION OF MEMBRANE DISTILLATION PROCESSES VIA ECONOMIC MODEL PREDICTIVE CONTROL PARADIGMS,” the disclosure of which is incorporated herein by reference in its entirety.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/IB2020/051219 | 2/13/2020 | WO | 00 |
Number | Date | Country | |
---|---|---|---|
62807514 | Feb 2019 | US |