1 Introduction

The interest for low grade heat recovery has been growing for the last 10 years, due to the increasing concern over energy shortage and global warming. An important number of new solutions have been proposed to generate electricity from low temperature heat sources. Among the proposed solutions, the organic Rankine cycle (ORC) system is the most widely used [1, 2]. An ORC system is similar to a conventional steam cycle energy conversion system. However, for such a system, the working fluid is an organic fluid such as refrigerants and hydrocarbons characterized by a lower boiling temperature. Figure 1 shows ORC with internal heat exchanger. It consists of an evaporator driven by the geothermal source (or waste heat source), a turbine, an internal heat exchanger, a condenser, and a pump.

Fig. 1
figure 1

Organic Rankine cycle with internal heat exchanger

In recent years, studies in the literature on ORC systems have been increased. Tchanche et al. [1] presented a review of ORC applications. These applications include solar thermal electricity, solar thermal driven reverse osmosis desalination, Duplex-Rankine cooling, solar pond power systems, ocean thermal energy conversion, biomass combined heat and power plants, binary geothermal systems and low-grade waste heat recycling from thermal devices and processes.

Algieri and Morrone [2] investigated the energetic performance of subcritical and transcritical ORCs. The influence of the operating conditions on system performances has been evaluated. Cyclohexane, decane and toluene have been used as working fluids. The biomass energy was used for the ORC. Chen et al. [3] presented a design method for the thermodynamic analysis for ORCs. The results show that a higher turbine inlet temperature requires a lower turbine inlet pressure, leading to a lower system thermal efficiency. The maximum thermal efficiency appears at the saturated or slightly-superheated vapor state at the turbine inlet. The pinch temperature differences in evaporators strongly influence the system thermal efficiency. Delgado-Torres and Garcia-Rodriguez [4] carried out analysis and optimization of the low-temperature solar ORC. Twelve substances are considered as working fluids of the ORC and four different models of stationary solar collectors. Results obtained for the solar regenerative ORC show that, in general, dry fluids considered yield lower values of the unit aperture area than wet fluids with the exception of ammonia. Ammonia yields similar values than isobutene and it has very good transport properties. However, it has higher values of saturation pressure and toxicity levels than the rest of the fluids considered in this work.

Kuo et al. [5] analyzed the system performance of a 50 kW ORC system subjected to influence of various working fluids. The thermal efficiency of an ORC system is strongly related to thermophysical properties. Analysis of the typical ORC heat exchangers indicates that the dominant thermal resistance in the shell-and-tube condenser is on the shell side. Kang [6] designed an ORC that generates electric power and uses R245fa as the working fluid. The performance of the developed cycle was investigated experimentally. The efficiencies of the cycle and the turbine, electric power of the developed ORC with respect to the operation conditions were investigated.

Aljundi [7] analyzed the effect of using alternative dry fluids on the efficiencies of the ORC. The effect of the critical temperature on the thermal and exergetic efficiencies was determined. It was found that efficiencies correlate with the critical temperature of the working fluid. Wang et al. [8] presented fluid selection and parametric optimization of ORC using low temperature waste heat. The effect of waste heat temperature and pinch point on the performance and economic characteristics of ORC system was compared under the optimal conditions.

Sun and Li [9] presented a detailed analysis of an ORC heat recovery power plant using R134a as working fluid. Mathematical models for expander, evaporator, and air cooled condenser and pump are developed to evaluate the plant performance. Roy et al. [10] analyzed an ORC using working fluid such as R-12, R-123 and R-134a. The results were compared with respect to their abilities to convert low-grade heat source energy to power. The results show that R-123 has the maximum work output and efficiencies among all the selected fluids. Shengjun et al. [11] presented an investigation on the parameter optimization and performance comparison of the fluids in subcritical ORC and transcritical power cycle in low-temperature binary geothermal power system. The optimization procedure was conducted with a simulation program written in Matlab using five indicators: thermal efficiency, exergy efficiency, recovery efficiency, heat exchanger area per unit power output and the levelized energy cost. With the given heat source and heat sink conditions, performances of the working fluids were evaluated and compared under their optimized internal operation parameters. The optimum cycle design and the corresponding operation parameters were provided simultaneously.

Yamada et al. [12] investigated thermal efficiency of low-to medium-temperature ORCs using HFO-1234yf. The efficiency of HFO-1234yf was compared with that of other working fluids. Fernandez et al. [13] carried out thermodynamic analysis of high-temperature regenerative ORCs using siloxanes as working fluids. The analysis includes saturated and superheated, subcritical and supercritical cycles with linear and cyclic siloxanes. Simple linear siloxanes in saturated regenerative schemes show good efficiencies and ensure thermal stability of the working fluid. Li et al. [14] carried out thermodynamic analysis of ORC with ejector. The experiments and theoretical analyses were carried out in the same operation conditions. A Double ORC was also introduced in order to analyze and compare the ORC with ejector with the ORC. The thermal performance of Double ORC was superior to ORC with ejector.

In addition, artificial intelligence methods have also been applied to ORC in recent years. Rashidi et al. [15] carried out parametric analysis and optimization of regenerative Clausius and ORCs with two feedwater heaters. Artificial bee colony and artificial neural network methods for the parametric optimization were used. R717 and water as working fluid were used. Finally it is found that the maximum values of the specific network, the thermal efficiency and the exergy efficiency for R717 are greater than those for water. Wang et al. [16] carried out parametric optimization design for supercritical CO2 power cycle using genetic algorithm and artificial neural network. It is shown that the key thermodynamic parameters, such as turbine inlet pressure, turbine inlet temperature and environment temperature have significant effects on the performance of the supercritical CO2 power cycle and exergy destruction in each component. It is also shown that the optimum thermodynamic parameters of supercritical CO2 power cycle can be predicted with good accuracy using artificial neural network under variable waste heat conditions. Wang et al. [17] presented thermodynamic analysis and optimization of an ORC using low grade heat source. Parametric optimization is conducted to maximize the ratio of net power output to total heat transfer area considering economic factor by Genetic Algorithm. By parametric optimization, the ORC system with isobutane has the best system performance than that with R123 or R245fa. Arslan and Yetik [18] optimized supercritical ORC-Binary using artificial neural network. In the study, the trained algorithms also showed that the predicted values could be used to design an ORC-Binary power plant with less data and a high level of accuracy.

As can be seen from the literature review presented above, studies on use of artificial intelligence methods to energy systems and different ORC systems are available. However, studies on efficiency analysis of ORC with internal heat exchanger by using ANN are not available in the literature. In addition, studies on efficiency analysis of the ORC with internal heat exchanger using refrigerants R410a and R407c are very limited. In this study, in order to determine thermal efficiency of ORC with internal heat exchanger using refrigerants R410a and R407c artificial neural network (ANN) model was used. The results obtained from ANN model were compared with actual results. The thermal efficiency of ORC with internal heat exchanger with these models was estimated successfully. In addition, new formulations obtained from ANN are presented for the calculation of the thermal efficiency values. The use of this new formulation, which can be employed with any programming language or spreadsheet program for estimation of the thermal efficiency of IHEORC, as described in this paper, may make the use of dedicated ANN or Solkane software unnecessary. The results of this study will help to obtain a very accurate and fast forecast of the thermal efficiency of ORC with internal heat exchanger.

2 Calculation of thermal efficiency

Fundamental equations are introduced that are based on the energy balance of the ORC with internal heat exchanger according to the first law of thermodynamics. The analysis ignores the pressure loss from heat exchangers and piping. And each component is considered as a steady-state steady-flow system. Further details of the mathematical model are given as follows:

Pump: The work required in the pump is given by:

$$ W_{P} = \dot{m}(h_{2} - h_{1} ) $$
(1)

Evaporator: The heat transfer rate into the working fluid through the evaporator is defined as:

$$ Q_{E} = \dot{m}(h_{4} - h_{3} ) $$
(2)

Turbine: The work produced in the turbine is given by:

$$ W_{T} = \dot{m}(h_{4} - h_{5} ) $$
(3)

Condenser: The heat transfer rate in the condenser is given by:

$$ Q_{C} = \dot{m}(h_{6} - h_{1} ) $$
(4)

The thermal efficiency of the ORC with internal heat exchanger is related to input power, output power and heat transfer rate. The thermal efficiency of the cycle is defined as:

$$ \eta = \frac{{W_{T} - W_{P} }}{{Q_{E} }} = \frac{{(h_{4} - h_{5} ) - (h_{2} - h_{1} )}}{{(h_{4} - h_{3} )}} $$
(5)

Here, h is the enthalpy, \( \dot{m}{\kern 1pt} \) is the mass flow rate of the working fluid, the subscript numbers, 1–6, represent the state of the working fluid corresponding to the state numbers shown in Fig. 1.

3 Model development

In this study, the thermal efficiency of ORC with internal heat exchanger depending on the evaporator temperature (TE), condenser temperature (TC), superheating temperature (TSH) and subcooling temperature (TSC) for R410a and R407c is predicted using ANN approach. In Table 1, the input- output parameters used in the analysis are shown.

Table 1 Input and output parameters

The performance of ANN model for training and testing data sets were evaluated according to statistical criteria such as, the Root-Mean-Squared Error (RMSE), the coefficient of determination (R2) and the coefficient of variation (cov). These statistical criteria’s will be used to compare the predicted and actual values. During learning the error is estimated by RMSE defined as [19]:

$$ RMSE = \sqrt {\frac{{\sum\nolimits_{m = 1}^{n} {(y_{p,m} - t_{m,m} )^{2} } }}{n}} $$
(6)

In addition, the coefficient of determination (R2) and coefficient of variation (cov) in percent are defined as follows [19]:

$$ R^{2} = 1 - \frac{{\sum\nolimits_{m = 1}^{n} {(t_{m,m} - y_{p,m} )}^{2} }}{{\sum\nolimits_{m = 1}^{n} {(t_{m,m} - \bar{t}_{m,m} )}^{2} }} $$
(7)
$$ \text{cov} = \frac{RMSE}{{\left| {\bar{t}_{m,m} } \right|}}100 $$
(8)

where n is the number of data patterns, yp,m indicates the predicted, tm,m is the measured value of one data point m, and \( \bar{t}_{m,m} \) is the mean value of all measure data points.

In order to achieve the optimal result, different algorithms and different numbers of hidden neurons were used. The computer program was performed under MATLAB environment using the neural network toolbox. The back propagation learning algorithm has been used in a feed forward, single hidden layer neural network. The variants of the algorithm used in the study are the Levenberg–Marquardt (LM) and Scaled Conjugate Gradient (SCG) algorithms. The actual input data of the various parameters need to be normalized in the range (0–1). For this purpose the actual values of each parameter are divided with the coefficients shown in Table 2.

Table 2 Normalization coefficients for input and output parameters

A log-sigmoid activation function was used for the hidden and output layer. The activation function used is given by:

$$ F(z) = \frac{1}{{1 + e^{ - z} }} $$
(9)

where z is the weighted sum of the input.

The next step in the development of the ANN model was the determination of the optimum number of neurons in the hidden layer. This was identified using a trial and error procedure by varying the number of hidden neurons from 3 to 12. The data set for the thermal efficiency of ORC with internal heat exchanger available included 153 data patterns. From these, 101 data patterns were used for training the network, and 26 data patterns were randomly selected and used as the test data set. 26 data patterns were used for validation. The data set for testing and validation were taken from Solkane Software. Solkane is a software package for calculating the thermophysical and thermodynamic properties of fluids. In addition, Solkane software performs calculations of cycles as some refrigeration and ORC cycle [20].

Statistical values such as RMSE, R2 and cov are given in Table 3 for the R410a working fluid and in Table 4 for the R407c working fluid.

Table 3 Statistical values of thermal efficiency for R410a working fluid
Table 4 Statistical values of thermal efficiency for R407c working fluid

From the data presented in Table 3 for the R410a working fluid, the SCG algorithm with seven neurons in the hidden layer (SCG-7) appeared to be the most optimal topology. The R2-value for the thermal efficiency values of the system working with R410a is 0.99946 which can be considered as very satisfactory. Figure 2 shows the architecture of the ANN used in the thermal efficiency prediction for the R410a working fluid. The decrease of the mean square error (MSE) during the training process of this topology is shown in Fig. 3. The regression curve of the output variable (thermal efficiency) for the test data set is shown in Fig. 4. The correlation coefficient obtained in this case is 0.9326, which is very satisfactory.

Fig. 2
figure 2

Architecture of the ANN used in the thermal efficiency prediction for the R410a working fluid

Fig. 3
figure 3

Variation of mean square error with training epochs for the thermal efficiency (for the R410a)

Fig. 4
figure 4

Comparison of actual and ANN predicted values of the thermal efficiency for the test data set (for the R410a)

From the data presented in Table 4 for the R407c working fluid, the SCG algorithm with five neurons in the hidden layer (SCG-5) appeared to be the most optimal topology. The R2-value for the thermal efficiency values of the system working with R407c is 0.999943 which can be considered as very satisfactory. Figure 5 shows the architecture of the ANN used in the thermal efficiency prediction for the R407c working fluid. The decrease of the mean square error (MSE) during the training process of this topology is shown in Fig. 6. The regression curve of the output variable (thermal efficiency) for the test data set is shown in Fig. 7. The correlation coefficient obtained in this case is 0.9746, which is very satisfactory.

Fig. 5
figure 5

Architecture of the ANN used in the thermal efficiency prediction for the R407c working fluid

Fig. 6
figure 6

Variation of mean square error with training epochs for the thermal efficiency (for the R407c)

Fig. 7
figure 7

Comparison of actual and ANN predicted values of the thermal efficiency for the test data set (for the R407c)

4 Results and discussion

The mathematical formulations derived from the ANN model are presented here. In order to determine the thermal efficiency of ORC with internal heat exchanger, the following equations are used derived from the ANN methodology:

$$ {\text{E}}_{\text{i}} = \sum\limits_{{{\text{n}} = 1}}^{4} {{\text{I}}_{\text{n}} {\text{w}}_{\text{ni}} + {\text{b}}_{\text{n}} } $$
(10)
$$ F_{i} = \frac{1}{{1 + e^{{ - E_{i} }} }} $$
(11)

In the above equations for Ei the first two values are the multiplication of the input parameters (In) with their weights at location n and the last constant value (bn) represent the bias term. The subscript i represent the number of hidden neuron. The four input parameters are:

  • I1 = Evaporator temperature (TE)

  • I2 = Condenser temperature (TC)

  • I3 = Superheating temperature (TSH)

  • I4 = Subcooling temperature (TSC)

For the thermal efficiency estimation of R410a working fluid, the best approach, which has minimum errors, is obtained from a network with 7 hidden neurons. Thus 7 pairs of equations, i.e., E1 to E7 and F1 to F7 are required, which represent the summation and activation functions of each neuron of the hidden layer respectively. The coefficients of Eq. (10) are given in Table 5.

Table 5 Weight coefficients and bias values of the ANN used for the thermal efficiency estimation of R410a

For the thermal efficiency estimation of R407c working fluid, the best approach, which has minimum errors, is obtained from a network with 5 hidden neurons. Thus 5 pairs of equations, i.e., E1 to E5 and F1 to F5 are required, which represent the summation and activation functions of each neuron of the hidden layer respectively. The coefficients of Eq. (10) are given in Table 6.

Table 6 Weight coefficients and bias values of the ANN used for the thermal efficiency estimation of R407c

Finally, the thermal efficiency values depending on the evaporator temperature (TE), condenser temperature (TC), superheating temperature (TSH) and subcooling temperature (TSC) for R410a can be computed from:

$$ {\text{E}}_{8} = {\text{F}}_{1}^{*} (132.2658) + {\text{F}}_{2}^{*} ( - 156.9813) + {\text{F}}_{3}^{*} (0.2007) + {\text{F}}_{4}^{*} (19.5787) + {\text{F}}_{5}^{*} (123.5142) + {\text{F}}_{6}^{*} (53.5699) + {\text{F}}_{7}^{*} ( - 19.2948) - 31.2036 $$
(12)
$$ \upeta = \left( {\frac{1}{{1 + {\text{e}}^{{ - {\text{E}}_{8} }} }}} \right) $$
(13)

Similarly, the thermal efficiency values depending on the same input parameters for R407c can be computed from:

$$ {\text{E}}_{6} = {\text{F}}_{1}^{*} ( - 47.5858) + {\text{F}}_{2}^{*} (36.1811) + {\text{F}}_{3}^{*} (0.57398) + {\text{F}}_{4}^{*} (14.6332) + {\text{F}}_{5}^{*} ( - 16.5511) + 9.6051 $$
(14)
$$ \upeta = \left( {\frac{1}{{1 + {\text{e}}^{{ - {\text{E}}_{6} }} }}} \right) $$
(15)

Tables 7 and 8 give a comparison of the actual thermal efficiency values with the results of ANN model for the ORC with internal heat exchanger for R410a and R407c respectively.

Table 7 Comparison of actual and ANN estimated thermal efficiency values of organic Rankine cycle with internal heat exchanger for R410a
Table 8 Comparison of actual and ANN estimated thermal efficiency values of organic Rankine cycle with internal heat exchanger for R407c

Figures 8 and 9 give a comparison of the actual thermal efficiency values with the results of ANN model for the ORC with internal heat exchanger in the different evaporator temperatures for the R410a and R407c respectively. As can be seen in Figs. 8 and 9, the actual thermal efficiency values for both working fluids agree with the results of ANN model.

Fig. 8
figure 8

Comparison between actual and ANN thermal efficiency for R410a

Fig. 9
figure 9

Comparison between actual and ANN thermal efficiency for R407c

5 Conclusion

The thermal efficiency values of an ORC with internal heat exchanger was estimated depending on the evaporator temperature, condenser temperature, superheating temperature and subcooling temperature values by using ANN. The ANN is successfully applied to determine the thermal efficiency values of the system working with R410a and R407c. The R2-value for the thermal efficiency values of a system working with R410a is 0.99946 and the R2-value for the thermal efficiency values of a system working with R407c is 0.999943 which can be considered as very satisfactory. In order to calculate the thermal efficiency values, mathematical formulations were derived from the ANN model. The use of this new formulation, which can be employed with any programming language or spreadsheet program for estimation of the thermal efficiency of IHEORC, as described in this paper, may make the use of dedicated ANN or Solkane software unnecessary. This method will help engineers to obtain a very accurate and fast forecast of the thermal efficiency of ORC with internal heat exchanger.