Introduction

The increase in population results in inevitable bulged demands for energy and water. Though finding approaches for satisfying the growing demands is drawing much attention, one of the efficient approaches is using district energy systems (DES) for populated areas since there are controls on energy resources, generations, storage, and distributions to consumers by energy plants’ management and their high efficiency and environmental friendliness [1, 2]. One of the favorable energy system models for the DES is integrating steam turbine with a gas turbine combined cycle power plants (CCPPs) [3]. The important parameters in the designing of a DES are environmental impacts, energy resources, costs, and energy efficiency [4]. Energy efficiency improvement is achievable by several methods like exergy analysis, parametric study, and optimization of a cycle [5]. Integrating renewable energy with DES improves energy sustainability and reduces environmental impacts [6]. Thermal solar panels could be considered as alternatives for preheating the vapor or gas turbine working fluids [7]. Also, solar panels have shown a significant effect on heat pump efficiency on both cooling and heating modes [8]. Mokhtari et al. used a comprehensive solar collector system to preheat the process fluid of furnace in a refinery in a case study and decreased about 24% of the furnace consumption [9]. Arabkoohsar and Sadi used a coupled waste-solar steam generator in a power plant [10]. The thermal efficiency of their cycle was around 25% which was suitable for a cycle with solar concentrating units. In another study Acar and Arslan investigated a coupled solar and geothermal organic Rankine cycle (ORC) and achieved an exergy efficiency of 64% [11]. Water is one of the most important essential for life. It is predicted that population and consequently water demand increase, while climate change negatively greater impacts natural water sources by 2050 [12]. People in most parts of the world including the Middle East are facing water challenges where food, energy, and water security are mainly affected by drought, water scarcity, population growth, urbanization, and/or political unrest [13]. Near 97% of the Earth’s water are oceans that are not suitable to satisfy human needs with such a sharp population and demand increase. For that reason, many energy studies are integrated with water desalination to generate drinkable water from seawater [14]. Water treatments are including membrane, and evaporation-based technology, evaporative-based desalination, consumes lower initial cost and could be easily scaled up; also it can be integrated to heat recovery energy system [15]. Membrane-based desalination has low working energy but high maintenance cost [16]. Multi-effect desalination can be integrated with the energy cycle. Farsi and Dincer investigated a combination of water-ground hot steam, steam turbine, desalination, and PEM and showed that the system was capable of producing more than 165,600 kg of drinkable water per day [17]. Also, Vakilabadi et al. suggested zero liquid discharge for treating brine of power plant and investigated effects of the dimensional and operating parameters on the freshwater, efficiency, and the total power consumption [18]. Rostamzade et al. integrated absorption–compression heat pump with a vapor compression heat pump and a MED unit and then compared that with a conventional mechanical vapor compression MED unit. They showed the integrated units had higher exergy efficiency [19]. Aguilar-Jiménez et al. combined ORC with a MED unit and concluded that the MED/ORC integration benefits both final production of pure water and efficiency [20]. Combination of different systems including gas turbine, steam turbine, absorption chiller, the solar panel has been investigated in several studies. Mahdavi and Khalilarya combined a gas turbine heat recovery steam generator (HRSG)/ORC cogeneration system with a parabolic trough solar collectors field and concluded the combined system had higher performance than the initial system [21]. Huang et al. enhanced primary energy saving rate and reduced the CO2 emission rate by investigating the energy distribution and exergy destruction of a CCHP system under different gas turbine loads and rate. Wang et al. used the waste heat of a GT with a solar system in a double effect LiBr absorption chiller [22]. They found that compared to the system without solar energy, the proposed hybrid system’s carbon emission reduction ratio is approximately 41%. Lake et al. found the right percentage of LiBr concentration in the absorption chiller by using exergy analysis [6]. They conclude the higher concentration altered the internal temperatures by 3 °C–7 °C, while the lower concentration led to an increase in the exergy destruction rates. Naseri et al. introduced a novel CO2 transcritical power cycle combined with solar energy integrated by the cryogenic LNG recovery unit to improve the total owed of the cycle in the off-peak times and peak time [23]. In their investigation, the solar system has a prominent effect on cycle performance. Also, a recent study show using gas turbine in several industries with hot gases can reduced pollution. Jalili et al. used a gas turbine with a heat recovery system after a cement industry [24]. The present study investigates a novel DES model which combines several systems to supply electrical energy and water demands of consumers in a hot environment exergetically and economically. The model consists of a solar thermal panel, gas turbine, HRSG, steam turbine, MED desalination, and a double-effect absorption chiller. The exergy efficiency and cost rate of the proposed model will be optimized for each cycle using the genetic algorithm method for higher performance based on the design parameters which will be developed through the sensitivity test.

Proposed integrated energy system model

The proposed CHP and water desalination plant is shown in Fig. 1. The cycle consists of five primary parts: gas turbine plant, steam turbine plant, HRSG, MED, and a double-effect absorption chiller. With a thermodynamic view, the proposed plant consists of four cycles as the solar Bryton cycle, HRSG, MED, and a double-effect absorption chiller. In Fig. 1, C# and D# represent absorption chiller and desalination system stages.

Fig. 1
figure 1

The schematic of the proposed integrated energy system for CHP and water desalination. In this figure, D and C stand for desalination and chiller, respectively. Numbers illustrated in the figure represent distinctive thermodynamic states as reported in tables of section “Data

Air at ambient pressure and temperature enters the compressor in the solar Bryton cycle. The SPTC system preheats the compressed air before entering the combustion chamber (CC). Combustion of heated compressed air with methane (CH4) at standard conditions results in hot gases, which generates electrical power through the turbine. The HRSG generates vapor by the expanded hot gases for both steam turbine to generate electricity and multi-effect desalination to purify the water.

The HRSG system consists of five effects such as high-pressure super heater, high-pressure vapor drum, high-pressure economizer, low-pressure drum, and a total flow economizer. The high-pressure line is superheated to enter the steam turbine, and low-pressure line is saturated to enter the MED system. Saturated water of two different lines discharging from the steam turbine and MED systems is mixed to enter low-pressure pump. After heating the water in the total flow economizer, this line splits into two lines; one enters the low pressure drum to generate the saturated vapor in low-pressure condition to enter the MED system, and the other enters the high-pressure economizer to reach the saturated liquid condition. Saturated liquid enters high-pressure drum and converts to high-pressure saturated vapor to become superheated in the high-pressure superheater, which is the last effect of HRSG.

The absorption chiller is a double-effect LiBr-H2O type, which includes high- and low-pressure generators, an evaporator, a condenser, an absorber, a high-temperature heat exchanger, a low-temperature heat exchanger, two pressure reducing valves, two refrigerant expansion valves, and a refrigerant valve with switches to control. In heating mode, the absorption chiller is like a heat exchanger, and there is no refrigerant effect in its cycle. Also, there are two heat exchangers to preheat the weak solution line with a strong solution one.

The last component of the integrated system, the MED system, is a five-effect desalination system, including an ejector that drops the pressure of the saturated vapor and returns the saturated water to the cycle. Finally, using the genetic algorithm, the proposed cycle is optimized.

Methodology

The approach in this study is a thorough parametric study; the effectiveness of each input parameter on exergy efficiency and total cost rate of the whole system is investigated. Then, most effective parameters are used in the optimization of the system. To do so, all physical and financial relationships for different components need to be developed in detail first. Here, step-by-step required equations for various components are developed either based on the universal laws or referencing previous studies.

Exergy

Exergy analysis is a tool for measuring the useful energy. There are two noticeable types of exergy in this study: physical and chemical. Physical exergy is achieved as the system reaches ambient temperature with no change of its composition, while the chemical exergy is related to change in the composition.

Physical exergy

Physical exergy of each state is defined as:

$${\text{ex}}_{\text{ph}} = \left( {h - h_{0} } \right) - T_{0} \left( {s - s_{0} } \right)$$
(1)
$${\dot{\text{E}}\text{X}}_{\text{ph}} = \dot{m}{\text{ex}}_{\text{ph}}$$
(2)

Chemical exergy

In the integrated cycle of this study, there are three states where chemical exergy needs to be considered: combustion chamber, absorption chiller, and MED. The following equations are used for all these three subsystems to obtain their chemical exergy. The standard chemical exergy of each component according to the conforming partial pressure \(P_{\text{i}}\) with respect to the ambient pressure \(P_{0}\) and the ambient temperature \(T_{0}\) is defined as:

$$\overline{{{\text{ex}}_{\text{ch}} }}^{i} = RT_{0} \ln \left( {\frac{{P_{0} }}{{P_{\text{i}} }}} \right)$$
(3)

Having a mixture of components, the overall specific chemical exergy according to the molar fraction \(x_{\text{i}}\) and the consideration of the standard exergy is written as:

$${\text{ex}}_{\text{ch}} = \mathop \sum \limits_{i = 1}^{n} x_{\text{i}} \overline{{{\text{ex}}_{\text{ch}} }}^{i} + RT_{0} \mathop \sum \limits_{i = 1}^{n} x_{\text{i}} \ln \left( {x_{\text{i}} } \right)$$
(4)

Finally, the overall exergy rate is available by multiplying the molar flow rate to the overall specific chemical exergy as:

$${\dot{\text{E}}\text{X}}_{\text{ch}} = \dot{N}{\text{ex}}_{\text{ch}}$$
(5)

For the case of MED, as the variation of salt concentration applies to the sea water, sea water state must be considered as the reference situation (reference concentration) in order to calculate the chemical exergy. Finally, the total exergy is defined as the summation of chemical and physical exergy.

$${\dot{\text{E}}\text{X}}_{\text{total}} = {\dot{\text{E}}\text{X}}_{\text{ph}} + {\dot{\text{E}}\text{X}}_{\text{ch}}$$
(6)

Overall cycle exergy efficiency

Overall exergy efficiency represents the ratio of useful recovered exergy to the useful available exergy of a system, which is a representative of system’s performance of how efficiently a system delivers work according to its available energy in the form of useful work. Here, in this study, the overall cycle exergy efficiency is considered as the ratio of the useful obtained exergy which is the summation of net electrical generated power, desalination and chiller systems’ net total exergy to the input exergy acquired from solar collectors and fuel.

$$\eta_{\text{ex}} = \frac{{\dot{W}_{\text{net}} + {\dot{\text{E}}\text{X}}_{\text{desalination}} + {\dot{\text{E}}\text{X}}_{\text{chiller}} }}{{{\dot{\text{E}}\text{X}}_{\text{sun}} + {\dot{\text{E}}\text{X}}_{\text{fuel}} }}$$
(7)

Here, subscripts desalination, chiller, sun, and fuel represent the exergy associated with freshwater production, cooling production, the exergy of sun, and exergy of fuel. More details about each term are given in [25].

Coefficient of performance (COP)

COP is defined as the ratio of desired output to the required input in the form of heat transfer. In the case of the absorption chiller, the desired output heat is the cooling load extracted by the evaporator, and the required input heat is the heat energy applied to the generator of the chiller. Therefore, with respect to the mentioned concepts, the overall energy balance of the absorption chiller neglecting the pumps input energy yields:

$$\dot{Q}_{\text{gen}} + \dot{Q}_{\text{eva}} = \dot{Q}_{\text{abs}} + \dot{Q}_{\text{cond}}$$
(8)

And finally, coefficient of performance of absorption chiller is defined as:

$${\text{COP}} = \frac{{\dot{Q}_{\text{eva}} }}{{\dot{Q}_{\text{gen}} }}$$
(9)

Economic analysis

Economic analysis consists of initial cost of each component and total cost rate of cycle.

Initial cost

Each of the equipment of cycle can be financially valued by its physical parameters. Every single equipment has a prominent design parameter that defines its cost as it is provided in section “Initial cost”.

Total cost rate

Initial costs are transformed to cost rate by considering the following assumptions [26]

  • 20 years of operations as each devices life time \(\left( n \right)\)

  • \(7200\) hours of function within each year \(\left( N \right)\)

  • \(6\%\) addition to the initial costs with purpose of operation and maintenance \(\left( \varphi \right)\)

  • A fixed base price of \(0.003\;\$ \;{\text{MJ}}^{ - 1}\) for fuel cost \(\left( {c_{\text{fuel}} } \right)\)

According to the assumptions above, the capital recovery factor (CRF) is obtained as:

$${\text{CRF}} = i \times \frac{{\left( {1 + i} \right)^{\text{n}} }}{{\left( {1 + i} \right)^{\text{n}} - 1}}$$
(10)

By multiplying this parameter to the initial cost, one can find the initial cost rate in ($ h−1) unit. In addition, cost rate of fuel is calculated as a function of fuel unit cost (Cfuel), the lower heating of fuel (LHV) as the H2O in combustion products is in gas form, we use LHV and the fuel mass flow rate as [26]:

$${\text{fuel}}\,{\text{cost}}\,{\text{rate}}\,(\$ \;{\text{h}}^{ - 1} ) = \dot{m}_{\text{fuel}} \times c_{\text{fuel}} \times \frac{\text{LHV}}{{10^{6} }} \times 3600$$
(11)

By summation of these cost rates, we reach the total cost rate of cycle in dollars per hour as:

$${\text{Total}}\,{\text{cost}}\,{\text{rate}}\,\left( {\frac{\$ }{\text{h}}} \right) = \frac{{{\text{CRF}}\varphi }}{N}\sum {\text{inital}}\,{\text{cost}}\,{\text{rates}} + {\text{fuel}}\,{\text{cost}}\,{\text{rate}}$$
(12)

Brine enthalpy

The first law analysis of the MED system requires the enthalpy of each stream being known, which necessitates a suitable model providing the enthalpy of brine solution. Here, a model for brine enthalpy is employed as [16]

$$h_{0} = 9.6296 X - 0.4312402 \times 10^{ - 3 } X^{2}$$
(13)
$$A = 4206.8 - 6.6197 X + 0.012288 X^{2}$$
(14)
$$B = - 1.1262 + 0.054178 X - 2.2719 \times 10^{ - 4} X^{2}$$
(15)
$$C = 0.012026 - 5.3566 \times 10^{ - 4 } X + 1.8906 \times 10^{ - 6 } X^{2}$$
(16)
$$D = 6.8777 \times 10^{ - 7} + 1.517 \times 10^{ - 6} X - 4.4268 \times 10^{ - 9 } X^{2}$$
(17)
$$h = h_{0} + A\left( {T - 273.15} \right) + \frac{B}{2}\left( {T - 273.15} \right)^{2} + \frac{C}{3}\left( {T - 273.15} \right)^{3} + \frac{D}{4}\left( {T - 273.15} \right)^{4}$$
(18)

where \(h\) represents the enthalpy of brine with respect to its concentration.

Analysis

In this section, thermodynamic analysis, including the first law of thermodynamics and exergy analysis, is carried out in detail for the cycle’s subsystems. As explained in “Proposed integrated energy system model” section, the cycle is categorized into four parts: a solar Brayton cycle, a heat recovery steam generator (HRSG), a multi-effect desalination (MED) unit, and a double-effect absorption chiller. In the following, details are presented.

Solar Bryton cycle

Solar Brayton cycle, as mentioned before, includes an air compressor, solar parabolic through collectors, a combustion chamber, and a gas turbine. The following thermodynamic relations are used for modeling of the cycle. For the simulation of this part, the inputs are applied to the computer simulation code developed in MATLAB software, and thermo-physical properties are acquired by calling the CoolProp library within the simulation code. Each component is developed in MATLAB Mfile for the sake of simplicity and easy to track. In the following sections, we explain the thermodynamic modeling.

Air compressor

Inlet air temperature, inlet air pressure, compressor’s isentropic efficiency, and compressor pressure ratio are the input parameters in the gas turbine power plants. The outlet pressure, temperature, enthalpy, and work are the unknowns that should be determined. By having the inlet air conditions to the compressor and its pressure ratio, the outlet pressure can be written as

$$P_{2} = P_{1} \Pr_{\text{comp}}$$
(19)

Now, according to the definition of isentropic efficiency, the outlet air enthalpy can be obtained as

$$h_{2} = h_{1} + \frac{{\left( {h_{2s} - h_{1} } \right)}}{{\eta_{\text{comp}} }}$$
(20)

where \(h_{{2{\text{s}}}}\) represents the isentropic discharge enthalpy of the compressor. Finally, the net required work of the compressor could be found by using first law of the thermodynamics on compressor as

$$\dot{W}_{\text{comp}} = \dot{m}_{2} \left( {h_{2} - h_{1} } \right)$$
(21)

Solar parabolic through collector (SPTC)

SPTC consists of a solar parabolic collector and an intermediate-glass covered pipe at its focal point as shown in Fig. 2. Collection efficiency \(\left( {\eta_{\text{r}} } \right)\) and useful energy gain \(\left( S \right)\) based on solar radiation \(\left( {G_{\text{b}} } \right)\) are represented as [7]

Fig. 2
figure 2

Schematic of SPTC

$$\eta_{\text{r}} = \rho_{\text{c}} \gamma \tau \alpha K_{\text{r}}$$
(22)
$$S = G_{\text{b}} \eta_{\text{r}}$$
(23)

Here, \(\rho_{c}\), \(\gamma\), \(\tau\), \(\alpha\), and \(K_{\text{r}}\) show specular reflectance, intercept factor, transmittance, absorptivity, and incidence angle modifier, respectively, which are given in the table in section “Applied constants”. Absorber \(\left( {A_{\text{a}} } \right)\) and receiver \(\left( {A_{\text{r}} } \right)\) areas are

$$A_{\text{r}} = \pi D_{\text{ro}} L$$
(24)
$$A_{\text{a}} = \left( {W - D_{\text{co}} } \right)L$$
(25)

Next, there is a set of equations to obtain the useful heat transferred to the inflow air and the rate of dissipated heat of the concentrator. The Nusselt number of the peripheral air is defined as below, and according to its definition, surrounding heat transfer coefficient can be obtained [7]

$${\text{Nu}} = 0.3\text{Re}^{0.6}$$
(26)
$$h_{\infty } = \frac{{{\text{Nu}} \cdot K_{\infty } }}{{D_{\text{co}} }}$$
(27)

Dissipated heat could be written in both forms of convection and radiation. The convection term accounts for heat transfer rate between the outer cover surface and its ambient one, and the radiation term is mainly the heat transfer rate between the outer cover surface and the sky; therefore, the term heat loss from the outer cover surface is written as

$$Q_{\text{loss}} = \pi D_{\text{co}} Lh_{\infty } \left( {T_{\text{co}} - T_{\infty } } \right) + \varepsilon_{\text{c}} \pi D_{\text{co}} L\sigma \left( {T_{\text{co}}^{4} - T_{\text{sky}}^{4} } \right)$$
(28)

And therefore, the overall heat transfer coefficient could be defined as

$$U_{\text{L}} = \frac{{Q_{\text{loss}} }}{{A_{\text{r}} \left( {T_{\text{r}} - T_{\infty } } \right)}}$$
(29)

Similarly, for the internal flow we have [7]:

$${\text{Nu}}_{\text{f}} = 0.023\text{Re}_{\text{f}}^{0.8} \Pr_{\text{f}}^{0.8}$$
(30)
$$h_{\text{f}} = \frac{{{\text{Nu}}_{\text{f}} K_{\text{f}} }}{{D_{\text{ri}} }}$$
(31)

The overall heat transfer coefficient between the ambient and inflow air based on the outside receiver diameter is written as

$$U_{\text{o}} = \left( {\frac{1}{{U_{\text{L}} }} + \frac{{D_{\text{ro}} }}{{D_{\text{ri}} h_{\text{f}} }} + \frac{{D_{\text{ro}} }}{{2K_{\text{tube}} }}\ln \left( {\frac{{D_{\text{ro}} }}{{D_{\text{ri}} }}} \right)} \right)^{ - 1}$$
(32)

And therefore, the collector efficiency factor \(F^{\prime }\) is provided as

$$F^{\prime } = \frac{{U_{\text{o}} }}{{U_{\text{L}} }}$$
(33)

Also the collector flow factor \(F^{\prime \prime }\) is considered as

$$F^{\prime \prime } = \frac{{\dot{m}_{\text{f}} cp_{\text{f}} }}{{A_{\text{r}} U_{\text{L}} F^{\prime } }}\left( {1 - \exp \left( {\frac{{ - \dot{m}_{\text{f}} cp_{\text{f}} }}{{A_{\text{r}} U_{\text{L}} }}} \right)} \right)$$
(34)

Having these two factors, ultimately the collector heat removal factor \(F_{\text{r}}\) is written as

$$F_{\text{r}} = F^{\prime } F^{\prime \prime }$$
(35)

The variable \(F_{\text{r}}\) is analogous to the effectiveness of a heat exchanger which is the ratio of the actual to the maximum possible heat transfer.

It is worth noting that the maximum possible rate of heat transfer among collectors could occur by being the entire collector temperature at the same temperature of the inlet flow since the rate of heat losses to the surrounding would be a minimum. Ultimately, multiplying the heat removal factor to the maximum possible rate of heat transfer yields the useful or actual rate of heat transferred to the internal airflow which is written as

$$Q_{\text{u}} = F_{\text{r}} A_{\text{a}} \left( {S - \frac{{A_{\text{r}} }}{{A_{\text{a}} }}U_{\text{L}} \left( {T_{\text{r}} - T_{\infty } } \right)} \right)$$
(36)

And the collector’s exergy efficiency is modeled as [7]

$${\text{Es}} = A_{\text{a}} G_{\text{b}} \left( {1 - \frac{4}{3}\left( {\frac{{T_{\infty } }}{{T_{\text{s}} }}} \right) + \frac{1}{3}\left( {\frac{{T_{\infty } }}{{T_{\text{s}} }}} \right)^{4} } \right)$$
(37)

Combustion chamber (CC)

In this component, the hot air inlet conditions are defined, and the output temperature, which is called the turbine inlet temperature (TIT), is also defined. It is assumed that complete combustion with probable excess air occurs within the combustion chamber. Dominant chemical reactants with their conforming products are considered to form a chemical balance. However, the fuel-to-air ratio and the composition of flue gases should be calculated. Thus, by writing the chemical balance of the combustion process, it yields

$$\lambda {\text{CH}}_{4} + \left( {0.21{\text{O}}_{2} + 0.79{\text{N}}_{2} } \right) \to \lambda {\text{CO}}_{2} + 2\lambda {\text{H}}_{2} {\text{O}} + \left( {0.21 - 2\lambda } \right){\text{O}}_{2} + 0.79{\text{N}}_{2}$$
(38)

By applying the mass continuum on CC, the following equation can be developed

$$\dot{m}_{3} + \dot{m}_{\text{f}} = \dot{m}_{\text{g}}$$
(39)

Applying the first law of thermodynamics around the CC, it can be found that

$$\dot{m}_{3} h_{3} + \dot{m}_{\text{f}} {\text{LHV}} = \dot{m}_{\text{g}} h_{4}$$
(40)

Also, there is pressure drop within the combustion the combustion chamber which could be modeled as

$$\frac{{P_{4} }}{{P_{3} }} = \left( {1 - \Delta P_{\text{cc}} } \right)$$
(41)

Here, \(\Delta P_{cc}\) is the pressure drop coefficient across the combustion chamber provided in the table in section “Applied constants”. [26]. Thus, these equations are solved simultaneously, and fuel and air mass flow rate and flue gas compositions are calculated.

Gas turbine

Similar to the compressor, here, gas turbine inlet temperature (TIT), pressure ratio, and gas turbine isentropic efficiency are given, and outlet enthalpy, outlet pressure, and output power are to be calculated. Property calculation of the gas turbine is the same as the compressor; therefore, by reapplying the procedure, the electricity generation of the gas turbine would be obtained as [26].

$$P_{4} = P_{6} \Pr_{\text{GT}}$$
(42)

Based on the energy efficiency definition of the turbine

$$h_{6} = h_{4} - \eta_{\text{turb}} \left( {h_{4} - h_{6} } \right)$$
(43)

Applying the first law of the thermodynamics on the turbine results in [27]

$$\dot{W}_{\text{GT}} = \dot{m}_{\text{g}} \left( {h_{4} - h_{6} } \right)$$
(44)

Heat recovery steam generator and steam turbine

For HRSG modeling, we have some inputs, and the outputs should be calculated. Of course, there are some design parameters, which are considered as input parameters. The most critical design parameters in each HRSG are pinch point temperatures, which are defined as the difference between the outlet temperature of the evaporator outlet gas and the inlet water flow, and the HRSG pressure levels. In this case, the flue gas properties are considered as inputs as it was calculated from the gas turbine simulation. Flue gas temperature and compositions were already calculated in gas turbine modeling. Thus, the temperature of steam and gas along the HRSG should be calculated. Also, temperature variation along the HRSG is illustrated in Fig. 3. Applying the energy balance of the HRSG components, the thermodynamic properties of each state can be determined. They are provided as

Fig. 3
figure 3

Temperature variation along the HRSG

$${\text{HP}}\,{\text{super}}\,{\text{heater}}\quad \dot{m}_{\text{g}} \left( {h_{6} - h_{7} } \right) = \dot{m}_{\text{HP}} \left( {h_{12} - h_{20} } \right)$$
(45)
$${\text{HP}}\,{\text{evaporator}}\quad \dot{m}_{\text{g}} \left( {h_{7} - h_{8} } \right) = \dot{m}_{\text{HP}} \left( {h_{20} - h_{19} } \right)$$
(46)
$${\text{HP}}\,{\text{economizer}}\quad \dot{m}_{g} \left( {h_{8} - h_{9} } \right) = \dot{m}_{\text{HP}} \left( {h_{19} - h_{18} } \right)$$
(47)
$${\text{LP}}\,{\text{evaporator}}\quad \dot{m}_{\text{g}} \left( {h_{9} - h_{10} } \right) = \dot{m}_{\text{LP}} \left( {h_{17} - h_{16} } \right)$$
(48)
$${\text{Economizer}}\quad \dot{m}_{\text{g}} \left( {h_{10} - h_{11} } \right) = \left( {\dot{m}_{\text{HP}} + \dot{m}_{LP} } \right)\left( {h_{16} - h_{15} } \right)$$
(49)
$$\dot{W}_{\text{ST}} \quad \dot{m}_{\text{HP}} \left( {h_{12} - h_{13} } \right)$$
(50)

Multi-effect desalination (MED)

MED system consists of an ejector; effects of desalination including five evaporators and a condenser are modeled as follows

Ejector

There are various models in order to correlate streams, and here a well-known semi-empirical model provided by El-Dessouky [28] is considered. The entrainment ratio (ER) is defined as the ratio of the motive stream’s flow rate (state 17, the inlet to ejector from the HRSG) to the entrained vapor’s flow rate (state D12, the inlet to the ejector from the MED’s condenser). The compression ratio (CR) is defined as the ratio of the compressed vapor’s pressure (state D3, the outlet of the ejector) to the entrained vapor’s pressure (state D12, inlet to the ejector from the MED’s condenser). In order to obtain the entrainment ratio, two auxiliary parameters are defined. Motive stream pressure correction factor (pcf) and the entrained vapor temperature correction factor (tcf) are defined in Table 1. The incorporation of these auxiliary parameters into Eq. (54) determines value of the entrainment ratio.

Table 1 Ejector’s performance parameters [28]

Note that the all input parameters of the above equations are in SI unit. There are several restrictions to this model as \(10\;{^\circ } {\text{C}} < T_{{{\text{D}}12}} < 500\;{^\circ } {\text{C}}\),\(100\,{\text{kPa}} \le P_{17} \le 3500\;{\text{kPa}}\), \({\text{CR}} > 1.81\), and \({\text{ER}} < 4\).

Effects of desalination

Several assumptions in modeling the MED system are made as in [16].

  • Effects have the same feed sea water flow rate (\(\dot{m}_{{{\text{D}}2}}\))

  • MED’s condenser temperature is \(48\;{^\circ } {\text{C}}\)

  • Temperature difference across the effects is the same

  • A minimum temperature difference at the MED’s condenser is considered

  • Final effect’s salinity is fixed (in the table in section “Data

Based on the given assumptions, it can be concluded that the temperature difference across the consecutive effects is [16]

$$\Delta T = \frac{{T_{D14} - T_{D12} }}{5}$$
(56)

And for the outlet temperature of effects, we have (here i represents the specific number of each effect plus one and therefore it is from 2 to 6)

$$T_{{{\text{D}}\left( {2i} \right)}} = T_{{{\text{D}}3}} - \left( {i - 1} \right)\Delta T$$
(57)

Finally, applying the first law, mass conservation, and concentration balance on all effects gives the following

First effect

$${\text{Energy}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}3}} h_{{{\text{D}}3}} + \dot{m}_{{{\text{D}}2}} h_{{{\text{D}}2}} = \dot{m}_{{{\text{D}}4}} h_{{{\text{D}}4}} + \dot{m}_{{{\text{D}}14}} h_{{{\text{D}}14}} + \dot{m}_{{{\text{D}}3}} h_{14}$$
(58)
$${\text{Mass}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}2}} = \dot{m}_{{{\text{D}}4}} + \dot{m}_{{{\text{D}}14}}$$
(59)
$${\text{Concentration}}\,{\text{balance}}\quad \dot{m}_{{{\text{D}}2}} X_{\text{sea}} = \dot{m}_{{{\text{D}}14}} X_{14}$$
(60)

Second effect

$${\text{Energy}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}4}} h_{{{\text{D}}4}} + \dot{m}_{{{\text{D}}2}} h_{{{\text{D}}2}} + \dot{m}_{{{\text{D}}14}} h_{{{\text{D}}14}} = \dot{m}_{{{\text{D}}5}} h_{{{\text{D}}5}} + \dot{m}_{{{\text{D}}15}} h_{{{\text{D}}15}} + \dot{m}_{{{\text{D}}6}} h_{6}$$
(61)
$${\text{Mass}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}2}} + \dot{m}_{{{\text{D}}14}} = \dot{m}_{{{\text{D}}6}} + \dot{m}_{{{\text{D}}15}}$$
(62)
$${\text{Concentration}}\,{\text{balance}}\quad \dot{m}_{{{\text{D}}2}} X_{\text{sea}} + \dot{m}_{{{\text{D}}14}} X_{14} = \dot{m}_{{{\text{D}}15}} X_{15}$$
(63)

Third effect

$${\text{Energy}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}6}} h_{{{\text{D}}6}} + \dot{m}_{{{\text{D}}2}} h_{{{\text{D}}2}} + \dot{m}_{{{\text{D}}15}} h_{{{\text{D}}15}} = \dot{m}_{{{\text{D}}7}} h_{{{\text{D}}7}} + \dot{m}_{{{\text{D}}16}} h_{{{\text{D}}16}} + \dot{m}_{{{\text{D}}8}} h_{8}$$
(64)
$${\text{Mass}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}2}} + \dot{m}_{{{\text{D}}15}} = \dot{m}_{{{\text{D}}8}} + \dot{m}_{{{\text{D}}16}}$$
(65)
$${\text{Concentration}}\,{\text{balance}}\quad \dot{m}_{{{\text{D}}2}} X_{\text{sea}} + \dot{m}_{{{\text{D}}15}} X_{15} = \dot{m}_{{{\text{D}}16}} X_{16}$$
(66)

Fourth effect

$${\text{Energy}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}8}} h_{{{\text{D}}8}} + \dot{m}_{{{\text{D}}2}} h_{{{\text{D}}2}} + \dot{m}_{{{\text{D}}16}} h_{{{\text{D}}16}} = \dot{m}_{{{\text{D}}9}} h_{{{\text{D}}9}} + \dot{m}_{{{\text{D}}17}} h_{{{\text{D}}17}} + \dot{m}_{{{\text{D}}10}} h_{10}$$
(67)
$${\text{Mass}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}2}} + \dot{m}_{{{\text{D}}16}} = \dot{m}_{{{\text{D}}10}} + \dot{m}_{{{\text{D}}17}}$$
(68)
$${\text{Concentration}}\,{\text{balance}}\quad \dot{m}_{{{\text{D}}2}} X_{\text{sea}} + \dot{m}_{{{\text{D}}16}} X_{16} = \dot{m}_{{{\text{D}}17}} X_{17}$$
(69)

Fifth effect

$${\text{Energy}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}10}} h_{{{\text{D}}10}} + \dot{m}_{{{\text{D}}2}} h_{{{\text{D}}2}} + \dot{m}_{{{\text{D}}17}} h_{{{\text{D}}17}} = \dot{m}_{{{\text{D}}11}} h_{{{\text{D}}11}} + \dot{m}_{{{\text{D}}18}} h_{{{\text{D}}18}} + \dot{m}_{{{\text{D}}12}} h_{12}$$
(70)
$${\text{Mass}}\,{\text{conservation}}\quad \dot{m}_{{{\text{D}}2}} + \dot{m}_{{{\text{D}}17}} = \dot{m}_{{{\text{D}}12}} + \dot{m}_{{{\text{D}}18}}$$
(71)
$${\text{Concentration}}\,{\text{balance}}\quad \dot{m}_{{{\text{D}}2}} X_{\text{sea}} + \dot{m}_{{{\text{D}}17}} X_{17} = \dot{m}_{{{\text{D}}18}} X_{18}$$
(72)

Double-effect absorption chiller

Modeling of absorption chiller system components is governed by mass conservation and energy conservation for both LiBr and H2O.

$$\left( {\sum \dot{m}} \right)_{\text{inlet}} - \left( {\sum \dot{m}} \right)_{\text{outlet}} = 0$$
(73)
$$\left( {\sum \dot{m}C} \right)_{\text{inlet}} - \left( {\sum \dot{m}C} \right)_{\text{outlet}} = 0$$
(74)
$$\left( {\sum \dot{m}h} \right)_{\text{inlet}} - \left( {\sum \dot{m}h} \right)_{\text{outlet}} = 0$$
(75)

Initial cost

After being familiarized with the system and its components’ characteristics, according to the performance parameters of each component, the conforming initial cost is provided as below (Table 2):

Table 2 Initial cost equations of all components

And the total initial cost is obtained by summation of all initial costs of components within the cycle’s working condition.

Applied constants

The prominent design parameters of different components of the cycle are summarized in Table 3.

Also, for SPTC the geometrical and physical properties are represented in Table 4 and Fig. 2.

Table 3 Design parameter of the system component
Table 4 SPTC constant variables

Data

Before optimization, a base design has been defined with assuming constant value for optimization investigation design parameters. For further investigation on the same cycles, reader can use the data of three parts of cycle separately, CHP, absorption chiller, and MED. All mentioning parts can be designed separately by the use of boundary states of them. Tables 57 show the design state data of CHP, absorption chiller, and MED.

Table 5 Temperature, mass flow rate, and pressure of each state point of the CHP system
Table 6 Temperature, mass flow rate, and pressure of each state point of the absorption chiller refrigeration system
Table 7 Temperature, mass flow rate and pressure of each state point of the MED system

Results and discussion

The results of the parametric study for finding the most sensitive parameters on exergy efficiency and total cost rate are presented and discussed. Then, optimization of the system based on those parameters is revealed in this section.

Sensitivity analysis

At the first stage of optimization, several parameters were available for optimization, such as high pressure and low pressure of HRSG, high- and low-pressure pinch point temperature difference, gas and steam turbine inlet temperature, condenser pressure, and the number of rows of SPTC. Since optimization is a time-consuming process and excess of decision variables may cause a significant increase in computational cost, a parametric study has been done to consider each parameter’s sensitivity on the objective functions of optimization. Here, each of the mentioned parameters has been checked separately.

The HRSG considered in this integrated energy system has two pressure levels: one with a higher value for steam turbine and the other with a lower value for the MED. The values of these pressures have significant effects on the steam turbine power generation and the MED freshwater production. In addition, designing these systems in higher working pressure imposes excessive initial cost to the system. Figures 4 and 5 show the high-pressure and low-pressure effects on the total cost rate (Eq. 12) and the exergy efficiency of the system (Eq. 7).

Fig. 4
figure 4

Parametric study of high pressure of HRSG (inlet pressure of steam turbine)

Fig. 5
figure 5

Parametric study of low pressure of HRSG (inlet pressure of MED)

An increase in the HRSG high pressure, while keeping other parameters constant, increases the inlet enthalpy of the steam turbine, which increases the rate of power generation. According to Eq. (7), an increase in these parameters increases the net power generated in the system, which increases the first term in the numerator of Eq. (7). Since other parameters in this equation do not vary, the overall exergy efficiency increases accordingly. On the other hand, an increase in the HRSG low pressure keeping other parameters constant increases the rate of exergy destruction in the MED system due to the increase of the pressure drop within the ejector, which, with reference to Eq. (7), decreases the overall exergy efficiency. On the other hand, as an increase in the working fluid pressure leads to an enlargement of the HRSG system, based on Eq. (12), the total cost rate increases in both cases.

Variation of high pressure from 30 to 50 bars causes increase in exergy efficiency from 36.1 to 36.7%. This 0.5% increase in exergy imposes about \(2\;\$ \;{\text{h}}^{ - 1}\) total cost rate to cycle. Increment of exergy efficiency is due to extracting more exergy from exhaust gases in HRSG stage for steam turbine which has lower exergy destruction compared to MED. Increasing low pressure from 12 bars to 30 bars causes a very small decrease in exergy efficiency (about 0.04%).

Pinch point temperature is one of the most prominent design parameters of heat exchanger that has a considerable effect on exergy destruction and cost rate of this unit, which makes it necessary to study this parameter’s effect on cycle [26]. As there are two vapor generators (drum) in HRSG, two pinch points can be set for the cycle: one for high-pressure drum (high-pressure pinch point) and the other for low-pressure drum (low-pressure pinch point). Figures 6 and 7 represent overall exergy efficiency and total cost rate variation due to low-pressure pinch point temperature and high-pressure pinch point temperature, respectively. As it is illustrated, a higher pinch point due to the increment of the unrecovered available energy causes higher exergy destruction. Also, lower pinch point temperature necessitates better design for enhancement of the heat exchanger, which may increase the total cost rate. On the other side, as it declines the exergy destruction, it may lead to the reduction of the total cost rate.

Fig. 6
figure 6

Parametric study of low-pressure pinch point temperature

Fig. 7
figure 7

Parametric study of high-pressure pinch point temperature

Another critical parameter is the gas turbine inlet temperature, which has a significant effect on the whole cycle exergy efficiency since it defines the hot gas temperature flow in the HRSG. Figure 8 represents the variation of this parameter and its effect on overall exergy efficiency and the total cost rate. As the increment of the gas/steam turbine inlet temperature directly raises the conforming inlet enthalpy, which culminates in the growth rate of power generation, according to Eq. (7), the overall exergy efficiency is increased. Also, based on the conforming cost function of the gas/steam turbine, the total cost rate with respect to Eq. (12) is increased simultaneously. Higher gas turbine inlet temperature provides both higher exergy efficiency and better design considerations, which increases the total cost rate.

Fig. 8
figure 8

Parametric study of gas turbine inlet temperature

Steam flow temperature at the inlet of steam turbine is another effective performance parameter. Figure 9 shows the variation of this parameter effect on exergy destruction and cost rate. As can be interpreted from the mentioned figure, the exergy efficiency increases because the variation of this parameter does not overcome the cost rate increase due to the design cost rate.

Fig. 9
figure 9

Parametric study of steam turbine inlet temperature

The next parameter is the condenser pressure, which affects the steam turbine and MED concurrently. The rise of the condenser pressure increases the steam turbine’s outlet enthalpy, decreasing the rate of power generation. According to Eq. (7), the overall exergy efficiency decreases as the decrease in net output power reduces the overall exergy efficiency of the system (see Eq. 7). A decrease in the condenser pressure downsizes several pieces of equipment including MED system, HRSG and steam turbine, but on the other side as the low-pressure pump of the HRSG would discharge a lower pressure which increases the flue gas outlet enthalpy, the generator heat of the absorption chiller goes up and accordingly enlarges the required chiller system and increases its initial cost. Figure 10 shows exergy efficiency and cost rate variation due to the variation of this parameter.

Fig. 10
figure 10

Parametric study of condenser pressure

Finally, row number of the SPTC is investigated as a parameter for the parametric study. According to Fig. 11, it can be inferred that as the number of SPTC rows raises, the surface area extends and the preheating temperature increases, which results in less fuel consumption and according to Eq. (12) leads to a lower total cost rate. Although increase of the SPTC rows raises the input exergy to the cycle, the useful exergy obtained from the cycle remains constant, since other variable parameters' values are unchanged. Therefore, based on Eq. (7), overall exergy efficiency reduces.

Fig. 11
figure 11

Parametric study of number of SPTC rows

Optimization

Optimization is the best way to finalize a design [33]. Finally, using the genetic algorithm approach, an optimization procedure is accomplished; its objective functions have been chosen as the overall exergy efficiency and the total cost rate according to Eqs. (7) and (12), respectively. As it could be deduced, the main objective is to maximize the overall exergy efficiency and simultaneously to minimize the total cost rate. Top six effective parameters including condenser pressure, number of SPTC rows, gas and steam turbine inlet temperature, and high- and low-pressure pinch points which have substantial effects on the objective functions as discussed in the previous section, have been chosen as decision variables.

Due to the existence of physical limitations including commercial availability or thermodynamic restrictions, applicable ranges of operation for each of these decision variables are defined in Table 8; also, these constraints are necessary for the performance of the genetic algorithm since they are set as the bonds of the search domain within which this evolutionary algorithm functions.

Table 8 Constraints of optimization [26]

For better comparison, optimization has been done for three discount rates of \(i = 0.11\), \(0.13\), and \(0.15\). Pareto front results for these three discount rates are shown in Fig. 12. Optimization study has been accomplished using MATLAB genetic algorithm toolbox.

Fig. 12
figure 12

Pareto front for three different discount rates

As could be understood from Fig. 12, the exergy efficiency has changed 8% in optimization study for the discount rate of \(0.11\) and also the total cost rate has changed up to 90 $ h−1, which represents a noticeable variation. It is worth noting that the higher ranges of changes were not observed at the parametric study, which reminds the effectiveness of optimization investigation.

Three points named I, I, and I in Fig. 12 indicate three prominent design points, which are characterized as point A, the lowest total cost rate, point C the highest exergy efficiency, and a moderate design point at B, which is the decision point since both exergy efficiency and total cost rate are in the intermediate level. Each point on the Pareto curve represents a set of decision variables. Since we have the index of the matrix for each point on the Pareto curve, it is easy to find their decision variables.

As can be seen in Fig. 12, for higher discount rates, Pareto front at a fixed exergy efficiency provides a higher total cost rate, and for a given total cost rate, lower discount rates provide higher exergy efficiency. The decision variables related to points A, B, and C are listed in Table 9, and the outputs related to these points are listed in Table 10. As it could be interpreted from Table 9 for higher exergy efficiency, a lower number of solar panel rows and condenser pressure and higher gas and steam turbine inlet temperature and pinch points are suggested by Pareto front results. Table 10 shows the final objective functions plus power and pure water generation and cooling load of the aforementioned points. Higher efficiency deals with a higher value of power generation as it is expected. The lower value of pure water generation is related to exergy destruction within the ejector. In the absorption chiller, there is a high-temperature difference in its different components like evaporator, condenser, and absorber, which causes high exergy destruction, so for higher exergy efficiency, it is better to have a lower value of the cooling load.

Table 9 Decision variables of Pareto front optimal point
Table 10 Objective functions and other results of Pareto front optimal point

Conclusions

An integrated CHP with water desalination system including solar Bryton cycle, HRSG, MED, and absorption chiller was investigated in this study economically and thermodynamically for various operating ranges of input parameters for each component of this integrated cycle. Variation of each parameter within its proposed range on the exergy efficiency and the total cost rate of the cycle was investigated while considering a fixed value for other parameters according to the base design states as listed in Tables 57. For example, changing the number of rows of the solar collectors from 1 to 10 decreased the overall exergy efficiency around 1.7% and the total cost rate by 17$ h−1. Variation of low-pressure pinch point from 10 to 30 K decreased overall exergy efficiency less than 0.8% and increased the total cost rate around 4 $ h−1, while in a similar case for high-pressure pinch, both the overall exergy efficiency and total cost rate decreased by more than 0.6 % and about 2.5 $ h−1, respectively. Alternation of gas turbine inlet temperature between 1180 K and around 1340 K yielded increase of exergy efficiency around 3.5% and total cost rate about 40 $ h−1, and variation of condenser pressure from 12 to 30 kpa decreased the exergy efficiency less than 1.6% and increased total cost rate about 1 $ h−1.

Most effective parameters were considered as the decision variables of a genetic algorithm with objective functions as the exergy efficiency and total cost rate, and the Pareto curve was obtained for various amounts of discount rates. Results revealed that higher condenser pressure yields higher exergy destruction while increasing the amount of freshwater generation; also, as the inlet temperature of turbines increases, both exergy efficiency and cost rate rise. Therefore, the optimal point could be chosen based on the proposed outcome of the cycle, including net electrical power, cooling load, and pure water generation. Pareto front curve results show that points with higher exergy efficiency have a lower number of solar collectors, lower pressure condenser, higher gas and steam turbine inlet temperature, and higher pinch points.