Introduction

In any industrial plant, energy flow analysis and exergy analysis and identifying equipment inefficiencies are key tools to quantify and monitor the optimal use of energy resources. To carry out such an analysis shows the amount of energy consumption is through the famous Sankey in the diagrams, where the arrows correspond to the specified values ​​of the amount of energy consumption in the specified ranges. However, Sankey diagrams alone are not sensitive to the quality of resources and equipment, as they only reflect consumption. This issue can lead to misleading conclusions in determining inefficient equipment. One way to overcome this deficiency is to use Grassmann diagrams together with Sankey diagrams, where flows are displayed as exergy instead of energy consumption (Stegou‐Sagia & Paignigiannis, 2003). Exergy analysis is also a useful tool to demonstrate the more efficient use of energy resources. A method for analyzing energy and exergy is to use Sankey and Grassmann diagrams to help policymakers and decision-makers better understand exergy and energy flow from the initial energy source to the final use (Gong & Werner 2017).

Sankey and Grassmann diagrams are an important aid in showing equipment inefficiencies and potential savings in relation to the use of energy resources. The principles of drawing Sankey diagrams follow the requirements of conservation of mass or energy. Drawing these diagrams provides a physical view of production systems and a better understanding of them. Sankey and Grassmann's analysis can show the places where exergy is lost in the cycles of industrial devices and provide valuable insights for designers of industrial devices to improve the cycle and avoid energy losses (Carrero et al. 2017; He et al. 2020; Zhang et al. 2022).

In the solar heat pump system, for effective use of solar energy, the systems are analyzed exergy. By determining the amount of reversible energy, exergy analysis can be used to improve the efficiency of a heat pump system (Imran et al. 2016; Wu et al. 2019). This method can be described as a powerful tool in the simulation of thermodynamic analysis of energy systems. In other words, it has been widely used in performance evaluation, design, and simulation of energy systems. It can be said that the maximum work that can be produced ideally for a certain amount of energy in environmental conditions in optimal conditions is exergy. Therefore, this method of analysis is a useful method for the operation design of many industrial processes (Arshad 2017) & (Alves-Filho 2015) & (Islam et al. 2019; YILMAZ, 2018).

Many researchers have investigated various exergy analysis methods in order to determine equipment inefficiency and exergy destruction rate. They have used exergy analysis methods in many renewable energy systems and different energy applications. The importance of these analysis windows has opened a separate one to focus on exergy analysis and modeling studies. In recent years, theoretical analysis based on exergy concepts and experimental studies has been done for heat pump systems.

Soundararajan et al. (Soundararajan et al., 2014) reviewed the Sankey diagram framework for energy and exergy flows. Designing and applying Sankey diagrams for any system help a lot to better understand energy loss representations at all system levels, equipment, and system energy analysis. Superimposing energy flow and exergy in Sankey diagrams provides balance estimation, calculation, and display of energy losses and identifies potential areas of energy losses and helps designers to improve their performance in these areas.

Carreroa et al. analyzed the Sankey and Grassmann diagrams in the micro-Humid Air Turbine cycle. In this research, the researchers investigated the amount of fuel consumption by drawing Sankey and Grassmann diagrams in the micro-Humid Air Turbine cycle and displayed graphically. The researcher used the graphs to visually evaluate the efficiency of the system. Vahab Ghalandari observed that the electrical work and enthalpy of the input currents have a major contribution to the total input energy of the VRM. Vahab Ghalandari graphically represented the flow of energy and exergy between sinks and sources with Sankey and Grassmann diagrams, respectively, and used the diagrams to visually evaluate system efficiency (Dincer & Rosen 2020; Ji et al. 2008; Omer 2008) &(Treichel & Cruickshank 2021) & (Cengel et al. 2019).

Koroneos Christopher and Rovas Dimitrios produced hydrogen by performing the liquefaction process. The researchers stated that the liquefaction process is very energy intensive and therefore requires a lot of exergy. By analyzing the results, the researchers showed that the hydrogen production process with the highest exergy efficiency is electrolysis using electricity from hydropower. And by analyzing the liquefaction process, they concluded that the process with the lowest exergy efficiency is driven by electrolysis by electricity from solar energy photovoltaics. By drawing a Grassmann diagram, the researchers determined the process of exergy losses in the power plant (Christopher & Dimitrios 2012).

Schmidt (Schmidt 2008) by stating that Sankey and Grassmann's diagrams are, respectively, tools for showing energy and exergy flows from the source of primary energy production to the final consumption of energy. By drawing these graphs and analyzing them, he investigated the importance of the graphs. Marina Montero Carrero et al. (Carrero et al. 2017) thermodynamically evaluated a turbine based on Sankey and Grassmann charts. According to the results at moments of low demand, the heat allows increasing the electrical efficiency of all units of the micro-Humid Air Turbine and therefore heat production and separates the electricity. Hepbasli and Akdemir (Hepbasli & Akdemir 2004) analyzed the energy and exergy of geothermal heat pumps. The researchers drew and studied the exergy diagram (Grassmann diagram) for GSHP ground source heat pumps by analyzing the irreversibility of geothermal heat pumps. Related to heat transfer processes, in-ground heat exchanger and evaporator were compared. And this visual analysis provided the designer with a better and quantitative understanding of equipment inefficiencies and their relative values. MARIE ANHEDEN and GUNNAR SVEDBERG (Anheden & Svedberg 1998) analyzed the exergy of chemical ring combustion systems. Grassmann's diagrams were drawn for systems with gaseous coal. The researchers determined the loss and destruction of the system by examining the Grassmann diagrams.

Dmytro Harasym and Volodymyr Labay (Harasym & Labay 2015) estimated exergy efficiency and exergy losses in operational clean room air-conditioning systems by the Grassmann diagram. The Grassmann diagram allows more accurate estimation of exergy efficiency of existing air conditioning systems and exergy losses in its elements. And exergy flow and losses for existing air conditioning systems were investigated, and this investigation provides an opportunity to estimate relative exergy losses in energy technology systems and understand the type of losses. Yan et al. performed an energy and exergy analysis of a non-emission coal-fired power generation system based on coal co-gasification. They traced the exergy and energy flows of the coal system under benchmark conditions by drawing Sankey and Grassmann diagrams (Yan et al. 2015). Bonnet et al. (Bonnet et al. 2005) analyzed the energy, exergy, and cost of a micro-production system based on the Ericsson engine. They investigated the rate of exergy transfer and exergy destruction by drawing Sankey and Grassmann diagrams. By studying exergy and drawing a Grassmann diagram, Bonnet et al. investigated exergy flows and exergy destruction in the system.

Due to the importance of using fluids for heat transfer in industries and reducing exergy destruction, they conducted a variety of research in identifying and using fluids with appropriate properties and simulated in software such as Aspen HYSYS (Aghel et al. 2020; Allahyarzadeh-Bidgoli et al. 2021). Heidaryan, Ehsan et al. provided a new and reliable model for predicting fluid viscosity at high pressures and temperatures (Heidaryan, de Alcântara Pessôa Filho, & Fuentes, 2022; Heidaryan et al. 2010a, b; Heidaryan et al. 2010a, b). Research was also conducted to determine the properties of fluids with high thermal transfer efficiency to reduce exergy destruction and increase productivity coefficient (Jarrahian & Heidaryan 2012, 2014). It is well known that the convection of common fluids such as oil, water, kerosene, ethylene glycol, and a few other number of heat transfer needs are insufficient (Y. Li et al. 2020a, b; Z. Li et al. 2020a, b; Safaei et al. 2021; Zhang et al. 2022). Some researchers also examined the use of nanofluids in industry to improve the performance of war transmission (Aldabesh et al. 2021; Cao et al. 2021; Khan et al. 2021) (Iskander Tlili et al.). One way of reducing excess in industries is the use of nanofluids of different dimensions (Ali et al. 2020; Awan et al. 2021; Y. Li et al. 2020a, b). Heat transfer decreases by increasing the volume fraction of nanoparticles. Other researches show that nanofluids with CNT improve the performance of solar systems in terms of energy and exergy (Ghalandari et al. 2020; Sarafraz et al. 2019).

Stegou-Sagian,y and N. Paignigiannis (Stegou‐Sagia & Paignigiannis, 2003) conducted a study on the comparison of performance in compressor and condenser by examining exergy losses in refrigeration systems. They were analyzed in the process of irreversible one-step refrigeration with refrigerant mixtures R-404A, R-410A, R-410B, and R-507 as working fluids for the vapor compression cycle. Exergy losses were calculated by a developed algorithm based on thermodynamics. The analysis of exergy balance on the components of the system is based on the parameters affecting losses, and the related results were presented in Grassmann diagrams (diagram of exergy flow rate).

Considering that, high-temperature heat pump systems with solar energy are very important in the exergy and energy analysis industries. This led us to analyze the energy and exergy of a heat pump system using Sankey and Grassmann diagrams. Graphical analysis of high-temperature heat pumps with Sankey and Grassmann diagrams can identify locations and equipment with high heat losses and help designers to increase efficiency. In the published research, the analysis is done by Sankey and Grassmann diagrams for a specific day of the year. In this research, we analyzed a solar energy heat pump in all months of the year by Sankey and Grassmann diagrams. This pump is used to produce hot water in Ahvaz pipe factory. Energy and exergy analysis was done by the graphic analysis of Sankey and Grassmann diagrams.

Materials and methods

Aspen HYSYS software was used for simulation and data analysis. This engineering software is a very powerful and accurate tool in modeling refinery, petrochemical, and electrolytic processes. The precise and powerful design method of this software is based on packages related to different materials and their equations of state, and this powerful software displays the simulation of models and processes in a very real way. And by using the Aspen HYSYS comprehensive library, the most accurate and best simulation and analysis methods perform complex and long engineering calculations in the shortest possible time. Aspen HYSYS software data analysis is done by MATLAB software, and these two software programs are linked together. Data analysis and precise mathematical and statistical calculations with MATLAB software are of great importance. One of the features of this software is extracting input data from another software library to perform calculations based on it. Therefore, by extracting data of thermodynamic processes from Aspen HYSYS software and performing analysis in MATLAB software, more accurate exergy calculations can be achieved.

The current research has investigated the quality of energy consumption for the production of hot water in Ahvaz Pipeline Company, located in the center of Ahvaz city with about 300 sunny days. In this regard, the exergy analysis of the current situation of the above company and the procedures used to improve its energy consumption quality indicators are evaluated and analyzed by graphically drawing Sankey and Grassmann charts.

Description of the process

A heat pump with the help of indirect solar radiation is used in this study. Solar energy is an alternative to fossil fuels such as natural gas, coal, oil, and electricity. This integrated system is used for water heating applications with renewable energy. In this system, the solar collector and the heat pump together make up the water heating system of a solar heat pump. This system is made of three cycles. The first cycle includes a compound parabolic solar collector and a heat exchanger (this equipment is shared between the first cycle and the second cycle; it is an evaporator for the second cycle) and a fluid pump. The working fluid in the first cycle is oil. The working fluid transfers the heat obtained from radiant energy in the heat exchanger to the heat pump. The second cycle includes equipment, compressor, condenser (heat exchanger), expansion valve, evaporator (heat exchanger). The working fluid in this cycle is refrigerant R-134a. The third cycle includes a hot water storage tank, a water pump, and a heat exchanger (this equipment is common between the second cycle and the third cycle, and for the second cycle, it is a condenser). The working year in this cycle is water. The solar energy harvesting collector works at low temperature, but the heat pump works at high temperature, increasing its performance compared to the air source heat pump (ASHP) (Chaturvedi et al. 1982). Figure 1 shows the integrated heat pump system with compound parabolic collector (CPC) in the pipeline company. Here the collector collects solar energy and the heat collected from the sun is transferred to the secondary fluid. The refrigerant in the heat pump cycle passes through the evaporator and evaporates. The evaporated refrigerant enters the compressor and increases the pressure and temperature. Then the refrigerant enters the condenser and loses its heat. A decrease in temperature causes the refrigerant to evaporate and liquefy. Then the refrigerant is directed to the expansion valve so that its temperature decreases after the expansion process. The heat of the condenser is transferred to another fluid, and it transfers its heat to it and the fluid is heated.

Fig. 1
figure 1

Process of the hot water production system

Figure 2 shows a schematic depiction of the cycle using R-134a as the refrigerant with low boiling points. An evaporator, compressor, condenser, and expansion valve are the four main components of a typical vapor compression refrigeration cycle. The collector is exposed to direct sunlight. Upon impact with the pipelines that carry refrigerant, the sunlight is absorbed by the liquid refrigerant. In heat pumps, the constant pressure of the subcooled liquid is transformed into saturated vapor via the evaporation of the hot working fluid in the heat pump evaporator; therefore, steps (1–4) involve the transfer of heat from the working fluid to the heat pump working fluid. Process (2–3) compresses the refrigerant using the evaporator and condenser pressures. In the next step, the refrigerant is removed from the heat and condensed into a saturated liquid state under the constant pressure of (3–4). Latent heat from condensation is transferred to the circulating water from the condenser during this process. When the refrigerant passes through the relief valve, it expands, creating a mixture of liquid and vapor (Cengel et al. 2011). In industries such as refrigeration, manufacturing, and industrial applications, heat pumps have been used for decades (Treichel & Cruickshank 2021). In addition to heating homes and businesses, they are also used in heating and cooling water, refrigeration, and many industrial processes. The heat pumps compete with direct electric heating and fossil boilers in the production of heat (Chua et al. 2010; Fani et al. 2020).

Fig. 2
figure 2

Solar hot water production system of Ahvaz pipeline company

With regard to the installation location of this equipment, all the aforementioned data are provided as input. A specific period of the day is chosen to take into account the collector temperature, and points are selected to calculate enthalpy values. Utilizing compressors, collectors, and thermal modules, the average monthly instantaneous values of the compressor, absorbed solar energy, and additional energy is calculated. In order to obtain annual values, the values of these parameters are integrated over a specific month and finally over all months.

Figure 2 shows the status of Ahwaz Pipeline Company's solar hot water production system and heat pump for high temperatures. There are three components to this system: The first part includes a solar compound parabolic concentrator (CPC), the second part includes a heat pump, and the third part is a storage tank. The solar radiation energy is transmitted to the CPC, and the working fluid heats the collector. To transfer the heat from the heat pump to the CPC working fluid, this fluid is pumped into the heat exchanger (evaporator). Condenser, compressor, evaporator, and expansion valve are the four main components of a vapor compression heat pump. According to this diagram, the water enters the storage and leaves after heating. Peng-Robinson equation of state has been used for process analysis in Aspen HYSYS software. Furthermore, Table 1 shows the operation condition.

Table 1 Process data on solar hot water production system currents

Figure 2 shows the state of the processes of the integrated solar collector system and the high-temperature heat pump of Ahvaz pipe factory. This system has three parts: The first part includes the centralized parabolic collector, the second part is the heat pump, and the third part is the storage tank. Solar radiant energy radiates to the compound parabolic concentrator (cpc) and heats the collector working fluid. This fluid transfers the heat produced in the first cycle. The heat transfer is done by entering the hot fluid into the heat exchanger (evaporator). It transfers the heat of the fluid coming out of the compound parabolic solar collector to the refrigerant of the pump. The high-temperature heat pump cycle is made up of a number of main equipment: This equipment includes a condenser (heat exchanger for the third cycle), evaporator (heat exchanger for the first cycle), expansion valve, and compressor. According to this diagram, the city water enters the tank and leaves after heating. In the analysis of processes in Hayes software, Robinson ping state equations have been used for analysis in Span Hayes software. Table 1 shows the process information of the currents of the heat pump system connected to the composite parabolic collector.

Analysis of thermodynamic

The analysis in this paper focuses on combining the two thermodynamic laws described in the concept of exergy analysis. To analyze the results in the specified conditions in the thermodynamic relationships, the following hypotheses are considered.

  1. a.

    The reference (dead) mode for the system has an ambient temperature of T0 = 20 C and a pressure of P0 = 101.325 kPa (Weather of Ahvaz International Airport 2021).

  2. b.

    The system works in steady state.

  3. c.

    Changes in kinetic and gravitational conditions in energy balance and exergy are negligible.

  4. d.

    Compressors and pumps are adiabatic.

  5. e.

    The refrigerant (water) at the condenser outlet and the evaporator at the heat pump is saturated.

  6. f.

    Pressure drop in all heat exchangers and pipelines is ignored.

  7. g.

    Steady-state, constant current operation,

  8. h.

    Adiabatic compressor and capillary tube,

Exergy analysis

Combining the first law with the second law of thermodynamics makes up the basis for the exergy analysis method. Energy processes in systems or equipment must be examined to determine the degree to which quality and quantity are combined. The main indicator of thermodynamic balance is exergy efficiency, which is calculated as the exergy balance of equipment or systems (Dincer & Rosen 2020; Ji et al. 2008; Omer 2008) A cyclic process is analyzed thermodynamically, and the first law of thermodynamics emphasizes the equality of work and heat as it relates to processes and systems. The premise of the first rule is that the process is possible in cycles, while natural processes that cannot be implemented in cycles can be considered (Fig. 3). Therefore, it can be said that the application of the first law of thermodynamics for a process alone does not indicate the correctness of the implementation of that process, and the first law is deficient in expressing the limitations of the implementation of thermodynamic processes or does not create any restrictions at all (Cengel et al. 2019).

Fig. 3
figure 3

Parabolic concentrated solar collector system integrated with heat pump

Recent decades have seen extensive research devoted to energy analysis to identify equipment inefficiencies and optimize energy consumption. This analysis in the early 1970s with the onset of the energy crisis in the world with superiority over energy analysis and other methods in achieving the efficiency of energy systems due to the ability to detect irreversibility in the system and considering the quality of energy significantly. The use of energy analysis during energy conversion is to determine thermodynamic behavior (Bejan 2013). Also, in systems, it is possible to calculate the amount of irreversibility in different cycle equipment. In a system, the lower the reversibility, the better the efficiency of the system. Factors that cause irreversibility: 1-heat transfer; 2-free expansion; 3-friction due to limited degree difference; and 4-mixing of two different materials; there are other factors that cause irreversible of processes. The effects of waste and waste on electrical networks are both irreversible effects of processes. The combustion process is also an irreversible process. We must also look at the interrelationship between reversibility, balance and time. In a reversible process, the deviation from equilibrium is very small and therefore the process occurs very slowly. Because it is better for real processes to occur at limited speeds, the deviation from equilibrium must be limited. So the real process will be somewhat irreversible. The larger the deviation from the equilibrium, the greater the irreversibility and the faster the process (Sonntag et al. 2020). The lower the irreversibility in a thermodynamic process, the more work is done (or the less work required) (Dincer et al. 2004).

This analysis identifies the most inefficient equipment and shows the amount of wasted opportunities for energy use of this equipment in relation to environmental conditions, which requires clear environmental conditions (Khoshgoftar Manesh et al. 2009). Determining the characteristics of the reference environment is very important in performing system evaluation. Based on the information collected from official sources, the average reference temperature of Ahvaz city (construction site of Ahvaz Pipe Factory) is considered to be 25° C and the reference pressure is 101.325/325 K (official). Therefore, it can be concluded that exergy analysis is a fundamental method to better identify the location, causes, and extent of thermodynamic inefficiency of a process (Ghorbani et al. 2016; Safarvand et al. 2015). This analysis is a suitable method to evaluate the performance of chemical processes (Ghorbani et al. 2016).

According to Eq. (1), the exergy of each current is generally divided into four kinetic (\(\dot{\mathrm{E}}{\mathrm{x}}_{\mathrm{ke}}\)), potential (\(\dot{\mathrm{E}}{\mathrm{x}}_{\mathrm{po}}\)), chemical (\(\dot{\mathrm{E}}{\mathrm{x}}_{\mathrm{ch}}\)), and physical (\(\dot{\mathrm{E}}{\mathrm{x}}_{\mathrm{ph}}\)) parts (Ansarinasab et al. 2017). Potential and kinetic exergy can be ignored when the system is at rest relative to its environment (Ansarinasab et al. 2017). Therefore, the exergy value of each currency can be calculated by Eq. (2) (Esen et al. 2007):

$$\dot{E}x = \dot{E}x_{po} + \dot{E}x_{ke} + \dot{E}x_{ph} + \dot{E}x_{ch}$$
(1)
$$\dot{E}x = \dot{E}x_{{{\text{ph}}}} + \dot{E}x_{{{\text{ch}}}}$$
(2)
$$\dot{E}x_{ph} = \dot{m}\left[ {\left( {h - h_{0} } \right) - T_{0} \left( {s - s_{0} } \right)} \right]$$
(3)

In the above equations, the zero indexes represent the environmental conditions. In Eq. (3), \(\dot{m}\) is mass discharge. The specific enthalpy of the reaction is \({h}_{0}\), the specific entropy is \({s}_{0}\), and the reference ambient temperature is \({s}_{0}\). Also in the equations below Gi is Gibbs free energy and \({e}_{i}^{0}\) is the standard chemical exergy for calculating chemical exergy (Bahram Ghorbani, Hamedi, & Amidpour, 2016; Safarvand et al. 2015). The exergy calculation of currents is shown in detail in Fig. 2.

The concept, however, enables greater exploitation of energy sources and the determination of the exact amount and location of energy lost. The concept also explains the reason for the low efficiency of the system (Anvari et al. 2017a, b).

In the case of two systems in different states, there is an opportunity for work that will continue as long as these systems are not in equilibrium. Exergy represents the amount of work a system can produce until equilibrium is reached (Anvari et al. 2017).

The environment and the dead state are used for in order to understand exergy analysis; these two calculations are important. Pressure, chemical composition, and temperature are usually used to determine a dead state. Chemical and physical exergy of a current is calculated using the following equations (Ansarinasab et al. 2017; Nami et al. 2017).

$$e^{ph} = \left( {h - h_{0} } \right) - T_{0} \left( {s - s_{0} } \right)$$
(4)
$$E^{{{\dot{\text{P}}\text{H}}}} = {\dot{\text{m}}\text{e}}^{{{\text{PH}}}}$$
(5)
$${\dot{\text{E}}\text{x}}_{{{\text{ch}}}} = {\dot{\text{m}}\text{ex}}_{{{\text{ch}}}} = \dot{m}\left( {\sum x_{i} e_{i}^{0} + G - \sum x_{i} G_{i} } \right)$$
(6)
$$e^{{{\text{ch}}}} = \sum x_{i} e_{i}^{{{\text{ch}},o}} + {\text{RT}}^{O} \sum x_{i} \ln x_{i}$$
(7)
$$E^{{{\dot{\text{C}}\text{H}}}} = {\dot{\text{m}}\text{e}}^{{{\text{CH}}}}$$
(8)

The standard chemical exergy of the current components is equal to \({e}_{i}^{ch,o}\). h, s, and o are specific enthalpies and entropies, respectively (Dincer & Cengel 2001). The chemical energy of materials is determined by obtaining the standard amount whose values are not present in the embryo. It is appropriate to think of a response that takes into account the standard chemical exergy of all reaction materials in addition to the desired material. Equation (14) is applied to the standard chemical exergy of a given material to obtain the sources (Ansarinasab et al. 2017; Kotas 2013).

These parameters will determine two important parameters of the process: energy destruction and energy efficiency that should be defined in the analysis according to Eqs. (7) and (8), and the exergy return of the equipment should be defined (Bahram Ghorbani, Hamedi, & Amidpour, 2016). These are the basic parameters for equipment (Dincer et al. 2004; Dincer & Rosen 2021).

$${\dot{\text{E}}\text{x}}_{D} = {\dot{\text{E}}\text{x}}_{F} - {\dot{\text{E}}\text{x}}_{P}$$
(9)
$$\varepsilon = \frac{{{\dot{\text{E}}\text{x}}_{P} }}{{{\dot{\text{E}}\text{x}}_{F} }} = 1 - \frac{{{\dot{\text{E}}\text{x}}_{D} }}{{{\dot{\text{E}}\text{x}}_{F} }}$$
(10)

In the above equations, the product is shown with index P, the destruction is shown with index D, and the fuel is shown with index F.

The formulas used for the hot water production system equipment are as follows:

For compressor (Mehrpooya & Shafaei 2016; Vatani et al. 2014):

$${\dot{\text{E}}\text{x}}_{D} = {\dot{\text{E}}\text{x}}_{F} - {\dot{\text{E}}\text{x}}_{P} = - \sum \left( {\dot{m}.e} \right)_{{{\text{out}}}} + \sum \left( {\dot{m}.e} \right)_{in} + W$$
(11)
$$\varepsilon = \frac{{ - \sum \left( {\dot{m}.e} \right)_{{{\text{out}}}} + \sum \left( {\dot{m}.e} \right)_{{{\text{in}}}} }}{W}$$
(12)

For condenser, evaporator and heat exchangers (B Ghorbani et al. 2012):

$${\dot{\text{E}}\text{x}}_{D} = {\dot{\text{E}}\text{x}}_{F} - {\dot{\text{E}}\text{x}}_{P} = \left[ {\sum \left( {\dot{m}.e} \right)} \right]_{{1,\left( {{\text{Cold}}} \right)}} + \left[ {\sum \left( {\dot{m}.e} \right)} \right]_{{{\text{in}},\left( {{\text{Hot}}} \right)}} - \left[ {\sum \left( {\dot{m}.e} \right)} \right]_{{2,\left( {{\text{Cold}}} \right)}} - \left[ {\sum \left( {\dot{m}.e} \right)} \right]_{{{\text{out}},\left( {{\text{Hot}}} \right)}}$$
(13)
$$\varepsilon = \frac{{ - \left[ {\sum \left( {\dot{m}.e} \right)} \right]_{{{\text{out}},\left( {{\text{Hot}}} \right)}} + \left[ {\sum \left( {\dot{m}.e} \right)} \right]_{{{\text{in}},\left( {{\text{Hot}}} \right)}} }}{{ - \left[ {\sum \left( {\dot{m}.e} \right)} \right]_{{1,\left( {{\text{Cold}}} \right)}} + \left[ {\sum \left( {\dot{m}.e} \right)} \right]_{{2,\left( {{\text{Cold}}} \right)}} }}$$
(14)

For solar collector (Bahram Ghorbani, Hamedi, & Amidpour, 2016; Ghorbani et al. 2018):

$${\dot{\text{E}}\text{x}}_{D} = {\dot{\text{E}}\text{x}}_{F} - {\dot{\text{E}}\text{x}}_{P} = - \sum \left( {\dot{m}.e} \right)_{{{\text{out}}}} + Q\left( { - \frac{T}{{T_{0} }} + 1} \right) + \sum \left( {\dot{m}.e} \right)_{{{\text{in}}}}$$
(15)
$$\varepsilon = \frac{{Q\left( { - \frac{T}{{T_{0} }} + 1} \right)}}{{ - \sum \left( {\dot{m}.e} \right)_{{{\text{out}}}} + \sum \left( {\dot{m}.e} \right)_{{{\text{in}}}} }}$$
(16)

For expansion valve (Mehrpooya et al. 2016; Vatani et al. 2014):

$${\dot{\text{E}}\text{x}}_{D} = {\dot{\text{E}}\text{x}}_{F} - {\dot{\text{E}}\text{x}}_{P} = \sum \left( {\dot{m}.e} \right)_{{{\text{in}}}} - \sum \left( {\dot{m}.e} \right)_{{{\text{out}}}}$$
(17)
$$\varepsilon = \frac{{e_{{{\text{out}}}}^{\Delta T} - e_{{{\text{in}}}}^{\Delta T} }}{{e_{{{\text{out}}}}^{\Delta P} - e_{{{\text{in}}}}^{\Delta P} }}$$
(18)

For pump (Mehrpooya et al. 2016; Vatani et al. 2014):

$${\dot{\text{E}}\text{x}}_{D} = - {\dot{\text{E}}\text{x}}_{P} + {\dot{\text{E}}\text{x}}_{F} = - \sum \left( {\dot{m}.e} \right)_{{{\text{out}}}} + \sum \left( {\dot{m}.e} \right)_{{{\text{in}}}} + W$$
(19)
$$\varepsilon = \frac{{ - \sum \left( {\dot{m}.e} \right)_{{{\text{out}}}} + \sum \left( {\dot{m}.e} \right)_{{{\text{in}}}} }}{W}$$
(20)

Thermal energy is the result of the temperature difference between the stream and its surroundings when it comes to the efficiency of the expansion valve. And the pressure component is determined by the pressure differential between the stream and the environment at the temperature of the environment.

In this regard, the properties of the main currents of the hot water production system are inlet water and heat pump outlet water.

Exergy analysis considers all components, and fuel and product are calculated according to exergy and economic objectives based on an exergy-specific costing method (Ahmadi et al. 2011).

After calculating the exergy of the fuel and the exergy of the product, the exergy variables can be calculated (Ayres et al. 1998; Calise et al. 2006; Cohce et al. 2011; Sezer & Bilgin 2013). According to the efficiency, destruction, and ratio, the exergy efficiency of component k can be determined with the exergy ratio of the fuel and the determined product (Tsatsaronis & Moran 1997):

Energy analysis

All intended equipment must comply with the specified control volume available under stable conditions. According to Eq. (1), ṁi and ṁe are the mass flow inputs and outputs in the control volume, respectively (Fig. 4).

$$\sum \dot{m}_{i} + \sum \dot{m}_{e} = \frac{{dm_{c.v} }}{dt}$$
(21)
$$\sum \dot{m}_{i} = \sum \dot{m}_{e}$$
(22)
$$\dot{Q} + \sum \left( {{\dot{\text{m}}\text{h}}} \right)_{i} = \dot{W} + \sum \left( {{\dot{\text{m}}\text{h}}} \right)_{e}$$
(23)
Fig. 4
figure 4

Flowchart of calculating the current exergy according

In addition, the heat exchange and working conditions for the refrigeration cycle are considered as equations. (3) That Q and are heat exchanged and operate under the existing boundary conditions for the cycle (Goswami 2004; MOFRAD et al. 2020). Compressor consumption and turbine output work are calculated by equation (Table 2) 13 and Eq. 20, respectively, and the heat absorbed by the evaporator is determined according to Equation (Goswami 2004; MOFRAD et al. 2020).

Table 2 Energy equations equipments of heat pump system connected to the centralized parabolic solar collector (Cengel et al. 2011; Goswami 2004; Granet et al. 2020; MOFRAD et al. 2020; Stark 1966)

Discussions and results

The results of all thermodynamic analyses based on scientific principles on processes are presented in the form of defined and known indices or criteria (Table 3). One of the types of thermodynamic analysis is an energy analysis in which energy consumption is quantitatively studied and its optimality is analyzed (Cengel et al. 2019; Sonntag et al. 2020).

Table 3 Assumptions for calculating exergy destruction in both operational and ideal modes for compressor and heat exchanger (Kelly 2008; Tan & Keçebaş, 2014)

Figures 5, 6 and 7 show the diagrams of energy, exergy destruction, and exergy efficiency of a hot water heat pump production system connected to a solar collector.

Fig. 5
figure 5

Energy results of the main flows of the high-temperature heat pump system connected to the compound parabolic collector

Fig. 6
figure 6

Exergy destruction(kW)

Fig. 7
figure 7

Exergy effieciency(%)

As the next level of detail, Fig. 8 shows the components of the hot water heat pump production system connected to the solar collector. Five recurring components were discovered from the analysis of hybrid heating systems and solar heat pumps: backup heater, heat pump, and solar collector (orange fields) with a source-side (usually cold) and one-door (usually cold) storage concept, (been completed; usually hot) side of the heat pump sink (blue field). The positions of all these components are fixed, and if present in the concept, they can be highlighted. Any component or power source/sink that does not exist or is not used in a system is also displayed through placeholders, but is not highlighted. Different colors are used to distinguish between the final (gray): environmental energy (green) and useful (red) as well as energy converters (orange) and storage (blue). However, the information provided by coloring is not necessary to understand the concept presented.

Fig. 8
figure 8

Energy diagram of hot water heat pumps production system connected to the solar collector

The final step is to visualize the energy flows that connect the specific components. By doing this, this shape becomes an energy flow chart. Therefore, understanding, analysis, and last but not least, systems should be easy to compare. Each line style refers to the carrier medium, except for stimulus energies, which are mostly mass-free, for example. Solar radiation is indifferent to the width of the lines and therefore does not represent, for example, the amount of energy transmitted. This is also true for components in general. Finally, it is important to understand that each system is represented exactly by a flowchart. This means that no specific operating modes are displayed, but all operating modes that occur in the displayed system are displayed at the same time.

Sanky and Grassmann diagrams

Image simulation of energy consumption and energy dissipation can be studied in Sanky and Grassmann diagrams. In these diagrams, based on the first and second laws of thermodynamics, the quantitative and qualitative evaluation of equipment energy is performed (Gong & Werner 2017). According to the Grassmann diagram, the amount of equipment wastage wasted and the Sankey diagram, the entropy flow in the equipment. In thermodynamic flow, the Sanky diagram contains a graphical representation of the energy distribution where the width of the arrow indicates the amount of energy distribution between the hole and the well. And it easily shows the places where the energy of the system is wasted (Osintsev & Alyukov 2022; Srinivas 2022).

A suitable method for evaluating and analyzing the second law of thermodynamics is the use of Grassmann diagrams which is similar to the Sanky diagram. The difference is that instead of entropy, the exergy current is distributed. In this graphic analysis, the places of wasted energy are easily identified and monitored (Carrero et al. 2017; Gong & Ottermo 2022). Sanky diagrams and Grassmann diagrams are tools for showing energy and exergy flows from the primary energy source to the final consumer, respectively. The Sanky diagram is an important aid in showing the inefficiencies and potential savings associated with resource use (Osintsev & Alyukov 2022). Simple Sanky diagrams follow the requirements for energy or mass conservation and provides a physical view of production systems. The left side shows the diagram of the initial energy input currents, the middle part shows the conversion processes, and the right side shows the end users; the energy losses go from top to bottom, while the exergy destruction disappears. It becomes. nodes represented processes or distribution networks. The width of the current indicates the amount of energy/exergy. Different colors represent different types of input and output currents.

In drawing the Sankey and Grassmann diagrams, the primary energy input flows are placed on the left side of the diagram, the middle part of the transformation and transmission processes are placed, the energy consumers are placed on the right side, and the energy losses are displayed from top to bottom. There will be some. In the diagrams, the nodes, processes, or energy distribution networks between the equipment are shown. In the Sankey and Grassmann diagrams, the flow width indicates the amount of energy/exergy input and output of the equipment. Also, different colors indicate different types of input and output streams.

Figure 9 shows the Sankey diagram of the heat pump network of the high-temperature heat pump system with the help of a solar collector. In this analysis, the energy balance equation was examined for each equipment. In this diagram, the highest energy rate is related to flow 11.

Fig. 9
figure 9

The Sanky diagram shows the energy level of the system

Figure 10 shows the Grassmann diagram of the heat pump network with the help of the sun. In this analysis, the exergy equation was examined. Streams with thicker lines indicate the amount of exergy (stream's rat exergy flow). The narrow line shows the amount of exergy destruction of that equipment; as shown in this figure, stream number 12 has the highest amount of exergy among the streams, and the exergy destruction of the solar collector is more than other equipment. Finally, the amount of exergy destruction of the heat pump system is shown in the process block.

Fig. 10
figure 10

The Grassmann diagram of the system exergy

Conclusion

One of the most serious problems of human beings today is the lack of energy along with the development of modern society, which renewable and sustainable energy provides a suitable and strong solution to deal with the effects of this problem. The use of renewable energy systems in industry is very important, which minimizes energy consumption. The best option for hot water production is the use of solar energy. In this project, the use of this energy source in the field of hot water production by collectors and heat pumps has been studied.

In this study, the effect of ambient and daily reference temperature was investigated. Also, energy and exergy analysis was performed graphically and the efficiency and ambient temperature were evaluated. This method was used to better understand the locations, causes and strategies to improve the inefficiency of the hot water production system equipment of Ahwaz Pipe Factory. The results of energy analysis and exergy in this study were observed that the most exergy damage belongs to the solar collector at 225.3 kW, while with increasing annual temperature between 25 and 55 degrees is observed that the exergy destruction of equipment varies between 0.52 and 225.3 kW Also, among the rotating equipment, the most exergy damage belongs to the K-101 compressor, which the results show that with the increase in the efficiency of this equipment, the amount of exergy damage decreases and the exergy efficiency increases. On the other hand, improving the performance of the compressor will reduce the exergy destruction more dramatically which indicates the main priority of this equipment, for better energy efficiency.

In this paper, energy-based and exergy currents from the primary energy source to the consumer are plotted using Sankey and Grassmann diagrams. The graphs show that more than half of the exergy source in the solar collector is destroyed. In the industrial heating system, the maximum exergy efficiency of the heat pump is when entering using the sun. The pump uses a lot of renewable energy sources.