1 Introduction

The surge in agriculture and industrial activity and increasing population has been responsible for the increase in the world water demands. Brackish or seawater desalination offers a promising choice for water security, especially for the coastal countries. Desalination technology can produce fresh water from salty water which is done based on the separation of water, salty and other insoluble solids in water. One of the desalination methods is thermal process which is associated with phase change (evaporation and distillation). These processes need remarkable energy due to high latent heat of water. The main desalination systems based on distillation include: multiple effect distillation (MED), multistage flash (MSF), multi-effect distillation with thermal vapor compression (MED-TVC), Multi-effect distillation with mechanical vapor compression (MED-MVC).

Right now, the thermal process is used solely or in combination for desalination in large scale (Ettouney and El-Dessouky 1999). From among thermal desalination systems, MED is the most efficient thermal distillation process in terms of thermodynamic. One of the advantages of this type of desalination is its low operating temperature. Energy consumption of MED desalination technology is less than MSF (Ophir and Lokiec 2005; Darwish 1995; Michels 1993). Thermodynamic analysis of MED-TVC system is based on first and second law of thermodynamics. The first law is an important tool in assessing the total performance of the system while using thermodynamic analysis based on the second law which is known as exergy analysis can identify the destruction points and quality of energy.

Many researches have been done on thermodynamic modeling of thermal desalinations. El-Dessouky and Ettouney (1999) studied and compared all distillate thermal systems in terms of function and heat transfer areas upon providing an algorithm for simulating the process in the steady-state conditions. The results of their researches predict reducing function ration upon increasing input steam temperature.

Geankoplis (2003) presented a simple model of MED. The model is based on designing parameters including effect dimensions, heat transfer area, temperature profile and performance ratio.

Binamer (2013) computed and improved the performance of units of the system with 2.4, 3.8, and 6.5 MIGDFootnote 1 upon extending a mathematical model for MED system with thermal vapor compression by energy and exergy analysis. The results showed that the most exergy destruction occurs in the first effect and exergy destruction reduces upon increasing the number of effects.

Choi et al. (2005) presented exergy analysis for MED-TVC units which have been developed by Hyundai Heavy Industries Company. The units have the capacities of 1, 2.2, 3.5 and 4.4 MIGD. Exergy analysis showed that the main exergy destruction is in the thermo-compressor and effects.

Hamed et al. (1996) assessed the performance of MED-TVC desalination system. They analyzed exergy of this type of system and compared it with MEB and MVC desalination systems. The results showed that MED-TVC systems have more exergy output compared to other systems.

Al-Najem et al. (1997) studied single-effect SED-TVC system based on the first and second law of thermodynamics. The studies showed that steam ejector and evaporator are the main sources of exergy destruction in MED-TVC desalination.

Zhao et al. (2011) studied backward multi-effect distillation for high-salinity wastewater desalination. The high-salinity wastewater desalination was from a typical refinery in the northwest of china. The results indicated that more distillate products could be produced with high effect numbers and high effect numbers led to higher capital costs and distilled product cost. The gain output ratio (GOR) value could increase by the rise of evaporator temperature in last effect.

Sharaf et al. (2011) presented exergy and thermo-economic analysis for different configurations of MED with capacity of 100 m3/day by using solar power technology. They used two techniques for analysis, in the first technique only potable water is produced and in the second technique power electricity and desalted water are produced. The results showed that the desalination technique is considered more attractive than desalination and power technique due to higher gain ratio.

Mazini et al. (2014) developed a mathematical dynamic model for multi-effect desalination (MED) with thermal vapor compressor plant. They developed a model based on coupling the dynamic equations of material, salt and energy balance of the system. They validated the model by actual data of an operating plant in Kish Island (in the south of Iran).

Franz and Seifert (2015) described the coupling of a multi-effect distillation (MED) plant with a Clausius–Rankine cycle powered by a solar central receiver system. They developed a steady-state model of MED plant and deduced a correlation for the gained output ratio (GOR) as function of heating steam temperature, specific seawater mass flow and specific heat transfer surface of the desalination plant.

Abed et al. (2017) studied water desalination system driven by solar energy. The experimental and theoretical approaches were carried out for the multistage sola still design. The experimental approaches were executed for 5 months in the city of Kirkuk. Results showed that the system produced about 5 kg of clean water per day.

Hong et al. presented thermodynamic analysis and the energy and exergy flow diagrams for an evaporator–condenser-separated mechanical vapor compression (MVC) system. Results showed the exergy efficiency is low and the largest exergy loss occurs within the evaporator–condenser and the compressor (Hong et al. 2013).

Sarhaddi et al. (2011) obtained non-sensitive solutions in the multi-objective optimization of a photovoltaic/thermal (PVT) air collector. The overall energy efficiency and exergy efficiency have been selected as the objective functions.

Recently, new exergy and energy analysis for engineering systems has been proposed (Ameri et al. 2016; Naserian et al. 2016, 2017; Sharifishourabi et al. 2017).

In this research, a mathematical model has been presented for MED-TVC desalination system via EES software and the results of model have been validated with the actual operating data of a unit with 2400 m3 day−1 capacity in Bandar Abbas thermal power plant, and the destruction resulted from irreversibility in subsystem and leaving streams were studied via exergy analysis. Modeling and exergy analysis have been done for winter and summer, and the results have been compared together. Meanwhile, optimization has been done in EES software having used two-target genetic algorithm. The purposes of the study are maximizing distillate production and minimizing total exergy destruction rate.

2 Process Description

Figure 1 shows the schematic diagram of MED-TVC desalination system which is analyzed in this study. This system is composed of five evaporators (effects), one condenser, one steam-circulator thermo-compressor and a desuperheater.

Fig. 1
figure 1

A schematic diagram of MED-TVC system

The basis of fresh water production in this system is evaporation and distillation of seawater in a vacuum state which is occurred in the evaporators. The superheat steam enters to the system from the boiler and passes through thermo-compressor. It suctions some of the steam of the last effect which has the lowest pressure. Finally, it mixes with the steam of the desuperheater and changes its state to saturation. This steam enters the tubes of the first effect as energy supplier of the system.

Seawater is sprayed via special nozzles as falling film on horizontal tube in each effect. It is evaporated when it comes into contact with the surfaces of the hot tubes of each effect. The steam inside the tubes transfers its thermal energy to the seawater and distillates in the tubes. The seawater which sprays on the tubes is divided into the two streams. Some of them evaporate and go to the next effect, and others cannot be evaporated and collect at the bottom of the evaporator. This stream exits from the evaporator as brine or waste water. The produced vapor goes to the inside of the tube of the next effect. This stream inside the tubes condenses because it transfers its latent heat to the seawater sprayed on the tubes. This condensed water is gathered as fresh water in each effect. In other words, the condensation occurs inside the tubes and evaporation occurs outside the tubes. This process continues until the last effect. The produced vapor in the last effect is divided into two streams. Some of them are suctioned via thermo-compressor, and the rest of them are distillated via preheating the seawater in the condenser. The distillated water in the condenser is connected to the other distillated streams from the effects and is gathered as produced fresh water.

3 Modeling and System Analysis

A mathematical model has been used for MED-TVC desalination system for analyzing system based on first and second law of thermodynamics. This model has been presented by applying mass and energy conservation laws for thermo-compressor, effects, condenser and desuperheater (El-Dessouky and Ettouney 1999). For simplification of the system analysis, the following assumptions are considered:

  1. 1.

    The process is steady state.

  2. 2.

    Heat dissipation to environment is disregarded.

  3. 3.

    Produced water in each phase lacks salt.

  4. 4.

    Temperature difference among effects is similar, and it is considered as \( \Delta T \).

$$ T_{i - 1} - T_{i} = \Delta T $$
(1)
$$ \Delta T = \frac{{T_{\text{s}} - T_{\text{f}} }}{n + 1} $$
(2)
$$ T_{{{\text{v}},i}} = T_{i} - {\text{BPE}} $$
(3)

where \( T_{\text{s}} \) is input saturated steam temperature to the first effect tubes group, \( T_{\text{f}} \) is temperature of feed water, and n is number of effects.

According to Eq. (3), the temperature of produced vapor in each effect, \( T_{{{\text{v}},i}} \), is less than brine temperature (effect temperature) Ti. BPE is boiling point elevation which is computed as a function of temperature and salt concentration (salinity) of feed water.

  1. 5.

    According to the parallel feeding, feed water flow rate and salt concentration \( \left( {X_{\text{f}} } \right) \) are considered similar for all effects. Feed water flow rate \( \left( {F_{i} } \right) \) enters each effect with the Eq. (4).

$$ F_{i} = \frac{{M_{\text{f}} }}{n}\quad i = 1,2, \ldots ,n $$
(4)

According to the mass balance, output brine flow rate (Bi) of effects is obtained from Eqs. 5, 8 and 11. Salt concentration (\( X_{{{\text{b}}i}} \)) in output brine of each effect is obtained via Eqs. 6, 9 and 12. Output vapor flow rate (Di) of effects is obtained from Eqs. 7, 10 and 13.

First effect

$$ F_{1} = B_{1} + D_{1} $$
(5)
$$ F_{1} \cdot X_{\text{f}} = B_{1} \cdot X_{{{\text{b}}1}} + D_{1} \cdot X_{{{\text{d}}1}} \quad X_{{{\text{d}}1}} = 0 $$
(6)

In which \( X_{{{\text{d}}1}} \) is salt concentration of distillated vapor.

$$ M_{\text{s}} \cdot \left( {h_{\text{s}} - h_{\text{fs}} } \right) = F_{1} \cdot C_{1} \cdot \left( {T_{1} - T_{\text{f}} } \right) + D_{1} \cdot L_{1} $$
(7)

In Eq. 7, C1 is specific heat capacity of the feed water with salt concentration of (Xf) in the first effect. This parameter is computed as a function of the average feed water temperature (Tf) and the top brine temperature (TBT). \( L_{1} , \) is the latent heat of produced vapor in the first effect and a function of produced vapor temperature.

Second effect

$$ F_{2} + B_{1} = B_{2} + D_{2} $$
(8)
$$ F_{2} \cdot X_{\text{f}} + B_{1} \cdot X_{{{\text{b}}1}} = B_{2} \cdot X_{{{\text{b}}2}} + D_{2} \cdot X_{{{\text{d}}2}} \quad X_{{{\text{d}}2}} = 0 $$
(9)
$$ D_{1} \cdot L_{1} = F_{2} \cdot C_{2} \cdot \left( {T_{2} - T_{\text{f}} } \right) + D_{2} \cdot L_{2} $$
(10)

Effect (third to last)

$$ F_{i} + B_{i - 1} = B_{i} + D_{i} $$
(11)
$$ F_{i} \cdot X_{\text{f}} + B_{i - 1} \cdot X_{{{\text{b}}\left( {i - 1} \right)}} = B_{i} \cdot X_{{{\text{b}}i}} + D_{i} \cdot X_{{{\text{d}}i}} \quad X_{{{\text{d}}i}} = 0 $$
(12)
$$ D_{i - 1} \cdot L_{i - 1} + d_{i - 1}^{\prime } \cdot L_{i - 1} = F_{i} \cdot C_{i} \cdot \left( {T_{i} - T_{\text{f}} } \right) + D_{i} \cdot L_{i} $$
(13)

Pressure in i-th effect is less that (i − 1)-th effect. Therefore, the flash evaporation occurred when the output brine from previous effect enters to the next effect. Produced flash from effect bottom (d i ) is computed via the equation presented by Miyatake et al. (1973).

$$ d_{i}^{\prime } = B_{i - 1} \cdot C_{i - 1} \cdot \frac{{T_{i - 1} - T_{i}^{\prime } }}{{L_{i} }} $$
(14)
$$ T_{i}^{\prime } = T_{i} + {\text{NEA}}_{i} $$
(15)
$$ {\text{NEA}}_{i} = \frac{{33.0\left( {T_{i - 1} - T_{i} } \right)^{0.55} }}{{T_{{{\text{v}},i}} }} $$
(16)

where \( T_{i}^{\prime } \) is brine temperature after entering next effect and \( {\text{NEA}}_{i} \) is non-equilibrium flash evaporation process term.

The produced vapor in the last effect in MED-TVC system is divided into two flows, one of them is suctioned via thermo-compressor \( \left( {M_{\text{ev}} } \right) \) and the other enters condenser \( (M_{\text{c}} ) \).

$$ D_{n} + d_{n}^{\prime } = M_{\text{c}} + M_{\text{ev}} $$
(17)

By applying energy conservation law for condenser, input seawater \( \left( {M_{\text{sw}} } \right) \) can be obtained.

$$ M_{\text{c}} \cdot L_{n} = M_{\text{sw}} \cdot C_{\text{sw}} \cdot \left( {T_{\text{f}} - T_{\text{sw}} } \right) $$
(18)

Seawater temperature is increased by feed water temperature upon input vapor condensation to condenser, extra input seawater to condenser is returned to sea.

$$ M_{\text{cw}} = M_{\text{sw}} - M_{\text{f}} $$
(19)

Total output produced water from effects is as follows:

$$ D_{\text{t}} = \mathop \sum \limits_{i = 1}^{n} D_{i} + \mathop \sum \limits_{i = 2}^{n} d_{i}^{\prime } $$
(20)

Energy balance equation is used for thermo-compressor for computing the output enthalpy from them. The assumed hypotheses for thermo-compressor are as follows:

  • The processes with thermo-compressor (compression, mixing and expansion) are assumed as adiabatic.

Input steam to thermo-compressor (\( M_{\text{m}} \)) is superheat, and suctioned steam (\( M_{\text{ev}} \)) is as saturated.

$$ M_{\text{d}} = M_{\text{m}} + M_{\text{ev}} $$
(21)
$$ M_{\text{d}} \cdot h_{\text{d}} = M_{\text{m}} \cdot h_{\text{m}} + M_{\text{ev}} \cdot h_{\text{ev}} $$
(22)

For computing enthalpy of outflow from thermo-compressor, the ratio of motive flow rate to secondary flow rate (Ra) is used. It is an optimal ratio which improves the unit efficiency upon reducing motive steam (Utomo et al. 2008), this parameter has been presented by El-Dessouky and Ettouney (2002).

$$ {\text{Ra}} = \frac{{M_{\text{m}} }}{{M_{\text{ev}} }} $$
(23a)
$$ {\text{Ra}} = 0.296\frac{{P_{\text{d}}^{1.19} }}{{P_{\text{ev}}^{1.04} }} \cdot \left[ {\frac{{P_{\text{m}} }}{{P_{\text{ev}} }}} \right] \cdot \left[ {\frac{\text{PCF}}{\text{TCF}}} \right] $$
(23b)

As seen, this ratio is a function of discharge pressure \( \left( {P_{\text{d}} } \right) \), motive steam pressure \( \left( {P_{\text{m}} } \right) \), suctioned steam pressure \( \left( {P_{\text{ev}} } \right) \) in terms of compression ratio (CR) and expansion ratio (ER) which are as follows (El-Dessouky et al. 2000):

$$ {\text{CR}} = \frac{{P_{\text{d}} }}{{P_{\text{ev}} }} $$
(24)
$$ {\text{ER}} = \frac{{P_{\text{m}} }}{{P_{\text{ev}} }} $$
(25)

where PCF is motive steam pressure correction factor and TCF is suctioned vapor temperature correction factor.

$$ {\text{PCF}} = 3 \times 10^{ - 7} \left( {P_{\text{m}} } \right)^{2} -\,0.0009(P_{\text{m}} ) + 1.6101 $$
(26)
$$ {\text{TCF}} = 2 \times 10^{ - 8} \left( {T_{\text{ev}} } \right)^{2} -\,0.0006(T_{\text{ev}} ) + 1.0047 $$
(27)

Output steam is from thermo-compressor of superheat steam which is transferred to saturated steam upon spraying water in desuperheater. The required water for spraying is obtained via mass and energy balance equations for desuperheater.

$$ M_{\text{s}} = M_{\text{d}} + M_{\text{w}} $$
(28)
$$ M_{\text{s}} \cdot h_{\text{s}} = M_{\text{d}} \cdot h_{\text{d}} + M_{\text{w}} \cdot h_{\text{w}} $$
(29)

3.1 Exergy Analysis

Exergy is maximum theoretical work which can be obtained from a system when the system changes a definite primary state to environmental dead state through a reversible process. This work shows the potential of system’s useful work in a definite state. Exergy of a system in a definite state depends on environmental conditions (dead state) and system properties. Exergy is expressed in three flow stream \( E^{\text{f}} \), heat transfer \( E^{\text{q}} \) and work transfer \( E^{\text{w}} \) in system (Tadeusz 1985).

$$ E = E^{\text{f}} + E^{\text{q}} + E^{\text{w}} $$
(30)

In absence of nuclear, magnetic, electrical effects and surface tension, exergy components of material flow include: physical exergy \( E^{\text{ph}} \), kinetic exergy \( E^{\text{kn}} \), potential exergy \( E^{\text{pt}} \) and chemical exergy \( E^{\text{ch}} \).

$$ E^{\text{f}} = E^{\text{Ph}} + E^{\text{Kn}} + E^{\text{Pt}} + E^{\text{ch}} $$
(31)

In this research, kinetic, potential and chemical exergy were disregarded due to low speed of steam, regardless of height and lack of reaction.

$$ E^{\text{Ph}} = m\left[ {\left( {h - h_{0} } \right) - T_{0} \cdot \left( {S - S_{0} } \right)} \right] $$
(32a)
$$ E^{\text{q}} = Q\left( {1 - \frac{{T_{0} }}{T}} \right) $$
(32b)
$$ E^{\text{w}} = W $$
(32c)

In the steady conditions, total input exergy to system is equal to total output exergy from system together with exergy destruction within system. In the steady conditions, exergy balance is written as follows.

$$ \sum E_{\text{in}} = \sum E_{\text{out}} + E_{\text{D}} $$
(33)

In which \( E_{\text{D}} \) is exergy destruction of system which is resulted from irreversibility within system.

$$ \sum E_{\text{in}} = E_{\text{steam}} + E_{\text{sw}} $$
(34)
$$ E_{\text{steam}} = M_{\text{m}} \cdot \left[ {\left( {h_{\text{m}} - h_{\text{fs}} } \right) - T_{0} \cdot \left( {s_{\text{m}} - s_{\text{fs}} } \right)} \right] $$
(35)
$$ E_{\text{sw}} = M_{\text{sw}} \cdot C_{\text{sw}} \cdot \left[ {\left( {T_{\text{sw}} - T_{0} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{\text{sw}} }}{{T_{0} }}} \right)} \right] $$
(36)

In which \( E_{\text{steam}} \) and \( E_{\text{sw}} \) are exergy of input steam to thermo-compressor and exergy of input seawater to system, respectively (Choi et al. 2005).

$$ \sum E_{\text{out}} = E_{{{\text{B}}_{n} }} + E_{\text{dis}} + E_{\text{rej}} $$
(37)
$$ E_{{{\text{B}}_{n} }} = B_{n} \cdot C_{{{\text{B}}_{n} }} \cdot \left[ {\left( {T_{n} - T_{0} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{n} }}{{T_{0} }}} \right)} \right] $$
(38)
$$ E_{\text{dis}} = D_{\text{t}} \cdot C_{\text{dis}} \cdot \left[ {\left( {T_{\text{dis}} - T_{0} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{\text{dis}} }}{{T_{0} }}} \right)} \right] $$
(39)
$$ E_{\text{rej}} = M_{\text{cw}} \cdot C_{\text{rej}} \cdot \left[ {\left( {T_{\text{cw}} - T_{0} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{\text{cw}} }}{{T_{0} }}} \right)} \right] $$
(40)

In which, \( E_{\text{br}} \), \( E_{\text{dis}} \) and \( E_{\text{rej}} \) are exergy of output brine, exergy of distillate production and exergy of seawater returned to sea, respectively (Choi et al. 2005).

Exergy destruction rate (kW) is given below for each of the components of MED-TVC desalination system (Binamer 2013).

Thermo-compressor

$$ E_{{{\text{D}},{\text{ej}}}} = M_{\text{m}} \cdot \left[ {\left( {h_{\text{m}} - h_{\text{d}} } \right) - T_{0} \cdot \left( {s_{\text{m}} - s_{\text{d}} } \right)} \right] - M_{\text{ev}} \cdot \left[ {\left( {h_{\text{d}} - h_{\text{ev}} } \right) - T_{0} \cdot \left( {s_{\text{d}} - s_{\text{ev}} } \right)} \right] $$
(41)

Effects

$$ E_{{{\text{D}},{\text{e}}1}} = M_{\text{s}} \cdot \left[ {\left( {h_{\text{s}} - h_{{{\text{f}}s}} } \right) - T_{0} \cdot \left( {s_{\text{s}} - s_{\text{fs}} } \right)} \right] - D_{1} \cdot L_{1} \cdot \left( {1 - \frac{{T_{0} }}{{T_{{{\text{v}},1}} }}} \right) - F_{1} \cdot C_{1} \cdot \left[ {\left( {T_{1} - T_{\text{f}} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{1} }}{{T_{\text{f}} }}} \right)} \right] $$
(42)
$$ E_{{{\text{D}},{\text{e}}2}} = D_{1} \cdot L_{1} \cdot \left[ {1 - \frac{{T_{0} }}{{T_{{{\text{v}},1}} }}} \right] + B_{1} \cdot C_{1} \cdot \left[ {\Delta T - T_{0} \cdot { \ln }\left( {\frac{{T_{1} }}{{T_{2} }}} \right)} \right] - D_{2} \cdot L_{2} \cdot \left[ {1 - \frac{{T_{0} }}{{T_{{{\text{v}},2}} }}} \right] - D_{2} \cdot L_{2} \cdot \left[ {1 - \frac{{T_{0} }}{{T_{{{\text{v}},2}} }}} \right] $$
(43)
$$ \begin{aligned} E_{{{\text{D}},{\text{e}}i}} &= \left( {D_{i - 1} + d_{i - 1}^{'} } \right) \cdot L_{i - 1} \cdot \left[ {1 - \frac{{T_{0} }}{{T_{{{\text{v}},i - 1}} }}} \right] + B_{i - 1} \cdot C_{i - 1} \cdot \left[ {\Delta T - T_{0} \cdot { \ln }\left( {\frac{{T_{i - 1} }}{{T_{i} }}} \right)} \right] - D_{i} \cdot L_{i} \cdot \left[ {1 - \frac{{T_{0} }}{{T_{{{\text{v}},i}} }}} \right] \\ & - \,F_{i} \cdot C_{i} \cdot \left[ {\left( {T_{i} - T_{\text{f}} } \right) - T_{0} \cdot { \ln }\frac{{T_{i} }}{{T_{\text{f}} }}} \right]\quad i = 3, \ldots , n \\ \end{aligned} $$
(44)

Condenser

$$ E_{{{\text{D}},{\text{c}}}} = D_{n} \cdot L_{n} \cdot \left( {1 - \frac{{T_{0} }}{{T_{{{\text{v}},n}} }}} \right) - M_{\text{sw}} \cdot C_{\text{sw}} \cdot \left[ {\left( {T_{\text{f}} - T_{\text{sw}} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{\text{f}} }}{{T_{\text{sw}} }}} \right)} \right] $$
(45)

Desuperheater

$$ E_{{{\text{D}},{\text{de}}}} = M_{\text{d}} \cdot \left[ {\left( {h_{\text{d}} - h_{\text{s}} } \right) - T_{0} \cdot \left( {s_{\text{d}} - s_{\text{s}} } \right)} \right] - M_{\text{w}} \cdot \left[ {\left( {h_{\text{s}} - h_{\text{w}} } \right) - T_{0} \cdot \left( {s_{\text{s}} - s_{\text{w}} } \right)} \right] $$
(46)

Leaving streams

$$ E_{{{\text{D}},{\text{M}}_{\text{ev}} }} = M_{\text{ev}} \cdot C_{5} \cdot \left[ {\left( {T_{{{\text{v}},n}} - T_{\text{sw}} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{{{\text{v}},n}} }}{{T_{\text{sw}} }}} \right)} \right] $$
(47)
$$ E_{{{\text{D}},{\text{M}}_{\text{c}} }} = M_{\text{c}} \cdot C_{5} \cdot \left[ {\left( {T_{{{\text{v}},n}} - T_{\text{sw}} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{{{\text{v}},n}} }}{{T_{\text{sw}} }}} \right)} \right] $$
(48)
$$ E_{{{\text{D}},{\text{B}}_{n} }} = B_{n} \cdot C_{{{\text{B}}_{n} }} \cdot \left[ {\left( {T_{n} - T_{\text{sw}} } \right) - T_{0} \cdot { \ln }\left( {\frac{{T_{n} }}{{T_{\text{sw}} }}} \right)} \right] $$
(49)

3.2 System Performance

Performance of MED-TVC system can be studied considering the following components (Binamer 2013).

3.2.1 Gain Output Ratio

Gain output ratio is one of the used parameters for studying thermal performance of desalination processes. It is defined as the ratio of total distilled water produced to the motive steam (Zarei et al. 2017).

$$ {\text{GOR}} = \frac{{D_{\text{t}} }}{{M_{\text{m}} }} $$
(50)

3.2.2 Specific Heat Consumption, Q d

Specific heat consumption is one of the important thermal characteristics of desalination systems. Specific heat consumption is thermal energy consumption by system for producing 1 kg distilled water.

$$ Q_{\text{d}} = \frac{{M_{\text{m}} \cdot L_{\text{m}} }}{{D_{\text{t}} }} $$
(51)

3.2.3 Specific Exergy Destruction

Specific exergy destruction is total exergy destruction resulted from irreversibility in thermo-compressor, effects, condenser, desuperheater and the leaving streams per unit distillate production.

$$ E_{\text{SD}} = \sum \frac{{E_{{{\text{D}},{\text{c}}}} }}{{D_{\text{t}} }} $$
(52)

ED,c is exergy destruction in each of the components of desalination (kW).

3.2.4 Exergy Efficiency and Exergy Destruction rate

For assessing the thermodynamic performance of system based on second law of thermodynamic, exergy efficiency is used as follows (Choi et al. 2005).

$$ \psi = \frac{{\sum E_{\text{out}} }}{{\sum E_{\text{in}} }} $$
(53)

For thermodynamic assessment of an element in a system, exergy destruction rate is used apart from exergy destruction (Choi et al. 2005).

$$ \delta = \frac{{E_{{{\text{D}},{\text{c}}}} }}{{\sum E_{\text{in}} }} $$
(54)

4 Results

For modeling and assessing the performance of MED-TVC desalination system, EES software was used. Model validation was done by experimental data in two seasons of summer and winter. In Table 1, design and operating parameters of MED-TVC unit of Bandar Abbas thermal power plant are given.

Table 1 Thermodynamic parameters MED-TVC unit of Bandar Abbas thermal power plant

In Table 2, the calculated thermodynamic parameters are given.

Table 2 Mathematical model calculations

In Table 3, the output results of system simulation with real units are compared in two seasons of summer and winter in terms of operating parameters.

Table 3 Comparison between results of system simulation

In this research, exergy destruction of the components of desalination in two seasons of winter and summer was computed and compared regarding environmental conditions. Meanwhile, the effect of top brine temperature (TBT) on system performance was studied.

4.1 Results of Exergy Analysis

In this part, exergy destruction rate in MED-TVC desalination system is computed and assessed.

Table 3 shows the simulation results can predict the actual operating data with an acceptable error.

Table 4 indicates the exergy destruction rate and percentage for each of the components and the rate of total exergy destruction for summer and winter.

Table 4 Results of exergy analysis system components

Table 4 and Figs. 2 and 3 show that thermo-compressor and effects are the main sources of exergy destruction in the system. Thermo-compressor consumes 1337 (kW) exergy in winter which is equal to 48.02% of the total exergy destruction of the system. It also consumes 1402 (kW) exergy in summer which is equal to 57.1% of the total exergy destruction of the system. Exergy destruction in thermo-compressor is due to irreversible processes of mixing and expansion.

Fig. 2
figure 2

Component exergy destruction rate for various operating condition

Fig. 3
figure 3

Grassman diagram of components exergy destruction as a percentage of total input exergy

Effects are the second factor of exergy destruction. Effects consume 1011 (kW) exergy in winter and 820.8 (kW) exergy in summer which is equal to 36.32 and 33.43% of the total exergy destruction. Exergy destruction in the system is resulted from irreversibility of energy transfer processes like heat transfer.

According to Table 3, exergy destruction rate and specific exergy destruction in winter is 12.12 and 24.33% more than summer. According to Fig. 2 and Table 4, exergy destruction rate in effect, condenser, desuperheater and leaving streams in winter is more than in summer. In winter, the required energy for evaporation increases due to reducing the feed water temperature. When the feed water temperature is decreased, irreversibility of the flash evaporation in the second effect is increased.

Meanwhile, increasing temperature difference between the feed water and motive steam leads to increase the temperature difference among the effects. Exergy efficiency is 9.65% in winter and 4.72% in summer (Table 3). The reason for decreasing the exergy efficiency in summer is increasing the environmental temperature.

Figure 3 shows Grassman diagram for summer. Grassman diagram shows that output exergy from system is 4.7% of total input exergy to system. Meanwhile, thermo-compressor consumes 53.87% and effects consume 31.63% of input exergy.

4.2 Effect of Top Brine Temperature (tbt)

One of the most important effective parameters on distillate production and exergy destruction of the system is top brine temperature. This temperature range is 60–70 °C in most of the new MED-TVC systems. Figure 4 shows the gain output ratio and distillate production as a function of top brine temperature. As can be seen, increasing the top brine temperature leads to reducing the distillate production by 25.74% and subsequently the gain output ratio is reduced by 25.72%. Whereas increasing the top brine temperature leads to reduction in vapor latent heat and feed sensible heating increases, according to Eqs. 10 and 13, the distillate production decreases. Figure 5 shows the effect of top brine temperature on the specific heat consumption. The results show that the specific heat consumption can be increased until 34.65% when the top brine temperature is increased. This is because the higher top brine temperature leads to the higher vapor pressure. So, the larger amount of motive steam is needed to compress the vapor at the higher pressure (Fig. 5).

Fig. 4
figure 4

Effect of top brine temperature on the distillate production and GOR

Fig. 5
figure 5

Effect of top brine temperature on the specific heat consumption

Figures 6 and 7 show the effect of the top brine temperature on specific exergy destruction and total exergy destruction rate and various components of desalination system.

Fig. 6
figure 6

Effect of top brine temperature on the specific exergy destruction and total exergy destruction rate

Fig. 7
figure 7

Effect of top brine temperature on components exergy destruction rates

Specific exergy destruction and total exergy destruction rate of the system is increased 37.84 and 2.34%, respectively, upon increasing the top brine temperature (Fig. 6).

Figure 7 shows that exergy destruction rate in thermo-compressor reduces 14.3% by increasing the top brine temperature. This is because of increasing the compression in the thermo-compressor and increasing the output exergy rate in the thermo-compressor.

Exergy destruction rate in effects increases remarkably by 33.6% by increasing the top brine temperature since the energy transferred to the feed water increases by increasing the top brine temperature. According to Fig. 7, exergy destruction rate of leaving streams from the effects increases since the temperature difference among the effects increases by increasing the top brine temperature. Pressure drop increases over effects and leads to increase the exergy destruction rate. Exergy destruction rate reduces in the desuperheater since output exergy rate from the desuperheater is increased.

According to Fig. 8, the specific exergy destruction increases for 15.39% in the thermo-compressor. Meanwhile, exergy destruction in the effects increases 79.83% with increasing the top brine temperature.

Fig. 8
figure 8

Effect of top brine temperature on components specific exergy destruction

5 Optimization via Genetic Algorithm

Genetic algorithm is an optimization method based on the biological evolution. It was introduced by John Holland in 1970. Genetic algorithm seeks an optimal point, and in this regard, it searches in different points in work setting to meet the final condition. Genetic algorithm obtains an answer in shorter time compared to common algorithms. The structure of the algorithm used in the present work is illustrated in Fig. 9.

Fig. 9
figure 9

Scheme for the evolutionary algorithm used in the present work

In this research, two-target optimization is used in which the distillate production amount and the total exergy destruction rate are considered as the target functions and optimization aims at maximizing the distillate production and minimizing total exergy destruction rate. The objective functions for this problem are given by

$$ {\text{Maximize}}:D_{\text{t}} = {\text{Eq}}.\,(20) $$
$$ {\text{Minimize}}:E_{{{\text{D}},{\text{t}}}} = E_{{{\text{D}},{\text{ej}}}} + E_{{{\text{D}},{\text{e}}1}} + E_{{{\text{D}},{\text{e}}2}} + \cdots + E_{{{\text{D}},{\text{e}}5}} + E_{{{\text{D}},{\text{c}}}} + E_{{{\text{D}},{\text{de}}}} + E_{{{\text{D}},{\text{M}}_{\text{ev}} }} + E_{{{\text{D}},{\text{M}}_{\text{c}} }} + E_{{{\text{D}},{\text{B}}_{\text{n}} }} $$
(55)

The amounts of parameters related to genetic algorithm and ranges of design variable changes are brought in Table 5.

Table 5 Parameters of optimization in genetic algorithm

Optimal amount of design variables and target functions are shown in Table 6. Table 6 shows that in optimal state, distillate production increases 16.62% compared to distillate production in summer and total exergy destruction rate reduces 3.58% compared to total exergy destruction rate, in summer. According to used parameters in Table 6, the results from mathematical mode, governing the output, verify genetic algorithm.

Table 6 Optimization results of MED-TVC system

6 Conclusion

In this study, a proper model based on the first and second law of thermodynamics has been presented for MED-TVC desalination system with 2400 m3 day−1 in Bandar Abbas thermal power plant. The amount of distillate production, gain output ratio, total exergy destruction rate, exergy destruction resulted from irreversibility in the various components of desalination, and the specific exergy destruction in winter and summer were calculated. Performance of the system in the various top brine temperature in the range of 60–70 °C was studied. Meanwhile, the desalination system was optimized by genetic algorithm. The obtained results are as follows:

  • Exergy efficiency is 9.65% in winter and 4.72% in summer.

  • Thermo-compressor and effects are the main sources of exergy destruction in the system. In winter, exergy destruction in the thermo-compressor and effects are 47.86 and 36.34% of the total exergy destruction, respectively. In summer, exergy destruction in the thermo-compressor and effects are 57.04 and 33.81% of the total exergy destruction.

  • The specific exergy destruction in winter is 24.33% more than summer.

  • Gain output ratio is reduced to 25.72% with increasing the top brine temperature, and the specific heat consumption is increased to 34.65%.

  • Specific exergy destruction of various components of desalination increases with increasing the top brine temperature.

  • Total exergy destruction rate and specific exergy destruction is increased by 2.34 and 37.84%, respectively, upon increasing the top brine temperature.

  • Optimization results with genetic algorithm show that the distillate production in optimal state is 16.62% more than the distillate production in summer and total exergy destruction rate is 3.58% less than total exergy destruction rate in summer.