Improvement of PV / T Based Reverse Osmosis Desalination Plant Performances Using Fuzzy Logic Controller

Photovoltaic based reverse osmosis desalination systems (PV/RO) present an effective method of water desalination especially in remote areas. The increase of the feed water temperature leads to an amelioration of the plant performances. Photovoltaic Thermal Collector (PV/T) represents an ideal power source as it provides both electric and thermal energies for the reverse osmosis process. Nevertheless, PV/T based RO plants should be controlled in order to solve operation problems related to electrical efficiency, reverse osmosis membrane, produced water and the rejected salts. This paper suggests a fuzzy logic controller for the flow rate of the circulating fluid into the PV/T collectors so as to ameliorate the system performances. The designed controller has improved the PV/T field electrical efficiency and preserved the reverse osmosis membrane which upgrades the system productivity. LABVIEW software is used to simulate the controlled system and validate the effectiveness of the controller.


Introduction
Electric energy and fresh water supply present the major challenge in many parts of the world [1].Fresh water demand for drinking, irrigation, industrial use, and household has doubled.Desalination of seawater and brackish water may solve water deficiency all over the world [2].In addition, the energetic deficit and the environmental pollution from conventional energy resources (fossil fuels) promote the use of renewable energy for wa-ter desalination.Hence, desalination systems supplied by renewable energy resources are widely discussed in literature [3].The choice of the appropriate desalination system depends essentially on the plant size, the exploited renewable energy resource, and the salinity of feed water.It is concluded that photovoltaic based solar energy is used with thermal desalination processes to cover the required thermal energy.In this case, desalination processes involve phase change such as the Multi Stage Flash (MSF) and the Multi Effect Distillation (MED) [4] [5].Moreover, solar energy is exploited to produce electrical energy while the process is membrane (Reverse Osmosis) or hybrid such as Membrane Distillation (MD) [6].
Reverse osmosis (RO) is considered as the most used desalination process due to its high recovery ratio and low energy consumption [7].Several researches focused on modeling Reverse Osmosis process in order to identify the process performance, and the energy consumption for the considered desalination process [8].Researchers evince that photovoltaic energy performs well when used for reverse osmosis desalination [9].
Many studies show feed water temperature impacts on RO process recovery ratio, the consumed energy per cubic meter and the quantity of salt rejection [10].Simulations and experiments show an improvement in RO process recovery ratio when feed water temperature increases [11] [12].Therefore, reverse osmosis desalination plants are controlled especially when the improvement of feed water temperature is reachable [13].
Photovoltaic thermal technology (PV/T) is a hybrid system which combines the functions of solar thermal collector and photovoltaic (PV) panel.As it provides heat production, fluid circulation in the back of PV/T panel improves electrical efficiency of PV cells [14].As for the PV/T produced thermal energy is used to heat seawater so as to increase the efficiency of (RO) desalination process [15].Different PV/T configurations and plants are studied and modeled [16].PV/T modeling aims essentially to quantify the produced electric and thermal energies.Additionally, the dynamic modeling evaluates temperature changes for each PV/T system segment (glass cover, photovoltaic cells, absorber plate, coolant fluid…).As well, sizing strategies are developed for PV/T based plants [17] [18].System analysis exhibits an improvement of PV cells efficiency compared to conventional photovoltaic panels [19].In fact, the control of PV/T systems is based on varying the circulated fluid flow rate [20] [21].This variation allows the control of electric and thermal efficiencies of the PV/T collector.Indeed, the control balances between thermal and electrical productions in order to favor the production of one of these two energy forms [22].
Several researchers studied control of solar powered reverse osmosis systems.Control for reverse osmosis desalination serves to guarantee good quality of the produced water (acceptable salinity) and to protect the RO membrane.In several cases, the control is an energy management optimization which purposes to reduce the consumed energy by the desalination process and to amplify water production.Therefore, techniques such as Dynamic Matrix Programming, PID, Model Predictive Control and Fault Tolerant were applied [23]- [26].Additionally, Fuzzy Logic Controller (FLC) is used extensively in industrial applications due to its simplicity as a process to control system, and its low cost [27] [28].Fuzzy logic controller (FLC) presents a rule-based controller where the control action depends on a defined set of rules, and on the considered input variables.It consists of a control algorithm based on a linguistic control strategy.The consequent results from a linear input-output relation in a region of the state space.Recently, considerable development in (FLC) theory was shown.Therefore, over the past few decades, Fuzzy Control is being utilized in various domains.It is used successfully and extensively to control solar based systems: with conventional solar thermal plants to maximize heat production [29], and with photovoltaic based plants for an energy management [30].
Moreover, the economic aspect is very important especially for renewable energy based systems.In fact, the economic analysis presents a significant clue to valorize the exploitation of renewable energy resources [31].For water desalination, the economic analysis is habitually to compare water production cost of renewable energy based systems and traditional desalination systems [32].
In this paper, the FLC is used to control a PV/T based reverse osmosis desalination system.Thermal and electric productions are both controlled in order to optimize the PV/T field productivity.In addition, the used FLC aims to ameliorate the RO unit recovery and also to protect the RO membrane from an overheating.Fuzzy Logic Controller is utilized to control the fluid flow rate in order to improve the system performances.The implemented FLC balances between the improvement of the PV/T field electrical efficiency and the RO unit recovery ratio.The paper will start with a modeling part where each system block is modeled; then the implemented FLC is identified; the final section is reserved to discuss the obtained results concerning the energetic and the economic gains.

Plant Description
The considered plant is shown in Figure 1.A coolant fluid circulates into PV/T tubes and transfers the absorbed heat to the exchanger (1).The produced thermal energy is used to heat pumped water stored in the boiler (2).The coolant fluid serves also to reduce photovoltaic cells temperature in order to ameliorate the electrical efficiency of the PV/T field (3).RO unit (4) is supplied by water from the boiler (2) and by electrical energy by the PV/T electrical generation.Heated pumped water will be transferred to the RO unit where the desalination stage is accomplished.Fluid flow rate is varied by variable speed pump (5) according to PV cells temperature, and water temperature in the boiler which presents a main factor that impacts RO unit performance.Produced electrical energy is used to supply variable speed pump, feed water pump (6), and the high pressure pump of the RO unit.

PV/T Module Modeling
The most important components in the PV/T collector are the PV plate and the solar thermal absorber.PV/T panel modeling is based on heat transfer principle.The sheet and tube PV/T system used in the present study composed of a PV module, a thermal absorber, glazing, working fluid, tube, and insulation (Figure 2).System modeling is based on the energy balance equations developed by Chow [28].The following assumptions are considered in the model development: 1) In all tubes sections, the mass flow rate of the working fluid is invariant.
2) The material properties of all PV/T system components are unchanged.
3) We compute the heat transfer coefficients in real time.
The temperature change of the glass cover (T g ) is defined by [16]: M g and C g are the mass and the specific heat coefficient of the glass cover respectively.T presents the temperature, and the subscripts "g", "a", and "p" present the glass cover, the ambient, and the PV plate respectively.G presents the solar radiation (W/m 2 ).
With (A) is the PV/T collector area and [28]: .
The absorptance and the transmittance of the glass are defined respectively by: δ g , R g , and θ i are the refractive index, the thickness of the glass cover, and the incident angle respectively.The convective heat transfer coefficient due to wind is given by: 3 2.8 with u a is the wind velocity.
The heat transfer coefficient between glass cover and PV plate is expressed by: Θ, ε, and σ present the temperature (˚K), the emissivity, and the Stefan Boltzmann constant respectively.The radiative heat transfer coefficient between the glass cover and the surroundings is defined by the following equation: .
Hollands et al., 1976 determine the Nausselt number by the following equation: ( ) with: where, the Rayleigh (R a ) number defined as: β a , g, κ a , and ν a , are the coefficient of thermal expansion, the gravitational constant, thermal diffusivity, and kinematic viscosity of air respectively.
The temperature change of the PV plate is defined by [16]

T M C G E h A T T h A T T h A T T t
with E is the produced electric power and: D o and W are the outer diameter of tubes and spacing tubes respectively.The plate absorptance is calculated by the following relation: The conductive heat transfer coefficient between the collector and the PV plate is defined by: .
h pt presents the conductive heat transfer coefficient between the PV plate and tubes.k ad and δ ad are the thermal conductivity and the adhesive layer thickness, respectively.k p and δ p are the thermal conductivity and the PV plate thickness respectively.L is the length of the tube."τ p " and "r" are the transmittance and the reflectance of the glass for diffuse radiation, respectively.And: . 4 The electrical power produced by the PV/T module is calculated by the following expression: where "p" is the ratio of the cell area to the collector area also known as the packing factor.The PV cells efficiency is determined by: ( ) β r and η r present the temperature coefficient and the reference cell efficiency respectively.The heat balance on the absorber plate is determined by the following equation: The conductive heat transfer coefficient between the absorber plate and insulation is defined by: 2 .
δ and k are thickness and thermal conductivity of the insulation layer respectively.The subscripts "c", "t", and "i" refer to the absorber plate, tubes, and the insulation, respectively.
The heat transfer coefficient between tubes and the absorber plate is defined by: 2 . With: .
The energy balance equation for tubes is given by: With: .
The transferred energy to the circulated fluid is determined by: T fo and T f2 are respectively fluid temperature inlet PV/T tubes and fluid temperature outlet PV/T tube.h tf is the heat transfer coefficient between tubes and the circulated fluid.The temperature of the circulated fluid into tubes is defined by: For the insulation layer, it is considered that: i o D δ  , and h it = h ci •h f presents the convective heat transfer coefficient. 1 1 D i is the inlet tube diameter.The energy balance equation for the insulation is given by: With:

Exchanger and Boiler Modeling
The transferred energy from the working fluid to pumped water by the exchanger is determined as follows [30]: .
The subscripts "tk,i" and "pump" refer to water temperature inlet the boiler (outlet the exchanger) and pumped feed water, respectively.
Water temperature in the boiler is determined by: M tk , C tk , are the mass, and the specific heat coefficient of water in the boiler, respectively.N, w m  , h tk , and A tk are the tubes number of the PV/T collector, water mass flow rate, heat transfer coefficient of the boiler, and the boiler surface, respectively.

Reverse Osmosis Unit Modeling
Reverse osmosis presents an effective filtration process for water purification.In fact, the water enters the cartridge and under the applied pressure, water molecules pass the membrane while the other molecules are rejected with a portion of unfiltered water (Figure 3).
Reverse osmosis modeling aims to identify: -Mass flow rate of the permeate.
-Water recovery rate.
Reverse Osmosis modeling is based on the solution diffusion principle.The permeate flow rate (M p [m 3 /s]) is determined by the following relation [29]: with S M is the membrane active area in (m 2 ).
Permeate mass flux through the membrane (J w ) and the salt mass flux through the membrane (J s ), are defined respectively by the following equations: ( ) ( ) A m , B, and S represents the membrane pure water permeability (kg•m −2 •s −1 ), the membrane salts permeability (kg•m −2 •s −1 ), and the RO membrane surface area (m 2 ) respectively.The transmembrane pressure (ΔP) and the transmembrane osmotic pressure (Δπ) are expressed as follows: . 2 The pressure drop along the membrane channel (ΔP drop ) is defined by: . 2 A ref presents the reference permeability at T 0 = 298 K without fouling, TCF is the temperature correction factor, and FF is the fouling factor.The influence of membrane fouling on membrane permeability is expressed by the fouling factor FF which varies between 100% for new membranes and 80% for 4 years old membranes.
The temperature correction factor (TCF) is defined as a function of feed water temperature.It is determined by the following relation [23]:

Control Objectives
Even if the considered plant architecture can perform well, several operating problems can appear.In fact, Photovoltaic cells temperature impacts directly the electric efficiency of the PV/T field: the increase of Photovoltaic cells temperature decreases the PV/T field electrical efficiency.In addition, for a reverse osmosis desalination process, an overheat of feed water temperature destruct the reverse osmosis membrane.Therefore, the operating water temperature is limited by the manufacturer to 45˚C [11].Furthermore, the rejected salt quantity should be controlled as well as the produced desalinated water which should satisfy the need.
Hence, a Fuzzy Logic Controller based on controlling the flow rate of the circulated fluid into the PV/T panels is designed in order to ameliorate the system performances.The designed control system aims essentially to improve the PV/T electrical efficiency and preserve the reverse osmosis membrane.In addition, it aims to reduce the rejected salts quantity and, upgrade the system productivity.

Fuzzy Logic Control
Fuzzy Logic Control provides an effective manner to draw definite conclusions from imprecise information or vague ambiguous.It presents a suitable way to control solar based systems such as solar thermal plants.FLC is a control system where a mathematical system analyzes analog inputs related to logical variables ranged between 0 and 1.In fact, FLC is based on a control algorithm of linguistic control strategy Depending on a defined set of rules.The consequent results from a linear input-output relation in a region of the state space.The main blocks in the fuzzy logic controller are (Figure 4): -Fuzzification.

Fuzzification
It consists of converting numerical input variables into linguistic variables.In this step we identify which state variables will be considered as input variables in the fuzzy logic controller.Each piece of input data is converted to degrees of membership by a lookup in a number of membership functions.The input variables in our system are PV cells temperature and water temperature whose are the main impactful factors on PV/T field efficiency and RO unit performance.PV cells temperature is considered hot when it surpasses 40˚C.From this value we start to think about cooling PV/T cells by increasing the fluid flow rate in order to ameliorate the electric efficiency of the PV/T field.Concerning the feed water temperature, from 30˚C, water temperature is considered hot even if the operating temperature limit is 45˚C in order to prevent any risk of exceeding the operating temperature limit.
The chosen Fuzzifier type is triangular (Figure 5 and Figure 6).

Rule Base
Rules are presented in "If… then" format.The collect of rules is named "rule base".The computer executes the rules and determines the control signal corresponding to the considered measured inputs.The following table shows the fuzzy controller rule base (Table 1).In fact, the control balances between cooling the PV/T cells to promote electric energy production and heating feed water temperature to ameliorate the RO system recovery rate.The relationship between the Fuzzy system inputs and output is represented by Figure 7.

Defuzzification
Defuzzification consists of combining and converting all the actions into an output signal, this signal presents the control output signal attributed to the system.The considered method of Defuzzification is "center of gravity".The controlled signal in our system is fluid flow rate.The membership function distribution of controlled signal is presented by the following figure (Figure 8).

Energetic Gain
Modeled system and the developed fuzzy controller are tested for the considered distribution of solar radiation and ambient temperature shown in Figure 9. Simulation was performed using LABVIEW.
Table 2 represents the considered system parameters during the simulation.The controlled system is used to desalinate seawater.The salinity of the considered seawater is 36000 ppm.It is acquired that potable water salinity should be lower than 500 ppm.RO model simulation shows that feed water temperature should be kept lower than 45˚C in order to guarantee an acceptable permeate salinity (Figure 10).
The simulation illustrates the advantages of the developed fuzzy controller.The employed fuzzy controller balances between the improvement of PV/T field efficiency and the amelioration of the reverse osmosis unit performance.Temperature evolution of each system blocks is shown in Figure 11.In fact, it is shown that water temperature in the boiler is maintained lower than the maximum temperature acceptable to protect the reverse osmosis membrane and to guarantee satisfactory water salinity (Figure 11).In addition, PV/T cell temperature varies with solar radiation and ambient temperature changes.The maximum temperature exceeded by PV/T cell is 48˚C.It is clear that fluid circulation prevents the overheating of solar cells even for important solar radiation and elevated ambient temperature.
PV/T field electric efficiency is shown in Figure 12.During the simulation time, electric efficiency is kept near to the reference efficiency.Also, PV/T electrical efficiency is kept higher than the electrical efficiency of a conventional PV panel in the same conditions (Figure 13).
An improvement in the recovery rate of the reverse osmosis unit is also mentioned.The simulation shows that the recovery rate exceeds 47%.This presents a gain of 12% compared to standards conditions where the recovery rate is equal to 35% with a feed water temperature equal to 20˚C (Figure 14).Consequently, the consumed power will be reduced as well as the quantity of pumped water.Fluid mass flow rate varies according to the state space variables and the system states (PV/T cell temperature, and boiler water temperature), in order to optimize the plant yield as shown in Figure 15.
Moreover, the produced permeate salinity is kept lower than the acceptable limit (500 ppm) (Figure 16).

Economic Benefit
The method of the life cycle cost (LCC) is used to evaluate the financial viability of the system compared to a similar plant supplied by photovoltaic panels.It is considered that the two compared plants serve to cover a daily water need equal to 227 m 3 .The total cost throughout its life including planning, design, acquisition and support costs and any other costs directly attributable to owning or using the asset.Life Cycle Costing adds all the costs of alternatives over their life period and enables an evaluation on a common basis for the period of interest (usually using discounted costs).This enables decisions on acquisition, maintenance, refurbishment or disposal to be made in the light of full cost implications (Table 3 and Table 4).Compared to the technology using PV based plant, the proposed concept and the developed control strategy reduce the reserved space for the implementation next to the initial cost which will be reduced (Table 5).Indeed, PV/T technology can refer PV collectors to power reverse osmosis desalination systems.Additionally, even if the PV/T based system is more complicated especially with more components and blocks in the installation like the heating water system, plant cost and water production cost still lower than PV system.Moreover, with an optimum control strategy the plant performance and water production cost will be reduced more.

Conclusions
Architecture of a PV/T based reverse osmosis desalination plant presented and system functioning is detailed.The system description shows how to make use of PV/T technology to improve reverse osmosis desalination unit profitability.Dynamic model for the conceived system is developed in order to evaluate the system performances.Indeed, the system is subdivided into different subsystems and a state space model presentation is considered to perform the simulation using LABVIEW.
A Fuzzy Logic Controller is designed to improve the system productivity.The simulation shows an improvement of the plant performances (PV/T field efficiency and RO unit recovery).Indeed, the designed Fuzzy Logic Controller ensures an energy saving by reducing the consumed energy in the desalination process per cubic meter, and improving the PV/T field electric efficiency.Furthermore, RO membrane is protected by maintaining the feed water temperature lower than feed water limit temperature of reverse osmosis membrane, and consequently, the quantity of rejected salts is reduced which presents an ecologic advantage.
Additionally, the developed economic analysis shows that an important benefit is afforded by using PV/T technology to power reverse osmosis desalination systems.In fact, the comparison shows that for the same system capacity, the plant initial cost for PV/T based system is lower than for PV based system.Consequently, water production cost is reduced.

Figure 1 .
Figure 1.Schematic diagram of the desalination plant.

Figure 2 .
Figure 2. Sheet and tube configuration of a PV/T collector.
P f and P p are the feed pressure, and the permeate pressure respectively.constant (R) is equal to 8.314 J•mol −1 •K −1 •T, ρ, and M NaCl are water temperature, water density, and the molar mass of NaCl respectively.

Figure 5 .
Figure 5. Membership function of PV cell temperature.

Figure 6 .
Figure 6.Membership function of tanked water temperature.

Figure 8 .Figure 9 .
Figure 8. Membership function of the fluid flow rate.

Table 2 .
Data used for simulation.

Table 3 .
PV/T based desalination plant cost analysis using LCC method.

Table 4 .
PV based desalination plant cost analysis using LCC method.