1 Introduction

Increasing freshwater demands in irrigation, industrial, and municipal sectors have placed significant stresses on available freshwater supply options like rivers, lakes, and aquifers to satisfy the global need for freshwater. To address this issue, seawater desalination technologies have received much attention around the world, especially in arid regions. Urbanization, population growth, and industrialization have been key drivers in recent years of the need for desalination technologies. Desalination systems are typically driven by heat and/or work, and they are reliable techniques for producing freshwater from low-quality water resources.

Fossil fuels often use for providing the energy required for desalination systems. This raises additional concerns about the environmental impacts of desalination plants. The use of renewable energy resources like geothermal energy, for desalination and other uses, is growing in importance in many countries. It is suggested that the integration of renewable energy resources with technologies for recovery, reuse, and recycling of energy and water can provide a sustainable and environmentally beneficial approach to meeting water and energy needs.

Geothermal energy is a reliable, sustainable, and cost-effective renewable energy resource in which water and/or steam carry the geothermal heat to the surface of Earth. Some important advantages of geothermal energy resources are their independence from weather conditions, high capacity factors, and consistent heat production rates (unlike intermittent energy sources like solar and wind). Geothermal energy sources can be used for heating, cooling, and electricity generation. For electricity generation applications, medium- or high-temperature geothermal resource are normally required; these are usually located near tectonically active regions.

There are several stages in developing geothermal power systems including exploration, drilling, plant/reservoir development, and electrical power generation. The range and scale of geothermal systems for domestic, agricultural, and industrial sectors have expanded with recent advances in geothermal technologies.

Geothermal energy provides a low-emission technique for electrical power generation. Hot water or dry steam with temperatures typically ranging from 80 to 150 \(^\circ{\rm C}\) is extracted from drilled wells and transferred to the power plant (Bundschuh et al. 2015). In the power plant, the temperature at the first or second pass of the steam turbine is still high enough to drive a low-temperature desalination system like multi-effect distillation (MED) desalination or membrane desalination.

In some geothermal desalination systems, hot water or dry steam can be used directly to generate freshwater, while electricity is produced first and then used in the desalination systems in others. Dual- and multi-generation systems are other types of geothermal-based systems in which geothermal energy, in combination with other renewable energy resources, is used to drive desalination and other energy systems.

A pilot MED desalination system driven by geothermal heat was constructed at Kimolos Island, Greece (Fytikas et al. 2005; Karytsas et al. 2002). The temperature of the geothermal energy source is 61 \(^\circ{\rm C}\); it drives the MED system which has a freshwater production rate of 75 m3/h. Karytsas et al. (2002) showed that employing low/medium-temperature geothermal heat can potentially offset the consumption of 453,600 kg of oil per year. Another geothermal-based MED plant was built at Texas, with an average freshwater production rate of 120 m3/day (Birney et al. 2019). The maximum underground temperature in Texas is about 150 \(^\circ{\rm C}\) at the depths of 3000–4000 m. Birney et al. (2019) showed that, as the geothermal fluid mass flow rate increases from 30 to 90 kg/s, the freshwater production rate in the geothermal MED system increases from 121 to 1132 m3/day.

Missimer et al. (2014) proposed a geothermal-based power cycle and desalination pilot plant for the cogeneration of electricity and freshwater. High-temperature steam (about 300 \(^\circ{\rm C}\)) at a pressure of 6–7 MPa is extracted from the production well to drive the steam turbine in the system. A part of the electricity produced by the steam turbine is used to drive a reverse osmosis desalination system. The turbine outlet steam is also utilized to operate MED and membrane desalination systems. Petrovic et al. (2018) studied thermodynamically an MED desalination plant linked to hot springs combined with ejector refrigeration. Optimization studies for the system were carried out to minimize the total investment costs and total exergy loss rate and to maximize plant profits. In addition, various refrigerants for the refrigeration system were compared in terms of system performance and cost.

Musharavati et al. (2021) proposed a geothermal-based poly-generation system in which a Kalina cycle, reverse osmosis unit, PEM electrolyzer, and thermoelectric module are used to produce electricity, hydrogen, and freshwater production. A thermodynamic model is developed for the system and assessed using exergy analysis for different system locations. It was shown that the condenser and reverse osmosis unit have the greatest exergy destruction rates among all system components. Also, a multi-objective optimization is performed for the system to find the optimum exergy destruction rate, exergy destruction cost rate, and electricity cost rate. The optimum values of exergy destruction rate, exergy destruction cost rate, and electricity cost rate, respectively, were found to be 328.2 kW, 18.4 $/h, and 12.83 $/h.

Many advances in sustainable energy and desalination technologies have been reported in recent years. Renewable energy systems and their applications have been reviewed extensively (Ahmadi et al. 2020; Nassrullah et al. 2020; Panagopoulos 2021; Vaithilingam et al. 2020). More broadly, Kilkis et al. (2020) and Rezaie and Rosen (2020) investigated the importance of water systems and their integration with energy and environment systems. Specific studies have been undertaken on solar desalination systems (Aboelmaaref et al. 2020; Tong et al., 2020), photovoltaics (Anand et al. 2021; Wu et al. 2021), high-temperature geothermal energy (Abdolalipouradl et al. 2020; Farsi and Dincer 2019; Gnaifaid and Ozcan 2021), ambient ground energy sources (Rosen and Koohi-Fayegh 2017; Alavy et al. 2021), solar ponds (Kasaeian et al. 2018; Mosaffa and Farshi 2021), and nuclear energy (Khan et al. 2017; Ghazaie et al. 2020; Marques et al. 2020). Technologies have also received attention that facilitate the use of sustainable energy, like energy storage (Cuce et al. 2020; Campione et al. 2020; Koohi-Fayegh and Rosen 2020; Dincer and Rosen 2021a), cogeneration, and district energy (Rosen and Koohi-Fayegh 2016).

The thermodynamics of geothermal-based energy systems is important for determining their behaviors and efficiencies. Thermodynamic models of geothermal electricity-freshwater combined systems can reveal particularly useful insights into their behaviors. Energy and exergy methods can be applied to such systems to determine the thermodynamic properties of all streams interacting with and within the system. This study introduces a new geothermal-based electricity-freshwater combined system in which the geothermal hot water drives an organic Rankine cycle (ORC) and multi-effect distillation system. The objective is to develop an understanding of the system and its performance, to facilitate potential adoption in the future.

One of the effective ways to reduce the environmental impacts of energy systems is to reduce their exergy destructions and losses. These can be reduced by increasing the exergy efficiencies of energy systems. In this paper, two energy systems, an organic Rankine cycle and an MED desalination system, are combined and driven by a geothermal energy resource. It is shown that integration of the ORC and MED systems potentially improves the exergy efficiency, and reduces the exergy destruction rate and consequently environmental impacts. For this purpose, mass, energy, entropy, and exergy rate balances are developed for each component of the geothermal combined electricity-freshwater system. Then, the energy-based performances of the ORC and MED system are determined, as are the exergy-based performances in terms of exergy efficiencies. Finally, a sustainability analysis is performed to show how exergy methods assist in understanding renewable energy technologies and in making energy utilization more efficient and less likely to cause environmental impacts. By this analysis, relations between exergy efficiency, environmental impact, and sustainability for the combined system are investigated.

2 System Description

Figure 1 shows the combined electricity-freshwater generation system in which an organic Rankine cycle is integrated with a parallel-feed multi-effect distillation desalination system. The ORC system is comprised of a boiler, expander, condenser, and pump. Ammonia is used as the working fluid in the ORC system. The hot hydrothermal fluid extracted from geothermal production well enters the boiler then passes to the steam generator to produce steam for the MED desalination system. The energy in the hydrothermal fluid leaving the steam generator can be further used in moderate-temperature applications like heating water for fish farming or domestic usage. The fluid is then is transferred back to the re-injection well. In the ORC system, superheated ammonia expands in the expander and produces electricity. Then, it cools in the condenser and is pumped to the boiler. The MED system includes six effects. The intake seawater is preheated before entering the effects. Cooling water is used to control the feed temperature to the MED system. Design parameters for the combined system are given in Table 1.

Fig. 1
figure 1

source used to drive ORC and MED systems

Geothermal energy

Table 1 Design parameters for the geothermal-based electricity-water production combined system

Note that in deriving the relevant equations and expressions for modeling and analysis, the general approach followed by Dincer and Rosen (2021b) is followed and then tailored to the technology under consideration.

3 System Model and Analysis

Assuming no thermal losses and pressure drops in the geothermal-based system components, neglecting kinetic and potential energy values, and considering the design parameters given in Table 1, a thermodynamic model of the system is developed. Also, the system is able to exchange mass, heat, and work with the environment through the system boundary. The reference environment temperature and pressure, respectively, are denoted \({T}_{0}\) and \({P}_{0}\).

General mass, energy, entropy, and exergy rate balances, respectively, for an open system in a control volume can be expressed under steady-state conditions as

$$\sum_{\mathrm{in}}\dot{m}-\sum_{\mathrm{out}}\dot{m}=0$$
(1)
$$\dot{Q}-\dot{W}+\sum_{\mathrm{in}}\dot{m}h-\sum_{\mathrm{out}}\dot{mh}=0$$
(2)
$$\frac{\dot{Q}}{T}+\sum_{\mathrm{in}}\dot{m}s-\sum_{\mathrm{out}}\dot{m}s+{\dot{S}}_{\mathrm{gen}}=0$$
(3)
$${\dot{Ex}}^{\dot{Q}}-{\dot{Ex}}^{\dot{W}}+\sum_{\mathrm{in}}\dot{m}ex-\sum_{\mathrm{out}}\dot{m}ex-{\dot{Ex}}_{D}=0,$$
(4)

where \(\dot{m}\), h, s, and ex, respectively, denote mass flow rate, specific enthalpy, specific entropy, and specific exergy; \(\dot{Q}\), \(\dot{W}\), \({\dot{S}}_{gen}\), and \({\dot{Ex}}_{D}\), respectively, denote heat transfer rate, work rate, entropy generation rate, and exergy destruction rate; and \({\dot{Ex}}^{\dot{Q}}\) and \({\dot{Ex}}^{\dot{W}}\), respectively, denote exergy rates associated with heat and work. The latter two terms can be expressed as follows:

$${\dot{Ex}}^{\dot{Q}}=(1-\frac{{T}_{0}}{T})\dot{Q}$$
(5)
$${\dot{Ex}}^{\dot{W}}=\dot{W,}$$
(6)

where T is the temperature (in K) at which the heat transfer process occurs and \({T}_{0}\) is the reference environment temperature.

The parameter \(ex\) is the total specific exergy of a material flow. The total exergy of a general material flow can be expressed as the summation of its physical (or thermomechanical) exergy and chemical exergy as follows:

$$ex={ex}_{\mathrm{ph}}+{ex}_{\mathrm{chem}}$$
(7)

The specific physical flow exergy (\({ex}_{\mathrm{ph}}\)) indicates the maximum useful work that can be transferred to an external user as the flow reaches thermal and mechanical equilibrium with the reference environment (i.e., the restricted dead state). The specific physical exergy of a material flow can be written as

$${ex}_{\mathrm{ph}}=h-{h}^{*}-{T}_{0}\left(s-{s}^{*}\right),$$
(8)

where properties with a superscript * are quantified at the environment temperature (\({T}_{0}\)) and pressure (\({P}_{0}\)), but at the same concentration or composition as the initial state.

The specific chemical flow exergy (\({ex}_{\mathrm{chem}}\)) is the maximum work obtainable during the transition of a flow from the restricted dead state to the total (or global) dead state. This state is achieved when the temperature, pressure, and constituent concentrations take on the values of these parameters in the reference environment. At the total dead-state condition, the concentration of each constituent in the system takes on its concentration in the environment at \({T}_{0}\) and \({P}_{0}\). Thus, the specific chemical exergy of a mixture can be expressed as

$${ex}_{\mathrm{chem}}=\sum_{i=1}^{n}({{\mu }_{i}}^{*}- {\mu }_{0,i}){x}_{i,}$$
(9)

where \({{\mu }_{i}}^{*}\) is the specific chemical potential of constituent i at the temperature and pressure of the reference environment, and \({\mu }_{0,i}\) is the specific chemical potential of constituent i at the temperature, pressure, and constituent concentrations of the reference environment. Note that for a pure substance, such as pure water and pure ammonia, the chemical exergy term is zero, while for a multi-constituent substance, like seawater, the chemical exergy is not zero and must be accounted for in the analysis.

In contrast to the energy efficiency, which measures the ratio of useful energy product to the input energy, the exergy efficiency reveals the extent to which a process is reversible In general, the exergy efficiency can be defined as the exergy rate of useful process outputs to the exergy rate of process inputs. The exergy (or available energy) of useful process outputs is equal to the input exergy less the exergy destruction and the exergy loss. The destroyed exergy (or available energy consumption) represents the amount of available work that is lost due to system irreversibilities, while the exergy loss represents the amount of available work that is lost with outgoing waste streams. Therefore, the general energy and exergy efficiencies for an energy system can be written, respectively, as

$${\eta }=\frac{\text{Useful product energy rate}}{\text{Input energy rate}}$$
(10)
$${\Psi }=\frac{\text{Useful product exergy rate}}{\text{Input exergy rate}}$$
(11)

In the following subsections, mass, energy, entropy, and exergy rate balances are developed for the system components, broken down by system section.

3.1 Organic Rankine Cycle (ORC)

From Fig. 1, mass, energy, entropy, and exergy rate balances for the ammonia-based ORC components can be expressed, respectively, as follows:

Boiler

$${\dot{m}}_{12}={\dot{m}}_{9}$$
(12)
$${\dot{Q}}_{\mathrm{Boiler}}={\dot{m}}_{\mathrm{Geo}}({h}_{1}-{h}_{2})={\dot{m}}_{9}{h}_{9}-{\dot{m}}_{12}{h}_{12}$$
(13)
$${\dot{m}}_{12}{s}_{12}+\frac{{\dot{Q}}_{\mathrm{Boiler}}}{{T}_{\mathrm{Boiler}}}+{\dot{S}}_{\mathrm{gen},\mathrm{Boiler}}={\dot{m}}_{9}{s}_{9}$$
(14)
$${\dot{m}}_{12}{ex}_{12}+{\dot{Q}}_{\mathrm{Boiler}}\left(1-\frac{{T}_{0}}{{T}_{\mathrm{Boiler}}}\right)={\dot{m}}_{9}{ex}_{9}+{\dot{Ex}}_{D,\mathrm{Boiler}}$$
(15)

Expander (exp)

$${\dot{m}}_{9}={\dot{m}}_{10}$$
(16)
$${\dot{m}}_{9}{h}_{9}={\dot{m}}_{10}{h}_{10}+{\dot{W}}_{\mathrm{exp}}$$
(17)
$${\dot{m}}_{9}{s}_{9}+{\dot{S}}_{\mathrm{gen},\mathrm{exp}}={\dot{m}}_{10}{s}_{10}$$
(18)
$${\dot{m}}_{9}{ex}_{9}={\dot{m}}_{10}{ex}_{10}+{\dot{W}}_{\mathrm{exp}}+{\dot{Ex}}_{D,\mathrm{exp}}$$
(19)

Condenser (cond)

$${\dot{m}}_{10}={\dot{m}}_{11}$$
(20)
$${\dot{m}}_{10}{h}_{10}={\dot{m}}_{11}{h}_{11}+{\dot{Q}}_{\mathrm{cond},\mathrm{ORC}}$$
(21)
$${\dot{m}}_{10}{s}_{10}+{\dot{S}}_{\mathrm{gen},\mathrm{cond}}={\dot{m}}_{11}{s}_{11}+\frac{{\dot{Q}}_{\mathrm{cond}}}{{T}_{\mathrm{cond}}}$$
(22)
$${\dot{m}}_{12}{ex}_{12}={\dot{m}}_{11}{ex}_{11}+{\dot{Q}}_{\mathrm{cond}}\left(1-\frac{{T}_{0}}{{T}_{\mathrm{cond}}}\right)+{\dot{Ex}}_{D,\mathrm{cond}}$$
(23)

Pump

$${\dot{m}}_{11}={\dot{m}}_{12}$$
(24)
$${\dot{m}}_{11}{h}_{11}+{\dot{W}}_{\mathrm{pump}}={\dot{m}}_{12}{h}_{12}$$
(25)
$${\dot{m}}_{11}{s}_{11}+{\dot{S}}_{\mathrm{gen},\mathrm{pump}}={\dot{m}}_{12}{s}_{12}$$
(26)
$${\dot{m}}_{11}{ex}_{11}={\dot{m}}_{12}{ex}_{12}+{\dot{Ex}}_{D, \mathrm{pump}}$$
(27)

The energy and exergy efficiencies of the ORC subsystem can be expressed, respectively, as

$${\eta }_{ \mathrm{ORC}}=\frac{{\dot{W}}_{\mathrm{net}}}{{\dot{Q}}_{\mathrm{Boiler}}}=\frac{{\dot{W}}_{\mathrm{exp}}-{\dot{W}}_{\mathrm{pump}}}{{\dot{Q}}_{\mathrm{Boiler}}}$$
(28)
$${\Psi }_{ \mathrm{ORC}}=\frac{{\dot{W}}_{\mathrm{net}}}{{\dot{Q}}_{\mathrm{Boiler}}\left(1-\frac{{T}_{0}}{{T}_{\mathrm{Boiler}}}\right)}=1-\frac{{\dot{Ex}}_{D,\mathrm{Boiler}}+{\dot{Ex}}_{D,\mathrm{exp}}+{\dot{Ex}}_{D,\mathrm{cond}}+{\dot{Ex}}_{D, \mathrm{pump}} }{{\dot{Q}}_{\mathrm{Boiler}}\left(1-\frac{{T}_{0}}{{T}_{\mathrm{Boiler}}}\right)}$$
(29)

3.2 Multi-effect Distillation (MED) Desalination System

A process flow diagram of a parallel-feed MED desalination system is shown in Fig. 2. In the study, the work rate required for pumping feed, brine, and distillate streams are not considered. Denoting salt concentration w and using subscripts f, B, and D, respectively, to denote feed, brine and distillate, mass, energy, entropy, and exergy rate balances for the MED effects, the condenser, and the overall unit can be written, as follows:

Fig. 2
figure 2

Parallel-feed MED unit

First Effect

$${w}_{sw}{\dot{m}}_{f1}={w}_{B,1}({\dot{m}}_{f1}-{\dot{m}}_{D1})$$
(30)
$${\dot{Q}}_{\mathrm{source}}={\dot{m}}_{f1}{c}_{p}\left({T}_{1}-{T}_{f}\right)+{\dot{m}}_{D1}{h}_{fg1}$$
(31)
$${\dot{m}}_{14}{s}_{14}+\frac{{\dot{Q}}_{\mathrm{source}}}{{T}_{S}}+{\dot{S}}_{\mathrm{gen}}={\dot{m}}_{B1}{s}_{B1}+{\dot{m}}_{D1}{s}_{D1}$$
(32)
$${\dot{m}}_{14}{ex}_{14}+{\dot{Q}}_{\mathrm{source}}\left(1-\frac{{T}_{0}}{{T}_{s}}\right)={\dot{m}}_{B1}{ex}_{B1}+{\dot{m}}_{D1}{ex}_{D1}+{\dot{Ex}}_{D,\mathrm{effect}1}$$
(33)

Effect i to n

$${w}_{sw}{\dot{m}}_{f1}+{w}_{B(i-1)}{\dot{m}}_{Br(i-1)}={w}_{B(i)}{\dot{m}}_{B(i)}$$
(34)
$${\dot{Q}}_{i-1}={\dot{m}}_{D,n-1}{h}_{fgn-1}={\dot{m}}_{D,i}{h}_{fgi}+{\dot{m}}_{B,i-1}{c}_{p,w}\left({T}_{i-1}-{T}_{i}\right)$$
(35)
$${\dot{m}}_{i}{s}_{i}+\frac{{\dot{Q}}_{i-1}}{{T}_{i-1}}+{\dot{S}}_{gen}={\dot{m}}_{Bi}{s}_{B,i}+{\dot{m}}_{D,i}{s}_{D,i}$$
(36)
$${\dot{m}}_{i}{ex}_{i}+{\dot{Q}}_{i-1}\left(1-\frac{{T}_{0}}{{T}_{i-1}}\right)={\dot{m}}_{Bi}{ex}_{Bi}+{\dot{m}}_{Di}{ex}_{Di}+{\dot{Ex}}_{D,\mathrm{effect}i}$$
(37)
$${T}_{i}={T}_{vs,i}+{BPE}_{i}\quad i=\mathrm{1,2},\dots ,n$$
(38)

Here, \({T}_{i}\) is the temperature of vapor generated in effect i, which is a function of the pure vapor saturation temperature (\({T}_{vs,i}\)) and the boiling point elevation (BPE) (Farsi et al. 2016).

An energy rate balance for the condenser, in which vapor from the last effect is condensed using cooling water (\(cw\)), can be written as follows:

$${\dot{Q}}_{\mathrm{cond}}={\dot{m}}_{D,n}{h}_{fg,n}=\left({\dot{m}}_{f}+{\dot{m}}_{cw}\right){c}_{p}\left({T}_{\mathrm{sea}}-{T}_{f}\right)$$
(39)

Steam Generator (SG) Heat Exchanger

$${\dot{m}}_{s,in}={\dot{m}}_{s,\mathrm{out}}$$
(40)
$${\dot{m}}_{2}={\dot{m}}_{3}$$
(41)
$${\dot{m}}_{2}{h}_{2}+{\dot{m}}_{s, \mathrm{out}}{h}_{s,\mathrm{out}}={\dot{m}}_{3}{h}_{3}+{\dot{m}}_{s,in}{h}_{s,in}$$
(42)
$${\dot{m}}_{2}{s}_{2}+{{\dot{m}}_{s, \mathrm{out}}{s}_{s,\mathrm{out}}+\dot{S}}_{\mathrm{gen},SG}={\dot{m}}_{3}{s}_{3}+{\dot{m}}_{s,in}{s}_{s,in}$$
(43)
$${\dot{m}}_{2}{ex}_{2}+{{\dot{m}}_{s, \mathrm{out}}{ex}_{s,\mathrm{out}}+\dot{S}}_{\mathrm{gen},SG}={\dot{m}}_{3}{ex}_{3}+{\dot{m}}_{s,in}{ex}_{s,in}+{\dot{Ex}}_{D,SG}$$
(44)

Effects Block

$${\dot{m}}_{6}={\dot{m}}_{7}+{\dot{m}}_{8}+{\dot{m}}_{13}$$
(45)
$${\dot{m}}_{6}{h}_{6}+{\dot{Q}}_{SG}={\dot{m}}_{7}{h}_{7}+{\dot{m}}_{8}{h}_{8}+{\dot{m}}_{13}{h}_{13}$$
(46)
$${\dot{m}}_{6}{s}_{6}+\frac{{\dot{Q}}_{SG}}{{T}_{S}}+{\dot{S}}_{\mathrm{gen},\mathrm{MED}}={\dot{m}}_{7}{s}_{7}+{\dot{m}}_{8}{s}_{8}+{\dot{m}}_{13}{s}_{13}$$
(47)
$${\dot{m}}_{6}{ex}_{6}+{\dot{Q}}_{SG}\left(1-\frac{{T}_{0}}{{T}_{s}}\right)={\dot{m}}_{7}{ex}_{7}+{\dot{m}}_{8}{ex}_{8}+{\dot{m}}_{13}{ex}_{13}+{\dot{Ex}}_{D,\mathrm{MED}}$$
(48)

We now determine the minimum work required for separation of feed into brine and distillate to evaluate the exergy efficiency of the desalting process. The minimum required work for separation can be defined for reversible desalination operation, in which the entropy generation rate is zero and all input and output streams (except distillate) are brought to the total dead state. The distillate, as the sole useful product, is brought to the restricted dead state (i.e., reference environment temperature and pressure). Here, the process streams interacting with the desalination system are feed, brine, and distillate. The minimum work rate required for desalting can be written in terms of the exergy rates corresponding to the process streams as follows:

$${\dot{W}}_{\mathrm{min},\mathrm{MED}}={\dot{m}}_{D}{ex}_{D}+{\dot{m}}_{B}{ex}_{B}-{\dot{m}}_{sw}{ex}_{sw}$$
(49)

Here, the control volume is selected, such that all streams are in thermal and mechanical equilibrium with the reference environment.

The common energetic performance ratio (PR) of a thermal MED system can be defined as the ratio of mass flow rate of the distillate product to the mass flow rate of steam as the heating medium in the first effect. That is

$$PR=\frac{{\dot{m}}_{D, \mathrm{total}}}{{\dot{m}}_{s}}$$
(50)

The exergy efficiency of a desalination system is a measure of its actual effectiveness compared to its performance under reversible conditions, recognizing that exergy destruction and loss reduce exergy efficiency. The exergy efficiency of a desalination system is a function of the reference environment temperature, the feed seawater concentration, the recovery ratio (i.e., \({\dot{m}}_{D}/{\dot{m}}_{f}\)), and the product salinity. One type of exergy efficiency is the ratio of minimum exergy rate required for desalination to the actual exergy rate input to the system. Then, the MED desalination exergy efficiency can be expressed as

$${\Psi }_{\mathrm{MED}}=\frac{{\dot{W}}_{\mathrm{min},\mathrm{MED}}}{{\dot{Ex}}_{\mathrm{in},\mathrm{MED}}}=\frac{{\dot{m}}_{7}{ex}_{7}+{\dot{m}}_{8}{ex}_{8}-{\dot{m}}_{15}{ex}_{15}}{{\dot{m}}_{s,\mathrm{in}}{ex}_{s,\mathrm{in}}-{\dot{m}}_{s,\mathrm{out}}{ex}_{s,\mathrm{out}}}$$
(51)

Also, the exergy efficiency of an MED system can be expressed, noting that the useful exergy rate is the exergy input rates minus the exergy loss and exergy destruction rates. Thus, the exergy efficiency can be expressed based on the ratio of the summation of the exergy loss and exergy destruction rates to the total input exergy rate as follows:

$${\Psi }_{\mathrm{MED}}=1-\frac{\sum {\dot{Ex}}_{\mathrm{Des},i}+\sum {\dot{Ex}}_{\mathrm{loss},i}}{{\dot{Ex}}_{\mathrm{in},\mathrm{MED}}}=1-\frac{\sum_{\mathrm{effect} i=1}^{6}{\dot{Ex}}_{\mathrm{Des},i}+{\dot{Ex}}_{\mathrm{Des},\mathrm{Cond},\mathrm{MED}}+{\dot{Ex}}_{\mathrm{Des},T,D}+{\dot{Ex}}_{\mathrm{Des},\mathrm{T}\&\mathrm{ch},B}+{\dot{Ex}}_{\mathrm{Des},\mathrm{T}\&\mathrm{ch},\mathrm{cw}}}{{\dot{m}}_{s,\mathrm{in}}{ex}_{s,\mathrm{in}}-{\dot{m}}_{s,\mathrm{out}}{ex}_{s,\mathrm{out}}}$$
(52)

Here, the exergy destruction rate indicates the lost available work rate due to irreversibilities (i.e., \(\sum {\dot{Ex}}_{\mathrm{Des}}=\sum {T}_{0}{\dot{S}}_{\mathrm{gen}})\) and the exergy loss rate indicates the lost available work rate due to releasing waste streams (i.e., brine and cooling water) to the environment, while \({\dot{Ex}}_{\mathrm{Des},T,D}\) is the exergy destruction rate associated with bringing the distillate temperature to the reference environment temperature. Then, the exergy destruction rate due to the temperature disequilibrium for the distillate can be written as

$${\dot{Ex}}_{\mathrm{Des},T,D}={\dot{m}}_{8}{ex}_{8}\left({T}_{8}, {P}_{0},{w}_{8}\right)-{\dot{m}}_{8}{ex}_{8}\left({T}_{0}, {P}_{0},{w}_{8}\right)$$
(53)

Here, \({w}_{8}\) is assumed to be zero. For the brine and cooling water streams, the exergy destruction rates are associated with bringing both temperature and concentration to the reference environment temperature and constituent concentration values (i.e., \({\dot{Ex}}_{\mathrm{Des},\mathrm{T}\&\mathrm{ch},B} \;\mathrm{and} \; {\dot{Ex}}_{\mathrm{Des},\mathrm{T}\&\mathrm{ch},\mathrm{cw}}\)). Then, the exergy destruction rates associated with temperature disequilibrium and chemical disequilibrium for the brine and cooling water can be written, respectively, as

$${\dot{Ex}}_{\mathrm{Des},\mathrm{T}\&\mathrm{ch},B}={\dot{m}}_{7}{ex}_{7}\left({T}_{7}, {P}_{0},{w}_{7}\right)-{\dot{m}}_{7}{ex}_{7}\left({T}_{0}, {P}_{0},{w}_{0}\right)$$
(54)
$${\dot{Ex}}_{\mathrm{Des},\mathrm{T}\&\mathrm{ch},\mathrm{cw}}={\dot{m}}_{13}{ex}_{13}\left({T}_{13}, {P}_{0},{w}_{13}\right)-{\dot{m}}_{13}{ex}_{13}\left({T}_{0}, {P}_{0},{w}_{0}\right)$$
(55)

The last terms on the right side of these two equations are zero, because they are at the total dead-state conditions.

3.3 Sustainability Analysis

Sustainable development involves among other factors the use of sustainable energy resources, often in an efficient manner. Therefore, both employing sustainable energy resources in energy systems and using these resources efficiently are important in sustainable development. This means that, even the sustainable energy resources become widely available and inexpensive, increased efficiency is still preferred for reducing environmental impacts (Rosen et al. 2008). Exergy methods play a key role in improving efficiency of energy systems using sustainable energy resources. The use of such methods helps in maximizing the benefits that can be derived from these systems while minimizing the environmental impacts associated with them.

By utilizing sustainable or renewable sources of energy, as well as using efficiently non-renewable sources such as natural gas, reduced environmental impact and greater sustainability can be attained. The sustainable index (SI) is employed here to relate exergy and environmental impact concepts as follows:

$$\mathrm{SI}=\frac{1}{{D}_{P}}$$
(56)

Here, \({D}_{P}\) is the depletion number, defined as the ratio of destroyed exergy to exergy input. This equation shows how decreasing the environmental impact of a system can be attained by decreasing the exergy destruction. The sustainability index thus indicates a measure of the extent of the contribution of exergy efficiency to sustainable development. The sustainability index can be written as follows:

$$\mathrm{SI}=\frac{1}{1-\Psi },$$
(57)

where Ψ denotes exergy efficiency. It can be seen that improving the exergy efficiency of a system leads to increase in its sustainability index and consequently a reduction in the environmental impacts associated with it.

The exergy efficiencies of ORC and MED systems are presented in Eqs. 29 and 52, respectively. With these, the overall exergy efficiency of the geothermal-based electricity-freshwater combined system can be written as

$${\Psi }_{\mathrm{overall}}=1-\frac{{\dot{(Ex}}_{D,\mathrm{Boiler}}+{\dot{Ex}}_{D,\mathrm{exp}}+{\dot{Ex}}_{D,\mathrm{cond}}+{\dot{Ex}}_{D, \mathrm{pump}} )+(\sum_{\mathrm{effect} i=1}^{6}{\dot{Ex}}_{\mathrm{Des},i}+{\dot{Ex}}_{\mathrm{Des},\mathrm{Cond},\mathrm{MED}}+{\dot{Ex}}_{\mathrm{Des},T,D}+{\dot{Ex}}_{\mathrm{Des},\mathrm{T}\&\mathrm{ch},B}+{\dot{Ex}}_{Des,T\&ch,cw}) }{{\dot{Q}}_{\mathrm{Boiler}}\left(1-\frac{{T}_{0}}{{T}_{\mathrm{Boiler}}}\right)+\left({\dot{m}}_{s,\mathrm{in}}{ex}_{s,\mathrm{in}}-{\dot{m}}_{s,\mathrm{out}}{ex}_{s,\mathrm{out}}\right)}.$$
(58)

Note that the exergy rate of intake seawater input (stream 15) is zero, because it is at the total dead state; hence, the exergy rate of this input stream is not written in the denominator of Eq. 58.

4 Results and Discussion

A thermodynamic model using mass, energy, entropy, and exergy rate balances as well as other relations is developed for each component of the geothermal-based combined system. Then, the thermodynamic model is simulated in Engineering Equation Software (EES) using the thermodynamic properties of the working fluids (i.e., seawater, distillate, brine, and ammonia) at the state points. By solving simultaneously the thermodynamic equations in the EES, the thermodynamic properties (temperature, pressure, specific enthalpy, specific entropy, and specific exergy) for all state points are evaluated. Table 2 presents the thermodynamic properties for all state points of the geothermal combined electricity-freshwater system. In addition, Table 3 provides, for each effect, the effect pressure and temperature, specific entropy, specific enthalpy and specific exergy of brine, and entropy generation and exergy destruction rates.

Table 2 Input and evaluated thermodynamic properties at state points in Fig. 1
Table 3 Input and evaluated thermodynamic parameters for MED effects

It is seen from Table 3 that, among the effects of the MED unit, the exergy destruction rate is greater for the first effect than the other effects (the first effect being responsible for 60% of the total MED exergy destruction rate), because only the first effect exchanges heat with the high-temperature heat source. In other words, the temperature difference between the heat exchanging mediums (i.e., steam and feed seawater) in the first effect is more than in other effects. Therefore, the exergy destruction rate in the first effect exceeds that of other effects. An important way to reduce or minimize the irreversibility in the first MED effect is reducing the temperature difference. In fact, the temperature profiles of the heat exchange mediums should be matched, so the thermal energy exchanges are maximal.

Once the thermodynamic properties of state points are determined in the geothermal-based system, the performance ratio, energy efficiency, and exergy efficiency of the subsystems (i.e., ORC and MED) and the overall system can be calculated.

The produced freshwater rate in each MED effect and the electrical power produced by the ORC system are provided in Table 4. As mentioned before, underground geothermal water supplies heat for the boiler and steam generator. The required mass flow rate of geothermal water from the production well and the temperature of the geothermal source are important factors in determination of system capacity. An energy source like a diesel generator can be used as a backup system in the case where there is insufficient geothermal energy.

Table 4 Heat rate, work rate, and total freshwater production rate of the geothermal-based ORC-MED system

The exergy destruction rate breakdown for all components of the combined system is shown in Fig. 3a. It is seen that the boiler has the greatest exergy destruction rate. Heat transfer over a large temperature difference occurring in the boiler is the main cause of irreversibilities. For the ORC condenser and steam generator, the phase change experienced by the vapor and condensed working fluid (ammonia in the ORC condenser and water in the steam generator) leads to the significant exergy destruction rates in these heat exchangers. Therefore, reducing the temperature difference in both the boiler and the steam generator heat exchanger may decrease their exergy destruction rates.

Fig. 3
figure 3

a Breakdown by component of exergy destruction rates (kW) for geothermal-based ORC-MED system; b percentage breakdown of exergy destruction rate by component for the MED unit in the geothermal-based ORC-MED system

In Fig. 3b, the percentage breakdown of exergy destruction rate by the component is shown for the MED unit, which is an important part of the overall geothermal-based ORC-MED system. As mentioned before, it is necessary to take into account the exergy destruction rate associated with the temperature and chemical disequilibrium of the brine and freshwater with the reference environment when considering the irreversibilities in the desalting process. Figure 3b shows that the exergy destruction rate associated with temperature and chemical disequilibrium of the brine and temperature disequilibrium of the freshwater, respectively, are responsible for 14% and 6% of MED total exergy destruction rate.

Figure 4 shows the effect of seawater temperature and salinity on the overall exergy efficiency of the geothermal combined system. Higher overall exergy efficiencies can be obtained at higher seawater temperatures, due to the decrease of the total exergy destruction of all stages with increasing feed seawater temperature. Furthermore, with increasing seawater salt concentration, the minimum exergy required for desalting increases. This results in an increase of the exergy efficiency of the MED subsystem and also a slight increase in the overall exergy efficiency of the combined system.

Fig. 4
figure 4

Variation of overall exergy efficiency of the geothermal-based combined MED-ORC system with the seawater temperature at several seawater salt concentrations

Figure 5 shows the effect of geothermal water resource temperature and boiler pressure (the highest pressure in the system) on the overall exergy efficiency of the geothermal-based combined MED-ORC system. It is seen that the overall exergy efficiency of the geothermal-based combined MED-ORC system reaches its minimum value at a geothermal water resource temperature of 175 °C. This is obtained when the work rate from the expander and freshwater production rate from MED, respectively, are 7500 kW and 98 kg/s. It is shown that, at fixed work and freshwater production rates, as the system boiler pressure increases, the exergy destruction rates of the system decrease due to the decrease in the ammonia mass flow rate. This results in an increase in the exergy efficiency of the overall system.

Fig. 5
figure 5

Variation of overall exergy efficiency of the geothermal-based combined MED-ORC system with the geothermal water resource temperature at several boiler pressures

The effect of reference environment temperature on the exergy destruction rate and sustainability index of the MED and ORC systems are shown in Fig. 6. As the reference environment temperature increases from 20 to 35 \(^\circ{\rm C}\), the exergy destruction rates for both the MED and ORC systems decrease and the corresponding sustainability indexes increase. It is seen that, as the reference environment temperature rises from 20 to 35 \(^\circ{\rm C}\), the exergy destruction rate decreases for the MED and ORC systems, respectively, from 6474 to 4217 kW and from 16,270 kW to 13,459 kW. The corresponding sustainability index for the MED and ORC systems increases respectively from 1.16 to 1.2 and 1.5 to 1.6. The same trend can be seen in Fig. 7, where the sustainability indexes are observed to rise with increasing temperature of the geothermal water source. However, the exergy destruction rates for both the MED and ORC systems decrease. It can be concluded that the exergy analysis of geothermal-based combined system assists in evaluating the efficiency, environmental impact, and sustainability of the system.

Fig. 6
figure 6

Effect of reference environment temperature on exergy destruction rate and sustainability index for the ORC and MED systems

Fig. 7
figure 7

source temperature (T1) on exergy destruction rate and sustainability index for the ORC and MED systems

Effect of geothermal water

5 Conclusions

Energy and exergy assessments, as well as sustainability analyses, are carried out for a geothermal-based combined system for electricity and freshwater production. By integrating an organic Rankine cycle with multi-effect distillation desalination, the overall exergy efficiency of the combined system (\({\Psi }_{\mathrm{overall}}=\)38%) is found to be higher than that of subsystems operating separately (i.e., \({\Psi }_{\mathrm{MED}}=20.5\%\) and \({\Psi }_{\mathrm{ORC}}=34\%\)). Therefore, integration of ORC and MED systems driven by geothermal energy can potentially increase exergy efficiency, and reduce both exergy destruction and environmental impact. The greatest exergy destruction rates are associated with the boiler, mainly due to heat transfer over large temperature differences. Among MED effects, the first effect has the highest exergy destruction rate (being responsible for 60% of total exergy destruction rate in MED), because only the first effect exchanges thermal energy with the high-temperature steam. Therefore, to reduce the exergy destruction rate in the first effect of MED, the temperature profiles of mediums in the heat exchanger should be matched to maximize the thermal energy exchanges. The exergy destruction rates associated with temperature disequilibrium of the freshwater and temperature and chemical disequilibrium of the brine, respectively, are responsible for 6% and 14% of total exergy destruction rate of the MED unit. Finally, it is determined via the sustainability analysis that, as the reference environment temperature and geothermal water source temperature increase, the sustainability indexes for both ORC and MED subsystems increase, while the corresponding exergy destruction rates decrease. It can be concluded that exergy analysis plays an important role in assessing the use of sustainable energy resources in seawater desalination technologies. Although other important factors like economics, safety, and environmental impacts are incorporated in design and modification of renewable energy-based desalination systems, exergy methods provide practical information on prospective system design and performance improvements to engineers and scientists.

Furthermore, higher overall exergy efficiencies of the system can be obtained at higher seawater temperatures and salinities. The exergy destruction rates associated with temperature disequilibrium of the freshwater and temperature and chemical disequilibrium of the brine, respectively, are found to be 6% and 14% of the total exergy destruction rate of the MED desalination system.