Fuzzy Nonlinear Dynamic Evaporator Model in Supercritical Organic Rankine Cycle Waste Heat Recovery Systems

: The organic Rankine cycle (ORC)-based waste heat recovery (WHR) system operating under a supercritical condition has a higher potential of thermal efﬁciency and work output than a traditional subcritical cycle. However, the operation of supercritical cycles is more challenging due to the high pressure in the system and transient behavior of waste heat sources from industrial and automotive engines that affect the performance of the system and the evaporator, which is the most crucial component of the ORC. To take the transient behavior into account, the dynamic model of the evaporator using renowned ﬁnite volume (FV) technique is developed in this paper. Although the FV model can capture the transient effects accurately, the model has a limitation for real-time control applications due to its time-intensive computation. To capture the transient effects and reduce the simulation time, a novel fuzzy-based nonlinear dynamic evaporator model is also developed and presented in this paper. The results show that the fuzzy-based model was able to capture the transient effects at a data ﬁtness of over 90%, while it has potential to complete the simulation 700 times faster than the FV model. By integrating with other subcomponent models of the system, such as pump, expander, and condenser, the predicted system output and pressure have a mean average percentage error of 3.11% and 0.001%, respectively. These results suggest that the developed fuzzy-based evaporator and the overall ORC-WHR system can be used for transient simulations and to develop control strategies for real-time applications.


Introduction
Around 60% of global greenhouse gases are emitted to the environment from industry and transport sectors [1]. These two sectors are heavily involved in energy conversion processes such as the burning of fuels to generate electricity, heat, and mechanical power. Low efficiency in the conversion process is one of the determinants that causes increased pollutant emissions. In a typical diesel internal combustion engine, a maximum of 45% of fuel energy can be converted into the mechanical energy at its best operating condition, while the gasoline engine returns a high of 35% [2]. Remaining energy is wasted mainly through heat lost to the engine's coolant and exhaust. To mitigate the environmental impact caused by the higher fuel consumption and the lower conversion efficiency, recent research has been focused on the development and utilization of alternative sources of energy such as renewable energies, different types of waste heat and biomass. Waste heat from industries and automotive sectors has gained much attention to improve the energy conversion efficiency of the engine and reduce the environmental pollutions. Since the waste heat from these sectors are mostly low to medium grade in quality, one way of utilizing this heat is to recover and convert into mechanical rotations or electrical power using an appropriate waste heat recovery (WHR) system, which increases the engine's thermal efficiency and thus reduces the fuel consumptions and emissions.
Among different WHR technologies, thermoelectric generator (TEG), phase change material (PCM) engine, Stirling engine, and organic Rankine cycle (ORC) are most common. A TEG can convert the heat energy to electrical power when a temperature difference is applied to a joint of two different materials. A PCM engine generates mechanical rotation using the expansion and contraction properties of PCMs used for WHR. A Stirling engine produces mechanical power through a continuous change of volume of a gas used inside the cylinders of the engine. The waste heat in an ORC is used to vaporize an organic working fluid, elevating its pressure and temperature and then expanding the fluid to generate mechanical energy. The TEG, PCM and Stirling engines are less flexible to construct a system for low to medium grade WHR with a kW range power output; while an ORC has a great flexibility to choose different components suitable for many ranges of power output. Moreover, the conversion efficiency of the PCM, TEG, Stirling Engine, and the ORC in low to medium grade WHR applications are, generally, up to 2.5%, 5%, 10.3%, and 16%, respectively [3,4]. Although some reports suggest that Stirling engines have many advantages such as low noise and high thermal efficiency for medium to high grade heat recovery applications, this technology is still considered to be in an early stage of development [5]. On the contrary, the ORC has many practical advantages including adapting with different grades of heat sources and availability of its components as reported in [3,6,7].
The operating cycle of an ORC can be one of the two types: subcritical cycle whose pressure is lower than the critical pressure of the organic fluid or supercritical cycle whose pressure is higher than the critical pressure of the fluid (see Figure 1). The cycle 1-2-2 -3-4-5-5 -1 represents a subcritical ORC, while 1-2-3 -5 -1 represents a supercritical ORC. The subcritical ORC for WHR applications is widely used and mentioned in the following reports [8][9][10][11][12][13][14]. Authors in [15] concluded that in subcritical conditions the thermal efficiency of the cycle is low because of higher exergy losses and destructions while the authors in [6,7,15,16] showed that these losses and destructions become lower in supercritical conditions that lead to high thermal efficiency of the ORC. Moreover, the cycle efficiency of the supercritical ORC is also dependent on system configurations, types of working fluids and heat sources used in the system. Lecompt et al. [17] compared the efficiency of low temperature subcritical and supercritical WHR cycles and reported that the supercritical cycle outperforms the subcritical by 10.8% in cycle efficiency. A similar investigation carried out by Chen et al. [18] indicated that up to 30% increase in the cycle efficiency is achievable if a WHR system is run at a supercritical pressure rather than a traditional subcritical pressure.
Energies 2018, 11, x 2 of 24 mitigate the environmental impact caused by the higher fuel consumption and the lower conversion efficiency, recent research has been focused on the development and utilization of alternative sources of energy such as renewable energies, different types of waste heat and biomass. Waste heat from industries and automotive sectors has gained much attention to improve the energy conversion efficiency of the engine and reduce the environmental pollutions. Since the waste heat from these sectors are mostly low to medium grade in quality, one way of utilizing this heat is to recover and convert into mechanical rotations or electrical power using an appropriate waste heat recovery (WHR) system, which increases the engine's thermal efficiency and thus reduces the fuel consumptions and emissions. Among different WHR technologies, thermoelectric generator (TEG), phase change material (PCM) engine, Stirling engine, and organic Rankine cycle (ORC) are most common. A TEG can convert the heat energy to electrical power when a temperature difference is applied to a joint of two different materials. A PCM engine generates mechanical rotation using the expansion and contraction properties of PCMs used for WHR. A Stirling engine produces mechanical power through a continuous change of volume of a gas used inside the cylinders of the engine. The waste heat in an ORC is used to vaporize an organic working fluid, elevating its pressure and temperature and then expanding the fluid to generate mechanical energy. The TEG, PCM and Stirling engines are less flexible to construct a system for low to medium grade WHR with a kW range power output; while an ORC has a great flexibility to choose different components suitable for many ranges of power output. Moreover, the conversion efficiency of the PCM, TEG, Stirling Engine, and the ORC in low to medium grade WHR applications are, generally, up to 2.5%, 5%, 10.3%, and 16%, respectively [3,4]. Although some reports suggest that Stirling engines have many advantages such as low noise and high thermal efficiency for medium to high grade heat recovery applications, this technology is still considered to be in an early stage of development [5]. On the contrary, the ORC has many practical advantages including adapting with different grades of heat sources and availability of its components as reported in [3,6,7].
The operating cycle of an ORC can be one of the two types: subcritical cycle whose pressure is lower than the critical pressure of the organic fluid or supercritical cycle whose pressure is higher than the critical pressure of the fluid (see Figure 1). The cycle 1 2 2 3 4 5 5 1 ′ ′ − − − − − − − represents a subcritical ORC, while 1 2 3 5 1 ′ ′ − − − − represents a supercritical ORC. The subcritical ORC for WHR applications is widely used and mentioned in the following reports [8][9][10][11][12][13][14]. Authors in [15] concluded that in subcritical conditions the thermal efficiency of the cycle is low because of higher exergy losses and destructions while the authors in [6,7,15,16] showed that these losses and destructions become lower in supercritical conditions that lead to high thermal efficiency of the ORC. Moreover, the cycle efficiency of the supercritical ORC is also dependent on system configurations, types of working fluids and heat sources used in the system. Lecompt et al. [17] compared the efficiency of low temperature subcritical and supercritical WHR cycles and reported that the supercritical cycle outperforms the subcritical by 10.8% in cycle efficiency. A similar investigation carried out by Chen et al. [18] indicated that up to 30% increase in the cycle efficiency is achievable if a WHR system is run at a supercritical pressure rather than a traditional subcritical pressure.   The analysis and performance evaluation of supercritical ORC cycles mainly focused on fluid selections [6,15,19,20], design and optimization [15,[21][22][23][24][25][26][27]. Although steady-state models of ORC-WHR systems are necessary for the preliminary analyses as discussed above, they cannot be used either for performance evaluation in transient conditions or control system simulations. Therefore the dynamic model of the ORC-WHR system is proposed by the authors in [28]. Since the dynamics of the overall ORC systems evolve around the evaporator, the critical component of the system, the model is developed using conventional finite volume (FV) method. In this method, the evaporator is discretized into several finite segments and heat transfer equations for each segment are solved numerically. The FV is a robust and accurate method which is commonly used as can be seen in [12,29,30]. Despite the fact that the FV model is accurate and able to capture the variable thermo-physical properties of the supercritical fluids as described in [31], it is very time intensive for computation and this limits its real-time applications. To eliminate the limitation, a novel fuzzy-based dynamic evaporator mode is developed and presented in this paper. The knowledge and transient response of the evaporator and the ORC system under variable heat input conditions analyzed using the FV model is used to predict the thermal inertia of the fuzzy model. Other components of the cycle are also developed and then integrated with the novel fuzzy-based dynamic evaporator model to investigate the performance of the system under a variable heat source. The detailed performance of the evaporator model, which is based on fuzzy and the complete ORC-based WHR system are validated and presented in this research.
This paper is organized as follows; the next section presents the system description of the ORC-WHR considered in this research. Section 3 presents the individual components models including FV and fuzzy-based evaporator, model validations and integrations. The performance of the dynamic system is evaluated and discussed in Section 4. Finally, the research findings and conclusions are presented in Section 5.

ORC-WHR System
The ORC-WHR system studied consists of a pump, an evaporator, an expander couple with a generator, a condenser, and an accumulator, as shown in Figure 2. Additionally, a valve in dynamic conditions is used to manage the system start-up and shut-down procedures. The ORC is similar to the conventional steam Rankine cycle but uses organic fluids instead of water as a working fluid. The organic fluid has desirable thermo-physical properties, such as low boiling point and high vapor pressure, that are suitable for low to medium grade heat recovery applications with a output capacity from a few kilowatts to a couple of hundred kilowatts [8,29,32,33]. In this research, R134a was chosen as the working fluid as it has advantages such as availability, wide commercial use, low critical temperature, high auto-ignition temperature, and suitability for low grade heat recovery applications. The thermo-physical properties of R134a are shown in Table 1. The working fluid of the ORC is pumped to the evaporator and heated up by a heat source to its evaporating point, e.g., a pressurized hot water, and then expanded in the expander to drive a coupled generator. The excess heat contained in the working fluid is released at the condenser, and then the cold fluid is sent back to the accumulator and completes the cycle. The ORC-WHR system will be simulated at a pressure of 6 MPa, which is a supercritical pressure that is much higher than the working fluid used in most thermal cycles. The analysis and performance evaluation of supercritical ORC cycles mainly focused on fluid selections [6,15,19,20], design and optimization [15,[21][22][23][24][25][26][27]. Although steady-state models of ORC-WHR systems are necessary for the preliminary analyses as discussed above, they cannot be used either for performance evaluation in transient conditions or control system simulations. Therefore the dynamic model of the ORC-WHR system is proposed by the authors in [28]. Since the dynamics of the overall ORC systems evolve around the evaporator, the critical component of the system, the model is developed using conventional finite volume (FV) method. In this method, the evaporator is discretized into several finite segments and heat transfer equations for each segment are solved numerically. The FV is a robust and accurate method which is commonly used as can be seen in [12,29,30]. Despite the fact that the FV model is accurate and able to capture the variable thermo-physical properties of the supercritical fluids as described in [31], it is very time intensive for computation and this limits its real-time applications. To eliminate the limitation, a novel fuzzy-based dynamic evaporator mode is developed and presented in this paper. The knowledge and transient response of the evaporator and the ORC system under variable heat input conditions analyzed using the FV model is used to predict the thermal inertia of the fuzzy model. Other components of the cycle are also developed and then integrated with the novel fuzzy-based dynamic evaporator model to investigate the performance of the system under a variable heat source. The detailed performance of the evaporator model, which is based on fuzzy and the complete ORC-based WHR system are validated and presented in this research. This paper is organized as follows; the next section presents the system description of the ORC-WHR considered in this research. Section 3 presents the individual components models including FV and fuzzy-based evaporator, model validations and integrations. The performance of the dynamic system is evaluated and discussed in Section 4. Finally, the research findings and conclusions are presented in Section 5.

ORC-WHR System
The ORC-WHR system studied consists of a pump, an evaporator, an expander couple with a generator, a condenser, and an accumulator, as shown in Figure 2. Additionally, a valve in dynamic conditions is used to manage the system start-up and shut-down procedures. The ORC is similar to the conventional steam Rankine cycle but uses organic fluids instead of water as a working fluid. The organic fluid has desirable thermo-physical properties, such as low boiling point and high vapor pressure, that are suitable for low to medium grade heat recovery applications with a output capacity from a few kilowatts to a couple of hundred kilowatts [8,29,32,33]. In this research, R134a was chosen as the working fluid as it has advantages such as availability, wide commercial use, low critical temperature, high auto-ignition temperature, and suitability for low grade heat recovery applications. The thermo-physical properties of R134a are shown in Table 1. The working fluid of the ORC is pumped to the evaporator and heated up by a heat source to its evaporating point, e.g., a pressurized hot water, and then expanded in the expander to drive a coupled generator. The excess heat contained in the working fluid is released at the condenser, and then the cold fluid is sent back to the accumulator and completes the cycle. The ORC-WHR system will be simulated at a pressure of 6 MPa, which is a supercritical pressure that is much higher than the working fluid used in most thermal cycles.

Model Development
The components of the ORC-WHR system described in the previous section are modelled and integrated in this section. The modelling of the valve, however, is disregarded due to that fact that the start-up and shut-down procedures are not covered in this paper.

Evaporator Model
The evaporator is a critical component of the ORC system since effective heat transfer from this component influences the thermal efficiency of the system. Also, due to the transient nature of heat sources from industry and automotive sectors, the evaporator is primarily treated as a source of thermal inertia in the system. Several heat exchangers can be employed as the evaporator in WHR systems. These are the finned tube, the shell and tube and the plate heat exchangers, etc. Plate heat exchangers are highly recommended in this application because they are compact and have a large area, which aims to recover the most possible quantity of heat from the main heat source [5]. Other advantages of plate heat exchangers are also a minimum risk of internal leakage, minimum pressure drop, and less complexity in maintenance [34].

Finite Volume Model
The FV method is used to develop the dynamic model of the evaporator where the heat exchanger is discretized into a finite number of segments along the direction of the flow (See Figure 3). The number of segments, N on both sides and wall of the heat exchanger, is the same. In the numerical model, the input and output parameters of the working fluid and the heat source are imposed on the inlet and outlet sides of each segment as shown in Figure 3. These parameters are stored at locations called nodes. The number of nodes n is therefore, n = N + 1.

Model Development
The components of the ORC-WHR system described in the previous section are modelled and integrated in this section. The modelling of the valve, however, is disregarded due to that fact that the start-up and shut-down procedures are not covered in this paper.

Evaporator Model
The evaporator is a critical component of the ORC system since effective heat transfer from this component influences the thermal efficiency of the system. Also, due to the transient nature of heat sources from industry and automotive sectors, the evaporator is primarily treated as a source of thermal inertia in the system. Several heat exchangers can be employed as the evaporator in WHR systems. These are the finned tube, the shell and tube and the plate heat exchangers, etc. Plate heat exchangers are highly recommended in this application because they are compact and have a large area, which aims to recover the most possible quantity of heat from the main heat source [5]. Other advantages of plate heat exchangers are also a minimum risk of internal leakage, minimum pressure drop, and less complexity in maintenance [34].

Finite Volume Model
The FV method is used to develop the dynamic model of the evaporator where the heat exchanger is discretized into a finite number of segments along the direction of the flow (See Figure 3). The number of segments, N on both sides and wall of the heat exchanger, is the same. In the numerical model, the input and output parameters of the working fluid and the heat source are imposed on the inlet and outlet sides of each segment as shown in Figure 3. These parameters are stored at locations called nodes. The number of nodes n is therefore, n = N + 1.

Refrigerant in
Refrigerant out  Below assumptions are used to develop the FV evaporator model: • The heat exchanger model is assumed to be one-dimensional, and the heat transfer to surrounding environment is neglected. Below assumptions are used to develop the FV evaporator model: • The heat exchanger model is assumed to be one-dimensional, and the heat transfer to surrounding environment is neglected. • The momentum conservation is not considered in the model and the pressure variation within the model is assumed to be negligible.

•
The heat transfer between the heat source and the refrigerant takes place not by conduction but by convection.

•
Heat exchanger wall is uniformly built, and thermo-physical properties are assumed to be constant. • Thermo-physical properties of refrigerant and heat source fluid for each discrete segment are constant.
All these assumptions are commonly used to simplify the modelling effort and reduce the computational time, which can be seen in the literature [12,22,29,35]. Details of mass and energy conservation equations of the FV method are completely discussed by the authors in [28].

Solution Methodology
In the FV approach, the heat source and the refrigerant outlet conditions have been initially guessed. Using the initial and inlet conditions, the simultaneous first-order differential equations for the wall, the refrigerant, and heat source of the FV model described in [28] are solved accordingly. The time-dependent terms in the governing equations are integrated using the Euler explicit method. This method is one of the known approaches used for the solution of time-dependent ordinary or partial differential equations. In this approach, the numerical approximation of the time-dependent term at the next time step is calculated from the state of the term at the current step. The numerical discretization of the FV evaporator model in the time domain can be represented as follows: where h h and h r are the convective heat transfer coefficients (kW/m 2 K) of the heat source fluid and refrigerant with the wall; c ph and c pwall (kJ/kgK) are the specific heat capacity of the heat source and heat exchanger wall, respectively.
. m r (kg/s), T r (K) and H r (KJ/kg K) are the mass flow rate, temperature and enthalpy of the refrigerant; . m h , T h and T wall are the mass flow rate, temperature of heat source and temperature of wall, respectively.

Time-Step Determination
In order to achieve a stable solution of the discretized Equations (1)-(3), a correlation to calculate the time step ∆t can be derived from the equations that contain the variables of interest H r,j t and T h,j t .
To obtain a stable solution, the coefficients of H r,j t and T h,j t variables in Equations (1)-(3) should be greater than zero. Therefore, from Equation (1), it can be written as follows: Similarly, from Equation (2), this can be written as, The evaporator model time step should be the minimum of the two values in Equations (4) and (5) which can be represented by Equation (6). The minimum time step in the discretized equations can guarantee a stable solution in the numerical model.
Simulation Procedure The dynamic evaporator model consists of two parts as shown in Figure 4. They are the steady state part and the dynamic part. In the steady state calculation, the model is converged to the steady state condition before applying any transient inputs to the model. This convergence reduces the effect of initial assumptions to the accuracy when the model is simulated in the transient conditions. The steps involved in the solution of discretized Equations (1)-(3) are as follows: Step 1: Define the geometrical parameters, heat source fluid and refrigerant inputs and a discrete time step of the evaporator including the number of segments and nodes of the model. REFPROP [36] database has been utilized to obtain the thermo-physical properties of the refrigerant and the heat source fluid during the simulation.
Step 2: The second phase is the initialization which is an important issue for every dynamic system in numerical methods. Given the steady inputs, the unknown parameters of Equations (1)-(3) are initialized by assuming the appropriate values at t = 0 as follows: From the refrigerant's initial enthalpy distribution, the temperature of the segment can be retrieved as follows: The initial temperatures of the refrigerant and the heat source fluid are used to define the initial temperature of the wall as follows: The initial temperatures of the fluids and wall mass are assigned equally to all segments to have an initial temperature distribution for the model. This initial distribution does not necessarily have to be accurate since they serve only as a starting point for the simulation. Once all the parameters of the current time t = 0 are available, the solution of the discretized Equations (1)-(3) can be started.
Step 3: Based on the enthalpy, temperature distribution and the initial inputs condition at the previous step, this step retrieves thermodynamic properties from REFPROP and calculates the convective heat transfer coefficients of the heat source fluid h h,j t and refrigerant h r,j t at t = 0, respectively. Thermo-physical properties and the local temperature are considered in calculating the convective heat transfer coefficients in Equations (1)-(3), using the Nusselt number (Nu) and Reynolds number (Re) correlations in Equation (10). The specific Nusselt number correlations for the heat source fluid and the refrigerant are discussed by the authors and can be found in [28].
where D, ρ, µ and v are the hydraulic diameter of the plate heat exchanger, the density of the fluid in (kg/m 3 ) and the viscosity in (Pa.s) and the velocity of the fluids (m/s), respectively. where D , ρ , μ and v are the hydraulic diameter of the plate heat exchanger, the density of the fluid in (kg/m 3 ) and the viscosity in (Pa.s) and the velocity of the fluids (m/s), respectively. Within this simulation step, the enthalpy, heat source temperature and wall temperature for the next time step are calculated using Equations (1)-(3). This simulation step is repeated until the calculation reaches to the final segment of the model.
Step 4: At this step of the simulation, the Nth values of the refrigerant enthalpy, heat source temperature and wall temperature at  Within this simulation step, the enthalpy, heat source temperature and wall temperature for the next time step are calculated using Equations (1)-(3). This simulation step is repeated until the calculation reaches to the final segment of the model.
Step 4: At this step of the simulation, the Nth values of the refrigerant enthalpy, heat source temperature and wall temperature at t = t + 1 and at t = 0 are compared. If the differences between consecutive values are less than the predefined steady-state convergence values of δ 1, δ 2 and δ 3 , which is 0.0001, the solution is said to have achieved the steady state condition. Otherwise, steps 1-3 are repeated until the steady state condition is reached. At the end of Step 4, the initial distribution of the refrigerant enthalpy, the heat source temperature, and the wall temperature are all converged to the actual value and the effect of the initial assumptions are now completely vanished.
Step 5: The dynamic part of the model is started at the end of the steady state part as depicted in Figure 4. The transient inputs to the model are introduced at this step. At a discrete time-step ∆t and model time t = ∆t 1 , the calculation of the state variables is continued along the segments 1 < j < N. At the end of each time step, the values of the state variables are stored in the MATLAB workspace. The dynamic simulation is continued until it reaches the final predefined model time t = t n .

Numerical Issues
The discrete time step in Equation (6) depends on the mass flow rate of each fluid, the density of each fluid and the volume of each discrete segment. Since the mass flow rate and density of the fluids are time dependent variables and can vary during the simulation, the discrete time step should also vary according to Equation (6). Calculating a variable time step during the simulation will make the computation process more complicated and time-consuming. Moreover, this process has a limitation in a real-time application as the temperature at the evaporator inlet, and therefore the properties of the fluid is unknown and cannot be predicted in advance. Therefore, instead of defining a variable time step, a fixed time step is used based on the maximum and minimum temperature and flow rate ranges used in the simulation. In this process, the discrete time step is set to 0.1 s in the simulation, which is selected using Equation (6) that can guarantee a stable solution of the discretized Equations (1)-(3).
In the FV technique, the number of finite cells is also an important issue that influences the accuracy as well as the time requirement of the simulation. To evaluate the error of the calculation, the outputs of the model at different numbers of segments (10, 20 and 50) are compared with that of a 100 segments model, which is taken as the reference value. The computation errors correspond to 10, 20, and 50 segments model for the prediction of the refrigerant enthalpy are approximately 7%, 3.1%, and 0.8%, respectively. On the contrary, the calculation error for the outlet temperature of the heat source is below 1% for all number of segments in the simulation. It is as expected that the higher accuracy is achieved with the higher number of segments. However, this higher number of segments leads to an extensive computation time. Therefore, in this simulation the number of segment is set to 20, as it is a good trade-off between the model accuracy and the simulation time.

Transient Response Simulation
To evaluate the performance of the evaporator model in transient situations, three different tests have been carried out. The step change to the inlet temperature and mass flow rate of the heat source are the first and second test. Finally, the step change in the mass flow rate of the refrigerant is also investigated in this section. Figure 5 depicts the evaporator model response to a step change in the heat source inlet temperature. The step magnitude of 48 K at t = 150 s, which is arbitrarily chosen, is applied to the inlet temperature of the heat source. To discard the effects of the assumptions initially considered, the model is converged into the steady state condition before the step change occurred at t = 150 s. The other variables at the inlet are kept constant during this transient response test, and the calculation is continued until the steady state condition is obtained.
To investigate the effect of a mass flow rate transient on the model outputs, a step change of 0.2 kg/s to the mass flow rate of the heat source is imposed at t = 150s. Figure 6 shows the responses of refrigerant enthalpy, heat source temperature and wall temperature to the step change. Similarly, a step change of 0.15 kg/s to the refrigerant flow rate is also imposed and the transient responses of the model are illustrated in Figure 7. The outlet variable responses due to the step changes in the heat source and refrigerant inputs indicate that the proposed model is stable and can be used to simulate the transient behavior of the inlet conditions.  To investigate the effect of a mass flow rate transient on the model outputs, a step change of 0.2 kg/s to the mass flow rate of the heat source is imposed at t = 150 s. Figure 6 shows the responses of refrigerant enthalpy, heat source temperature and wall temperature to the step change. Similarly, a step change of 0.15 kg/s to the refrigerant flow rate is also imposed and the transient responses of the model are illustrated in Figure 7. The outlet variable responses due to the step changes in the heat source and refrigerant inputs indicate that the proposed model is stable and can be used to simulate the transient behavior of the inlet conditions.
To investigate the effect of a mass flow rate transient on the model outputs, a step change of 0.2 kg/s to the mass flow rate of the heat source is imposed at t = 150s. Figure 6 shows the responses of refrigerant enthalpy, heat source temperature and wall temperature to the step change. Similarly, a step change of 0.15 kg/s to the refrigerant flow rate is also imposed and the transient responses of the model are illustrated in Figure 7. The outlet variable responses due to the step changes in the heat source and refrigerant inputs indicate that the proposed model is stable and can be used to simulate the transient behavior of the inlet conditions.   Table 2. The response time is a time that is required for a time-dependent variable to reach from one steady state value to 63% of the final steady state value [37]. The state values of the evaporator model at the 63% response time are also shown in Table 2. It can be seen from Figures 5-7 and Table 2 that the ideal response time is different with respect to different step changes, which is as expected since the modification in one inlet condition will change all outlet conditions according to their nonlinear relationship as represented by Equations (1)-(3). The results from the transient response analysis indicate that the behavior of the evaporator model is satisfactory and therefore can be used in the simulation of the system dynamics.  The response time of the evaporator model to different transient steps is shown in Table 2. The response time is a time that is required for a time-dependent variable to reach from one steady state value to 63% of the final steady state value [37]. The state values of the evaporator model at the 63% response time are also shown in Table 2. It can be seen from Figures 5-7 and Table 2 that the ideal response time is different with respect to different step changes, which is as expected since the modification in one inlet condition will change all outlet conditions according to their nonlinear relationship as represented by Equations (1)-(3). The results from the transient response analysis indicate that the behavior of the evaporator model is satisfactory and therefore can be used in the simulation of the system dynamics. There are several factors that can increase the simulation time of the evaporator model in both the steady state and dynamic conditions. The first factor is the discrete time step and the second factor contributes to the higher simulation time is the number of segments of the model.
In the dynamic situation, since the model initially needs to converge into a steady state condition before applying the transient heat source, the simulation time of the model can be evaluated by combining the time required for both conditions. The simulation time of the evaporator model with the random transient heat source in Figure 8 is presented in Table 3. It can be concluded from Table 3 that despite the total simulated run-time of the system being kept the same, the actual computing time of the simulation is increased with the number of segments. The model with this higher simulation time will show poor performance in real-time control applications. Therefore, to reduce the simulation time, a second approach to develop the evaporator model using the fuzzy technique is proposed in the next section. There are several factors that can increase the simulation time of the evaporator model in both the steady state and dynamic conditions. The first factor is the discrete time step and the second factor contributes to the higher simulation time is the number of segments of the model.
In the dynamic situation, since the model initially needs to converge into a steady state condition before applying the transient heat source, the simulation time of the model can be evaluated by combining the time required for both conditions. The simulation time of the evaporator model with the random transient heat source in Figure 8 is presented in Table 3. It can be concluded from Table 3 that despite the total simulated run-time of the system being kept the same, the actual computing time of the simulation is increased with the number of segments. The model with this higher simulation time will show poor performance in real-time control applications. Therefore, to reduce the simulation time, a second approach to develop the evaporator model using the fuzzy technique is proposed in the next section.  Almost all dynamic systems in practical applications are nonlinear. Modelling of those systems cannot be represented by simple linear differential equations. It requires a set of high order nonlinear equations which make the whole system too complex to be used in a control system. In the WHR system, the evaporator operating under variable heat source is a nonlinear. Nonlinear models of the evaporator in a WHR system have been developed and are shown in several reports [30,38]. However, even with the simplified assumption and model order reduction made for the evaporator, high nonlinearity still makes the system complex and time-consuming for the simulation [39]. The simplified 1D FV model of the evaporator developed in this research is also a nonlinear model and required extensive time in simulations as shown in Table 3. The nonlinearity of the model comes from the state variables, which are the functions of the thermodynamic properties and input conditions according to Equations (1)- (3). For this reason, this section presents a dynamic model of the evaporator based on fuzzy logic. The fuzzy logic is a multivalued logical system that provides the value of an unknown output by attaching the degree of known input and output of the system [40]. The fuzzy logic concept can be used to develop a model of a nonlinear system which does not require a set of complex mathematical equations. Therefore, it requires less resource and saves substantial computation time.

Fuzzy Based Dynamic Evaporator Model
Almost all dynamic systems in practical applications are nonlinear. Modelling of those systems cannot be represented by simple linear differential equations. It requires a set of high order nonlinear equations which make the whole system too complex to be used in a control system. In the WHR system, the evaporator operating under variable heat source is a nonlinear. Nonlinear models of the evaporator in a WHR system have been developed and are shown in several reports [30,38]. However, even with the simplified assumption and model order reduction made for the evaporator, high nonlinearity still makes the system complex and time-consuming for the simulation [39]. The simplified 1D FV model of the evaporator developed in this research is also a nonlinear model and required extensive time in simulations as shown in Table 3. The nonlinearity of the model comes from the state variables, which are the functions of the thermodynamic properties and input conditions according to Equations (1)- (3). For this reason, this section presents a dynamic model of the evaporator based on fuzzy logic. The fuzzy logic is a multivalued logical system that provides the value of an unknown output by attaching the degree of known input and output of the system [40]. The fuzzy logic concept can be used to develop a model of a nonlinear system which does not require a set of complex mathematical equations. Therefore, it requires less resource and saves substantial computation time.
The design of the dynamic fuzzy-based evaporator model is similar to that of the FV model. The evaporator model has three inputs (refrigerant mass flow rate . m r , heat source mass flow rate . m h and heat source temperature T h ) and two outputs (outlet temperature of the refrigerant T r,o and outlet temperature of heat source T h,o ). The dynamic fuzzy model is composed of two parts: the fuzzy inference system and the thermal inertia of the system as shown in Figure 9. The outputs of the fuzzy inference system, T r,o and T h,o , are fed to the thermal inertia calculation block. The dynamic model outputs, T _r_o and T _h_o , are then obtained from the thermal inertia block. The dynamic fuzzy model is composed of two parts: the fuzzy inference system and the thermal inertia of the system as shown in Figure 9. The outputs of the fuzzy inference system, , Based on the data available from the FV dynamic model, the range of the inputs and output parameters are determined and adjusted from the experience about the system of the designer as follows: , ,    Once the membership functions of the input and output variables are all set, the next step is to define the rules and create a logical relationship among the membership functions of the model inputs and the model outputs. The fuzzy rules are established using the abovementioned sets of the input and output variables as follows:

310
, n is the number of fuzzy rules, i  Table 4. Overall mapping of the input parameters to the outputs represented by the fuzzy rules can be Once the membership functions of the input and output variables are all set, the next step is to define the rules and create a logical relationship among the membership functions of the model inputs and the model outputs. The fuzzy rules are established using the abovementioned sets of the input and output variables as follows: , n is the number of fuzzy rules, i  Table 4. Overall mapping of the input parameters to the outputs represented by the fuzzy rules can be Once the membership functions of the input and output variables are all set, the next step is to define the rules and create a logical relationship among the membership functions of the model inputs and the model outputs. The fuzzy rules are established using the abovementioned sets of the input and output variables as follows: where i = 1, 2, 3.....n, n is the number of fuzzy rules, α i , β i , γ i , δ i , ψ i are the ith fuzzy sets of the input and output variables of the fuzzy system. The rules of the fuzzy model are generally defined from the knowledge of characteristics of a system. In this dynamic model, rules are established from the intuition and knowledge of the evaporator used in this paper. The rules of the fuzzy dynamic model are presented in Table 4. Overall mapping of the input parameters to the outputs represented by the fuzzy rules can be plotted as 3D surfaces. The fuzzy surfaces of the evaporator and heat source outlet temperature are shown in Figures 12 and 13.  plotted as 3D surfaces. The fuzzy surfaces of the evaporator and heat source outlet temperature are shown in Figures 12 and 13.   Energies 2018, 11, 901

m h is AND T h is THEN T r,o is AND T h,o is
The output membership functions for In addition, among different methods of defuzzifications, the centroid defuzzification method [42] is used in this model to convert the aggregated fuzzy set to a crisp output value Y from the fuzzy set ′ Φ . This work computes the weighted average of the membership function or the center of gravity (COG) of the area bounded by the membership function curves [43]: The crisp value of , The transfer function for the heat source outlet temperature delay is as follows: Among different fuzzy reasoning methods, the MAX-MIN method [41] is utilized to obtain the output from the present input and the inference rules. For a given particular input fuzzy set Ω in U, the output fuzzy set Φ in S for T r,o is computed through the inference system is as follows: The output membership functions for T h,o is calculated similarly. In this research, the membership functions used for the dynamic evaporator model are Gaussian type denoted by µ in Figures 10 and 11.
In addition, among different methods of defuzzifications, the centroid defuzzification method [42] is used in this model to convert the aggregated fuzzy set to a crisp output value Y from the fuzzy set Φ . This work computes the weighted average of the membership function or the center of gravity (COG) of the area bounded by the membership function curves [43]: The crisp value of T r,o and T h,o were calculated utilizing the above equation. The crisp values of the fuzzy inference systems are fed to the thermal inertia block to obtain the final output values of the fuzzy-based model.
The thermal inertia of the fluids in the evaporator is dependent on the fluid's properties such as specific heat capacity, thermal conductivity, the volume flow rate of the fluid, etc., and the geometrical dimension and thermal properties of the evaporator wall. The thermal inertia of the fluid streams can be expressed by a time delay with respect to a change of the fluids temperature. The knowledge of the transient behavior of the evaporator model in the dynamic condition is used to define the time delay for the refrigerant and heat source temperature in the fuzzy-based model. The following transfer functions represent the time delay of the model.
Transfer function for the refrigerant's outlet temperature delay is as follows: 0.999 31s + 1.0007 (19) The transfer function for the heat source outlet temperature delay is as follows: 1 62s + 0.99 (20)  The numerator and denominator values of the two transfer functions were adjusted according to the response of the evaporator against the transient heat inputs studied in this research.

Evaporator Model Validation
The fuzzy-based dynamic model is validated with the data available from the dynamic FV model of the evaporator. The outputs of the fuzzy model with respect to the FV model are shown in Figures 14 and 15. It can be observed from these figures that the fuzzy-based model can predict the evaporator outputs effectively in the dynamic condition. The data fitness values of 90.32% and 91.24% are obtained for the outputs of T _r_o and T _h_o , respectively. The RMSE (Root Mean Squared Error) and MAPE (Mean Absolute Percentage Error) of the fuzzy model outputs with respect to the validation data is shown in Table 5. The fuzzy model can predict the outputs with a RMSE of 1.10 K for T _r_o and 3.09 K for T _h_o , which gives a MAPE of 0.19% and 0.58%, respectively. Moreover, the time used for the simulation of the random heat source in the fuzzy-based model is 5.19 s, compared to 3820.6 s of the FV model. This implies that the fuzzy model with an accuracy of above 90% is 736.15 times faster than that of the FV model. These validation numbers indicate that the fuzzy logic concept is suitable to develop the dynamic evaporator model in the WHR system. The numerator and denominator values of the two transfer functions were adjusted according to the response of the evaporator against the transient heat inputs studied in this research.

Evaporator Model Validation
The fuzzy-based dynamic model is validated with the data available from the dynamic FV model of the evaporator. The outputs of the fuzzy model with respect to the FV model are shown in Figures 14 and 15

Pump Model
The pump used in this research is a volumetric diaphragm pump [44], which is a positive displacement machine. The response of such pumps are much faster than the response of the heat exchanger in the ORC-WHR system [45]. For this reason, complicated dynamics of the pump are not necessary for the simulation of the WHR dynamics. A constant efficiency and the performance curve of the pump provided by the manufacturer can be used for the development of the pump model. The numerator and denominator values of the two transfer functions were adjusted according to the response of the evaporator against the transient heat inputs studied in this research.

Evaporator Model Validation
The fuzzy-based dynamic model is validated with the data available from the dynamic FV model of the evaporator. The outputs of the fuzzy model with respect to the FV model are shown in Figures 14 and 15

Pump Model
The pump used in this research is a volumetric diaphragm pump [44], which is a positive displacement machine. The response of such pumps are much faster than the response of the heat exchanger in the ORC-WHR system [45]. For this reason, complicated dynamics of the pump are not necessary for the simulation of the WHR dynamics. A constant efficiency and the performance curve of the pump provided by the manufacturer can be used for the development of the pump model.

Pump Model
The pump used in this research is a volumetric diaphragm pump [44], which is a positive displacement machine. The response of such pumps are much faster than the response of the heat exchanger in the ORC-WHR system [45]. For this reason, complicated dynamics of the pump are not necessary for the simulation of the WHR dynamics. A constant efficiency and the performance curve of the pump provided by the manufacturer can be used for the development of the pump model. The characteristic of the diaphragm pump is that the mass flow rate is proportional to the speed of the pump [14,46]. The performance curve of the pump can be used to derive the relationship between the speed of the pump and the refrigerant mass flow rate as follows [38,44]: where . m p is the mass flow rate of the pump in kg/s and N p is the corresponding pump speed in RPM. The specific work input as a function of the pump's pressure and enthalpy difference can be calculated as follows: where υ p is the specific volume in m 3 /kg; H p,i and H p,o are the pump inlet and outlet enthalpy in kJ/kg, respectively; W p is the pump work in kW; η p is the mechanical efficiency of the high pressure diaphragm pump; P p,i and P p,o are the inlet and outlet pressures of the pump in kPa, respectively.

Expander Model
An expander in a WHR system is generally one of two types: volumetric expander i.e., piston, scroll, etc. and a turbo-machinery type i.e., turbines. The time response of both volumetric and turbo-machinery expanders are much faster compared with the evaporator in the WHR system. Therefore, similarly with the pump, the dynamics of the expander is unnecessary in the simulation of WHR system. The steady state thermodynamic model of the expander is used for the simulation of the expander in this investigation. The specific work output of the expander is calculated as follows: where W exp is the expander work output, . m exp is the refrigerant mass flow rate through the expander; H exp,i and H exp,o are the expander inlet and outlet enthalpy, respectively; η exp is the expander efficiency.

Condenser Model
The dynamics of the WHR system are mostly formed by the dynamic behaviors of both evaporator and condenser. Therefore, the dynamic evaporator and condenser models were taken into account in the simulation of the WHR dynamics as shown in several reports [30,38,45]. Although both the evaporator and condenser have significant effects on the operating parameters of the ORC-WHR system, the dynamic model of the evaporator is of greater importance than that of the condenser. This is, especially at supercritical pressure, because of the unpredictable heat transfer mechanism at the evaporator. Therefore, a thermodynamic model of the condenser based on the state enthalpy is adequate to represent the condenser as follows: where Q con is the condenser cooling power in kW, . m con is the mass flow rate of refrigerant through the condenser and H con,o is the enthalpy at the condenser outlet.

Accumulator Model
To absorb the organic fluid fluctuations and make sure that there is liquid at the inlet of the pump, an accumulator is used between the pump inlet and the condenser outlet. The organic fluid level in the cycle is represented by following conservation equations [38,47].

Model Integration
The component models of the supercritical ORC-WHR system described in Sections 3.1 and 3.2 are integrated to form an overall system dynamic model. The overall model parameters are given in Table 6. The inputs and outputs of each component in the dynamic model are linked according to the rationalities described as follows:

•
The pump delivers the refrigerant mass flow rate at a proportion to the speed of the pump. Given the inlet and outlet pressure, the electrical power requirement to drive the pump and the temperature of the fluid at the outlet can be calculated.

•
There is no enthalpy loss in between the pump and the evaporator. The heat recovery in the evaporator is a function of the inlet flow conditions and working pressure of the fluids.

•
The expander can rotate freely without imposing any speed constraint. The amount of work output is a function of the enthalpy at the inlet and outlet of the expander.

•
Provided the condenser outlet temperature is constant, the model calculates the required cooling power to achieve the desired temperature at the outlet. • Given the inlet conditions and mass of the fluid, the accumulator maintains the outlet enthalpy and fluid level. The pressure loss because of piping work between the evaporator and the expander in the overall WHR system is modelled using the Darcy-Weisbach pressure drop correlation as follows: where f D is the Darcy friction factor, ρ is the density of the pipe, L p is the length of the pipe, v is the velocity of the fluid, and D is the hydraulic diameter of the pipe.     The cycle efficiency of the ORC-WHR system is represented by cy η and can be written as: where Net W is the net output work and ev Q is heat recovered at the evaporator.
The evaporator heat input ev Q in Equation (29) can be calculated from the mass flow rate and temperature of the refrigerant at the inlet and outlet of the fuzzy-based evaporator model. The cycle efficiency of the fuzzy-based overall model in comparison to the FV-based model for the entire operation period is shown in Figure 18. Since the simulation in this paper was carried out with a random heat source and refrigerant input to the system, the efficiency was varied according to the combination of the heat source inputs, refrigerant inputs, and expander output, as shown in Figure 18. The cycle efficiency of the ORC-WHR system presented in this paper was neither controlled nor optimized during the simulation. Therefore, the outputs are followed according to the inputs only. It can be noticed that the maximum efficiency obtained in the simulation of the FV-based and fuzzy-based overall models are 13.36% and 12.86%, respectively. The FV-based overall model led to an average cycle efficiency of 9.78%, while the fuzzy-based overall model led to 9.42%. Since the cycle efficiency is a function of the temperature at the evaporator outlet, the error in the temperature calculation of the fuzzy-based evaporator model contributed to the efficiency calculation which can be seen in Figure 18 and Table 7. The results presented in this figure provide a MAPE error of less than 4% in predicting the cycle efficiency of the system using the fuzzy-based overall model compared to the FV model. Moreover, it can also be seen from Figure 18 that the efficiency prediction difference between the FV-based and the fuzzy-based model is always less than around 0.5%. The results indicate that the fuzzy-based evaporator model can be integrated with other components to predict the efficiency of the ORC-WHR system in dynamic conditions. The cycle efficiency of the ORC-WHR system is represented by η cy and can be written as: where W Net is the net output work and Q ev is heat recovered at the evaporator. The evaporator heat input Q ev in Equation (29) can be calculated from the mass flow rate and temperature of the refrigerant at the inlet and outlet of the fuzzy-based evaporator model.
The cycle efficiency of the fuzzy-based overall model in comparison to the FV-based model for the entire operation period is shown in Figure 18. Since the simulation in this paper was carried out with a random heat source and refrigerant input to the system, the efficiency was varied according to the combination of the heat source inputs, refrigerant inputs, and expander output, as shown in Figure 18. The cycle efficiency of the ORC-WHR system presented in this paper was neither controlled nor optimized during the simulation. Therefore, the outputs are followed according to the inputs only. It can be noticed that the maximum efficiency obtained in the simulation of the FV-based and fuzzy-based overall models are 13.36% and 12.86%, respectively. The FV-based overall model led to an average cycle efficiency of 9.78%, while the fuzzy-based overall model led to 9.42%. Since the cycle efficiency is a function of the temperature at the evaporator outlet, the error in the temperature calculation of the fuzzy-based evaporator model contributed to the efficiency calculation which can be seen in Figure 18 and Table 7. The results presented in this figure provide a MAPE error of less than 4% in predicting the cycle efficiency of the system using the fuzzy-based overall model compared to the FV model. Moreover, it can also be seen from Figure 18 that the efficiency prediction difference between the FV-based and the fuzzy-based model is always less than around 0.5%. The results indicate that the fuzzy-based evaporator model can be integrated with other components to predict the efficiency of the ORC-WHR system in dynamic conditions. The cycle efficiency of the ORC-WHR system is represented by cy η and can be written as: where Net W is the net output work and ev Q is heat recovered at the evaporator.
The evaporator heat input ev Q in Equation (29) can be calculated from the mass flow rate and temperature of the refrigerant at the inlet and outlet of the fuzzy-based evaporator model. The cycle efficiency of the fuzzy-based overall model in comparison to the FV-based model for the entire operation period is shown in Figure 18. Since the simulation in this paper was carried out with a random heat source and refrigerant input to the system, the efficiency was varied according to the combination of the heat source inputs, refrigerant inputs, and expander output, as shown in Figure 18. The cycle efficiency of the ORC-WHR system presented in this paper was neither controlled nor optimized during the simulation. Therefore, the outputs are followed according to the inputs only. It can be noticed that the maximum efficiency obtained in the simulation of the FV-based and fuzzy-based overall models are 13.36% and 12.86%, respectively. The FV-based overall model led to an average cycle efficiency of 9.78%, while the fuzzy-based overall model led to 9.42%. Since the cycle efficiency is a function of the temperature at the evaporator outlet, the error in the temperature calculation of the fuzzy-based evaporator model contributed to the efficiency calculation which can be seen in Figure 18 and Table 7. The results presented in this figure provide a MAPE error of less than 4% in predicting the cycle efficiency of the system using the fuzzy-based overall model compared to the FV model. Moreover, it can also be seen from Figure 18 that the efficiency prediction difference between the FV-based and the fuzzy-based model is always less than around 0.5%. The results indicate that the fuzzy-based evaporator model can be integrated with other components to predict the efficiency of the ORC-WHR system in dynamic conditions.

Conclusions
This paper presents the modelling of a dynamic ORC-WHR system using a well-known FV technique and a novel fuzzy method. The performance analysis of the dynamic model regarding individual components and overall model is presented.
Since the evaporator was the focus of the research, the dynamic model of this component was initially developed using the conventional FV method. The detailed performance analysis of the model regarding the transient response was carried out. Results show that the model is sufficiently stable and responses to the transient inputs are satisfactory. This implies that the model was robustly built to be used in the dynamic scenario of the WHR system. However, because of the high computation time of this method, a second model of the evaporator based on the fuzzy inference system was developed. Useful information about the evaporator in the dynamic condition such as transient responses, input-output ranges, thermal inertia, etc. obtained from the FV model were used to develop the fuzzy model. The outputs of the fuzzy-based model were validated with that of the FV model. The results from the validation indicate that the fuzzy inference system can be used to predict the evaporator outputs in the dynamic situation.
A pump, an expander, a condenser, and an accumulator were added to the proposed dynamic model of the evaporator to provide a complete overall model of the dynamic ORC-WHR system. The performance analysis of the overall model with the integration of the fuzzy evaporator model shows that the model was able to predict the pressure at the inlet of the expander, the expander output, and the cycle efficiency accurately. This shows that the fuzzy-based evaporator model in the WHR system can be used to simulate the system performance and to develop control strategies under transient heat input conditions.